-
Notifications
You must be signed in to change notification settings - Fork 165
[1LP][RFR] New Test: test_crud_service_template_with_picture #9774
Conversation
78807cb
to
4112cf0
Compare
4112cf0
to
8858582
Compare
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 :)
2. Note the picture md5 by querying `picture` attribute of the service template. | ||
3. Edit the service template via REST for a different picture. | ||
4. Note the picture md5 by querying `picture` attribute of the service template. | ||
3. Compare both the md5 from testStep 2 and 4. |
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.
It should be 5. Compare both the md5 from testStep 2 and 4.
Right?
8858582
to
f0ab2f0
Compare
f0ab2f0
to
3002e82
Compare
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.
Nice PR 👍
some comments please have a glance.
|
||
assert picture_1_md5 != picture_2_md5 | ||
|
||
service_template.action.delete() |
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.
Q: why we need this deletion? I think it should be taken care by finalizer.
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 could let finalizer do the deletion, but then I thought, since I was already creating and editing the template, I might as well delete it to justify the crud in the test name 😬
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 best practice is limit test as per test behavior. If deletion will fails means teardown of test will fail not actual steps. I think better to have separate test for crud operation test.
}, | ||
"service_type": "atomic", | ||
"display": True, | ||
"description": fauxfactory.gen_alpha(start="Description "), |
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.
Required: fauxfactory
default character limit is 10
3002e82
to
951d334
Compare
Purpose or Intent
Adding tests
test_crud_service_template_with_picture
Enhancement
rest_api_entity
property toDialog
entityCatalog
entityPRT Run
{{ pytest: cfme/tests/services/test_rest_services.py -k "test_crud_service_template_with_picture" --long-running -vvvv }}