Closed deyanstoykov closed 2 years ago
Hi @deyanstoykov , sorry for the late answer. I'll have a look at it asap
Can you also add some unit tests for these new features please ? You can write the following tests: set_property_success -> 200 OK set_property_fail_bad_fields -> 400 KO set_property_fail_artifact_not_found -> 404 KO
update_property_success -> 200 OK update_property_fail_bad_fields -> 400 KO update_property_fail_artifact_not_found -> 404 KO
Instead of returning nothing in the
set_properties
andupdate_properties
functions, you can return a property:return self.properties(artifact_path, [List of properties])
As a result, in your tests you can assert that the properties have been successfully set.
Unit tests added.
Can you also add some unit tests for these new features please ? You can write the following tests: set_property_success -> 200 OK set_property_fail_bad_fields -> 400 KO set_property_fail_artifact_not_found -> 404 KO
update_property_success -> 200 OK update_property_fail_bad_fields -> 400 KO update_property_fail_artifact_not_found -> 404 KO
Instead of returning nothing in the
set_properties
andupdate_properties
functions, you can return a property:return self.properties(artifact_path, [List of properties])
As a result, in your tests you can assert that the properties have been successfully set.
Unit tests added.
Hi @anancarv, @nymous, Looks like all checks have passed. Is there anything I could do to help accelerate approval/merge of this PR?
Hi @anancarv, @nymous, Looks like all checks have passed. Is there anything I could do to help accelerate approval/merge of this PR?
Hi @deyanstoykov , @nymous wanted to add some comments on this PR. Let's wait for his review. If it's urgent, we can probably merge it and make another PR or create issues to address them. What do you think @nymous ?
Hi @anancarv, @nymous, Looks like all checks have passed. Is there anything I could do to help accelerate approval/merge of this PR?
The PR has been merged to master. A new release will be created soon
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
Fixes #91
Type of change
How has it been tested ?
Tested manually with Artifactory 7:
As the API calls used do not return any data other than the HTTP status code, I'm not sure what's the proper approach to automated testing.
Checklist: