-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DAOS-1386 test container snapshot info DAOS-1402 DAOS-1390 #573
Conversation
Updated file: src/utils/py/daos_api.py New file: src/tests/ftest/container/snapshot_info_test.py New file: src/tests/ftest/container/snapshot_info_test.yaml Signed-off-by: Ding Ho <ding-hwa.ho@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-573/1/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules
Note: Error annotation limited to the first 31 errors. Remaining unannotated errors:
src/tests/ftest/container/snapshot_info_test.py:97:
(pylint-bad-whitespace) Exactly one space required after comma
(pylint-missing-docstring) Missing method docstring
src/tests/ftest/container/snapshot_info_test.py:99:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:100:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:102:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:104:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:106:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:108:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:110:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:111:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:112:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:115:
(pylint-missing-docstring) Missing method docstring
src/tests/ftest/container/snapshot_info_test.py:117:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:118:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:119:
(pylint-undefined-variable) Undefined variable 'step'
(pylint-unused-variable) Unused variable 'substep'
src/tests/ftest/container/snapshot_info_test.py:123:
(pylint-undefined-variable) Undefined variable 'step'
src/tests/ftest/container/snapshot_info_test.py:128:
(pylint-missing-docstring) Missing method docstring
src/tests/ftest/container/snapshot_info_test.py:130:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:132:
(pylint-bad-whitespace) Exactly one space required after comma
(pylint-bad-whitespace) Exactly one space required after comma
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:134:
(pylint-invalid-name) Invalid variable name "ct"
(pylint-unused-variable) Unused variable 'ct'
src/tests/ftest/container/snapshot_info_test.py:143:
(pylint-missing-docstring) Missing method docstring
src/tests/ftest/container/snapshot_info_test.py:149:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:153:
(pylint-invalid-name) Invalid method name "test_snapshot_create_negativetest"
(pylint-too-many-locals) Too many local variables (25/20)
(pylint-too-many-branches) Too many branches (14/12)
(pylint-too-many-statements) Too many statements (98/50)
src/tests/ftest/container/snapshot_info_test.py:183:
(pylint-bad-continuation) Wrong continued indentation (add 8 spaces).
src/tests/ftest/container/snapshot_info_test.py:200:
(pylint-bad-continuation) Wrong hanging indentation before block (add 4 spaces).
src/tests/ftest/container/snapshot_info_test.py:204:
(pylint-logging-format-interpolation) Use % formatting in logging functions and pass the % parameters as arguments
src/tests/ftest/container/snapshot_info_test.py:205:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
src/tests/ftest/container/snapshot_info_test.py:217:
(pylint-bad-continuation) Wrong continued indentation (add 26 spaces).
src/tests/ftest/container/snapshot_info_test.py:222:
(pylint-bad-continuation) Wrong continued indentation (remove 5 spaces).
src/tests/ftest/container/snapshot_info_test.py:223:
(pylint-bad-continuation) Wrong continued indentation (remove 5 spaces).
src/tests/ftest/container/snapshot_info_test.py:224:
(pylint-bad-continuation) Wrong continued indentation (remove 5 spaces).
src/tests/ftest/container/snapshot_info_test.py:225:
(pylint-bad-continuation) Wrong continued indentation (remove 5 spaces).
src/tests/ftest/container/snapshot_info_test.py:228:
(pylint-attribute-defined-outside-init) Attribute 'snapshot' defined outside init
src/tests/ftest/container/snapshot_info_test.py:234:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:235:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:237:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:252:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:253:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:255:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:257:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:259:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:260:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:261:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:264:
(pylint-bad-continuation) Wrong continued indentation (add 12 spaces).
src/tests/ftest/container/snapshot_info_test.py:266:
(pylint-bad-continuation) Wrong continued indentation (add 6 spaces).
src/tests/ftest/container/snapshot_info_test.py:276:
(pylint-attribute-defined-outside-init) Attribute 'snapshot' defined outside init
src/tests/ftest/container/snapshot_info_test.py:278:
(pylint-bare-except) No exception type(s) specified
src/tests/ftest/container/snapshot_info_test.py:280:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:285:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:291:
(pylint-attribute-defined-outside-init) Attribute 'snapshot' defined outside init
src/tests/ftest/container/snapshot_info_test.py:293:
(pylint-bare-except) No exception type(s) specified
src/tests/ftest/container/snapshot_info_test.py:295:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
src/tests/ftest/container/snapshot_info_test.py:298:
(pylint-bad-continuation) Wrong continued indentation (add 6 spaces).
src/tests/ftest/container/snapshot_info_test.py:303:
(pylint-attribute-defined-outside-init) Attribute 'snapshot' defined outside init
src/tests/ftest/container/snapshot_info_test.py:305:
(pylint-bare-except) No exception type(s) specified
src/tests/ftest/container/snapshot_info_test.py:307:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
src/tests/ftest/container/snapshot_info_test.py:310:
(pylint-bad-continuation) Wrong continued indentation (add 7 spaces).
src/tests/ftest/container/snapshot_info_test.py:329:
(pylint-too-many-locals) Too many local variables (33/20)
(pylint-too-many-branches) Too many branches (17/12)
(pylint-too-many-statements) Too many statements (125/50)
src/tests/ftest/container/snapshot_info_test.py:55:
(pylint-invalid-name) Invalid method name "display_daosContainer"
(pylint-missing-docstring) Missing method docstring
src/tests/ftest/container/snapshot_info_test.py:354:
(pylint-bad-whitespace) Exactly one space required before assignment
(pylint-attribute-defined-outside-init) Attribute 'coh_list' defined outside init
src/tests/ftest/container/snapshot_info_test.py:355:
(pylint-bad-whitespace) Exactly one space required before assignment
(pylint-attribute-defined-outside-init) Attribute 'container_epoch_list' defined outside init
src/tests/ftest/container/snapshot_info_test.py:356:
(pylint-bad-whitespace) Exactly one space required before assignment
(pylint-attribute-defined-outside-init) Attribute 'snapshot_list' defined outside init
src/tests/ftest/container/snapshot_info_test.py:357:
(pylint-bad-whitespace) Exactly one space required before assignment
(pylint-attribute-defined-outside-init) Attribute 'test_data' defined outside init
src/tests/ftest/container/snapshot_info_test.py:396:
(pylint-logging-format-interpolation) Use % formatting in logging functions and pass the % parameters as arguments
src/tests/ftest/container/snapshot_info_test.py:397:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
src/tests/ftest/container/snapshot_info_test.py:411:
(pylint-bad-continuation) Wrong continued indentation (add 26 spaces).
src/tests/ftest/container/snapshot_info_test.py:419:
(pylint-attribute-defined-outside-init) Attribute 'snapshot' defined outside init
src/tests/ftest/container/snapshot_info_test.py:425:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:426:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:428:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:433:
(pylint-bad-continuation) Wrong continued indentation (add 26 spaces).
src/tests/ftest/container/snapshot_info_test.py:446:
(pylint-bad-continuation) Wrong continued indentation (add 26 spaces).
src/tests/ftest/container/snapshot_info_test.py:448:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:472:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:473:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:475:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:477:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:479:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:480:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:481:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:484:
(pylint-bad-continuation) Wrong continued indentation (add 12 spaces).
src/tests/ftest/container/snapshot_info_test.py:486:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
src/tests/ftest/container/snapshot_info_test.py:496:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:498:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:506:
(pylint-bad-continuation) Wrong continued indentation (add 11 spaces).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-573/1/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules
Note: Error annotation limited to the first 31 errors. Remaining unannotated errors:
src/tests/ftest/container/snapshot_info_test.py:97:
(pylint-bad-whitespace) Exactly one space required after comma
(pylint-missing-docstring) Missing method docstring
src/tests/ftest/container/snapshot_info_test.py:99:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:100:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:102:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:104:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:106:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:108:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:110:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:111:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:112:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:115:
(pylint-missing-docstring) Missing method docstring
src/tests/ftest/container/snapshot_info_test.py:117:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:118:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:119:
(pylint-undefined-variable) Undefined variable 'step'
(pylint-unused-variable) Unused variable 'substep'
src/tests/ftest/container/snapshot_info_test.py:123:
(pylint-undefined-variable) Undefined variable 'step'
src/tests/ftest/container/snapshot_info_test.py:128:
(pylint-missing-docstring) Missing method docstring
src/tests/ftest/container/snapshot_info_test.py:130:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:132:
(pylint-bad-whitespace) Exactly one space required after comma
(pylint-bad-whitespace) Exactly one space required after comma
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:134:
(pylint-invalid-name) Invalid variable name "ct"
(pylint-unused-variable) Unused variable 'ct'
src/tests/ftest/container/snapshot_info_test.py:143:
(pylint-missing-docstring) Missing method docstring
src/tests/ftest/container/snapshot_info_test.py:149:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:153:
(pylint-invalid-name) Invalid method name "test_snapshot_create_negativetest"
(pylint-too-many-locals) Too many local variables (25/20)
(pylint-too-many-branches) Too many branches (14/12)
(pylint-too-many-statements) Too many statements (98/50)
src/tests/ftest/container/snapshot_info_test.py:183:
(pylint-bad-continuation) Wrong continued indentation (add 8 spaces).
src/tests/ftest/container/snapshot_info_test.py:200:
(pylint-bad-continuation) Wrong hanging indentation before block (add 4 spaces).
src/tests/ftest/container/snapshot_info_test.py:204:
(pylint-logging-format-interpolation) Use % formatting in logging functions and pass the % parameters as arguments
src/tests/ftest/container/snapshot_info_test.py:205:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
src/tests/ftest/container/snapshot_info_test.py:217:
(pylint-bad-continuation) Wrong continued indentation (add 26 spaces).
src/tests/ftest/container/snapshot_info_test.py:222:
(pylint-bad-continuation) Wrong continued indentation (remove 5 spaces).
src/tests/ftest/container/snapshot_info_test.py:223:
(pylint-bad-continuation) Wrong continued indentation (remove 5 spaces).
src/tests/ftest/container/snapshot_info_test.py:224:
(pylint-bad-continuation) Wrong continued indentation (remove 5 spaces).
src/tests/ftest/container/snapshot_info_test.py:225:
(pylint-bad-continuation) Wrong continued indentation (remove 5 spaces).
src/tests/ftest/container/snapshot_info_test.py:228:
(pylint-attribute-defined-outside-init) Attribute 'snapshot' defined outside init
src/tests/ftest/container/snapshot_info_test.py:234:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:235:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:237:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:252:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:253:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:255:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:257:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:259:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:260:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:261:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:264:
(pylint-bad-continuation) Wrong continued indentation (add 12 spaces).
src/tests/ftest/container/snapshot_info_test.py:266:
(pylint-bad-continuation) Wrong continued indentation (add 6 spaces).
src/tests/ftest/container/snapshot_info_test.py:276:
(pylint-attribute-defined-outside-init) Attribute 'snapshot' defined outside init
src/tests/ftest/container/snapshot_info_test.py:278:
(pylint-bare-except) No exception type(s) specified
src/tests/ftest/container/snapshot_info_test.py:280:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:285:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:291:
(pylint-attribute-defined-outside-init) Attribute 'snapshot' defined outside init
src/tests/ftest/container/snapshot_info_test.py:293:
(pylint-bare-except) No exception type(s) specified
src/tests/ftest/container/snapshot_info_test.py:295:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
src/tests/ftest/container/snapshot_info_test.py:298:
(pylint-bad-continuation) Wrong continued indentation (add 6 spaces).
src/tests/ftest/container/snapshot_info_test.py:303:
(pylint-attribute-defined-outside-init) Attribute 'snapshot' defined outside init
src/tests/ftest/container/snapshot_info_test.py:305:
(pylint-bare-except) No exception type(s) specified
src/tests/ftest/container/snapshot_info_test.py:307:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
src/tests/ftest/container/snapshot_info_test.py:310:
(pylint-bad-continuation) Wrong continued indentation (add 7 spaces).
src/tests/ftest/container/snapshot_info_test.py:329:
(pylint-too-many-locals) Too many local variables (33/20)
(pylint-too-many-branches) Too many branches (17/12)
(pylint-too-many-statements) Too many statements (125/50)
src/tests/ftest/container/snapshot_info_test.py:55:
(pylint-invalid-name) Invalid method name "display_daosContainer"
(pylint-missing-docstring) Missing method docstring
src/tests/ftest/container/snapshot_info_test.py:354:
(pylint-bad-whitespace) Exactly one space required before assignment
(pylint-attribute-defined-outside-init) Attribute 'coh_list' defined outside init
src/tests/ftest/container/snapshot_info_test.py:355:
(pylint-bad-whitespace) Exactly one space required before assignment
(pylint-attribute-defined-outside-init) Attribute 'container_epoch_list' defined outside init
src/tests/ftest/container/snapshot_info_test.py:356:
(pylint-bad-whitespace) Exactly one space required before assignment
(pylint-attribute-defined-outside-init) Attribute 'snapshot_list' defined outside init
src/tests/ftest/container/snapshot_info_test.py:357:
(pylint-bad-whitespace) Exactly one space required before assignment
(pylint-attribute-defined-outside-init) Attribute 'test_data' defined outside init
src/tests/ftest/container/snapshot_info_test.py:396:
(pylint-logging-format-interpolation) Use % formatting in logging functions and pass the % parameters as arguments
src/tests/ftest/container/snapshot_info_test.py:397:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
src/tests/ftest/container/snapshot_info_test.py:411:
(pylint-bad-continuation) Wrong continued indentation (add 26 spaces).
src/tests/ftest/container/snapshot_info_test.py:419:
(pylint-attribute-defined-outside-init) Attribute 'snapshot' defined outside init
src/tests/ftest/container/snapshot_info_test.py:425:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:426:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:428:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:433:
(pylint-bad-continuation) Wrong continued indentation (add 26 spaces).
src/tests/ftest/container/snapshot_info_test.py:446:
(pylint-bad-continuation) Wrong continued indentation (add 26 spaces).
src/tests/ftest/container/snapshot_info_test.py:448:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:472:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:473:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:475:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:477:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:479:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:480:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:481:
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:484:
(pylint-bad-continuation) Wrong continued indentation (add 12 spaces).
src/tests/ftest/container/snapshot_info_test.py:486:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
src/tests/ftest/container/snapshot_info_test.py:496:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:498:
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
src/tests/ftest/container/snapshot_info_test.py:506:
(pylint-bad-continuation) Wrong continued indentation (add 11 spaces).
try: | ||
for ind in range(0, len(self.container_epoch_list)): | ||
epoch = self.container_epoch_list[ind] | ||
ss = self.snapshot_list[ind] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(pylint-invalid-name) Invalid variable name "ss"
import sys | ||
import random | ||
import string | ||
import json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(pylint-unused-import) Unused import json
self.log.info("self.container.info.es_glre= %s" | ||
,self.container.info.es_glre) | ||
self.log.info("self.container.info.es_ghpce= %s" | ||
,self.container.info.es_ghpce) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
self.log.info("self.container.info.ci_nsnapshots= %s" | ||
,self.container.info.ci_nsnapshots) | ||
self.log.info("self.container.info.ci_snapshots= %s" | ||
,self.container.info.ci_snapshots) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(pylint-bad-continuation) Wrong continued indentation (add 10 spaces).
(pylint-bad-whitespace) Exactly one space required after comma
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-573/1/execution/node/44/log |
Updated file: src/utils/py/daos_api.py New file: src/tests/ftest/container/snapshot_info_test.py New file: src/tests/ftest/container/snapshot_info_test.yaml Signed-off-by: Ding Ho <ding-hwa.ho@intel.com>
…AOS-1386 Conflicts: src/tests/ftest/container/snapshot_info_test.py
Updated file: src/utils/py/daos_api.py New file: src/tests/ftest/container/snapshot_info_test.py New file: src/tests/ftest/container/snapshot_info_test.yaml Signed-off-by: Ding Ho <ding-hwa.ho@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-573/2/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules
coh = container | ||
self.snapshot = DaosSnapshot(self.context) | ||
self.snapshot.create(coh, epoch) | ||
except: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(pylint-bare-except) No exception type(s) specified
self.display_snapshot(snapshot) #display ss info after ss created | ||
return snapshot | ||
|
||
def test_snapshot_create_negtest(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(pylint-too-many-locals) Too many local variables (25/20)
(pylint-too-many-branches) Too many branches (14/12)
(pylint-too-many-statements) Too many statements (98/50)
obj_cls=obj_cls) | ||
obj.close() | ||
##Take a snapshot of the container | ||
self.snapshot = DaosSnapshot(self.context) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(pylint-attribute-defined-outside-init) Attribute 'snapshot' defined outside init
try: | ||
for ind in range(0, len(container_epoch_list)): | ||
epoch = container_epoch_list[ind] | ||
ss = snapshot_list[ind] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(pylint-invalid-name) Invalid variable name "ss"
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-573/2/execution/node/44/log |
New file: src/tests/ftest/container/snapshot_info_test.py New file: src/tests/ftest/container/snapshot_info_test.yaml Signed-off-by: Ding Ho <ding-hwa.ho@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-573/3/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules
# initialize a python pool object then create the underlying | ||
# daos storage | ||
self.pool = DaosPool(self.context) | ||
self.pool.create(createmode, createuid, creategid, createsize, createsetid, None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(pylint-line-too-long) Line too long (93/80)
try: | ||
snapshot = DaosSnapshot(self.context) | ||
snapshot.create(coh, epoch) | ||
except: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(pylint-bare-except) No exception type(s) specified
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-573/3/execution/node/44/log |
New file: src/tests/ftest/container/snapshot_info_test.py New file: src/tests/ftest/container/snapshot_info_test.yaml Signed-off-by: Ding Ho <ding-hwa.ho@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-573/4/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-573/4/execution/node/44/log |
Saurabh, |
1 similar comment
Saurabh, |
New file: src/tests/ftest/container/snapshot_info_test.py New file: src/tests/ftest/container/snapshot_info_test.yaml Signed-off-by: Ding Ho <ding-hwa.ho@intel.com>
Updated file: src/utils/py/daos_api.py New file: src/tests/ftest/container/snapshot_functionality_test.py New file: src/tests/ftest/container/snapshot_functionality_test.yaml Signed-off-by: Ding Ho <ding-hwa.ho@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-573/9/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules
"taking snapshot with a NULL epoch.") | ||
|
||
|
||
def test_snapshot_info(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(pylint-too-many-locals) Too many local variables (29/20)
(pylint-too-many-statements) Too many statements (93/50)
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-573/9/execution/node/45/log |
Updated file: src/utils/py/daos_api.py New file: src/tests/ftest/container/snapshot_functionality_test.py New file: src/tests/ftest/container/snapshot_functionality_test.yaml Signed-off-by: Ding Ho <ding-hwa.ho@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-573/10/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-573/10/execution/node/45/log |
Updated file: src/utils/py/daos_api.py New file: src/tests/ftest/container/snapshot_functionality_test.py New file: src/tests/ftest/container/snapshot_functionality_test.yaml Signed-off-by: Ding Ho <ding-hwa.ho@intel.com>
Updated file: src/utils/py/daos_api.py New file: src/tests/ftest/container/snapshot_functionality_test.py New file: src/tests/ftest/container/snapshot_functionality_test.yaml Signed-off-by: Ding Ho <ding-hwa.ho@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-1 just until we come to a conclusion about the tearDown()
.
Updated file: src/utils/py/daos_api.py New file: src/tests/ftest/container/snapshot_functionality_test.py New file: src/tests/ftest/container/snapshot_functionality_test.yaml Signed-off-by: Ding Ho <ding-hwa.ho@intel.com>
… DAOS-1395) Updated file: src/utils/py/daos_api.py New file: src/tests/ftest/container/snapshot.py New file: src/tests/ftest/container/snapshot.yaml Signed-off-by: Ding Ho <ding-hwa.ho@intel.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style warning(s) for job https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-573/14/
Please review https://wiki.hpdd.intel.com/display/DC/Coding+Rules
Test stage checkpatch completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-573/14/execution/node/44/log |
… DAOS-1371) Updated file: src/utils/py/daos_api.py New file: src/tests/ftest/container/snapshot.py New file: src/tests/ftest/container/snapshot.yaml Signed-off-by: Ding Ho <ding-hwa.ho@intel.com>
@@ -1876,13 +1876,15 @@ def create(self, coh, epoch): | |||
# snapshots and the epochs and names lists. See description of | |||
# daos_cont_list_snap in src/include/daos_api.h. This must be done for | |||
# DAOS-1336 Verify container snapshot info. | |||
def list(self, coh): | |||
def list(self, coh, epoch=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the C API:
- \param[out] epochs preallocated array of epochs to store snapshots.
So this is actually where we return the snapshot list.
""" Call daos_cont_snap_list and make sure there is a snapshot in the | ||
list. | ||
coh --ctype.u_long handle on an open container | ||
Returns the value of the epoch for this DaosSnapshot object. | ||
""" | ||
func = self.context.get_function('list-snap') | ||
if epoch is None: | ||
epoch = self.epoch | ||
num = ctypes.c_uint64(1) | ||
epoch = ctypes.c_uint64(self.epoch) | ||
anchor = Anchor() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should just report back a dictionary with the list of epochs that have been snapshotted.
@@ -1893,13 +1895,15 @@ def list(self, coh): | |||
.format(retcode)) | |||
return epoch.value | |||
|
|||
def open(self, coh): | |||
def open(self, coh, epoch=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the intent is really to open a snapshot, then the epoch should be mandatory there.
@@ -1908,7 +1912,7 @@ def open(self, coh): | |||
.format(retcode)) | |||
return txhndl | |||
|
|||
def destroy(self, coh, evnt=None): | |||
def destroy(self, coh, epoch=None, evnt=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment here.
@@ -1917,6 +1921,8 @@ def destroy(self, coh, evnt=None): | |||
# need container handle coh, and the epoch range | |||
""" | |||
func = self.context.get_function('destroy-snap') | |||
if epoch is None: | |||
epoch = self.epoch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should remove the notion of self.epoch totally IMO.
Updated file: src/utils/py/daos_api.py
New file: src/tests/ftest/container/snapshot_info_test.py
New file: src/tests/ftest/container/snapshot_info_test.yaml
Signed-off-by: Ding Ho ding-hwa.ho@intel.com