-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor docker CLI tests and utilities
The previous commit added utility code for updating a docker repository via the CLI. It did this by renaming a function called `repo_create`, which executes `pulp-admin docker repo create`, to `repo_create_update`, which can execute both the afore-mentioned command and `pulp-admin docker repo update`. This change makes sense if trying to keep implementation complexity to a low level, as the same set of flags are accepted both when creating and updating a docker repository. However, it raises interface complexity. Formerly, all `repo_*` functions map directly to a `pulp-admin docker repo *` command, but after this change, that pattern no longer holds true. Split function `repo_create_update` into `repo_create` and `repo_update`, in an attempt to keep interface complexity low. Also, edit the test code added by the previous commit for formatting purposes. Test results do not change as a result of this commit.
- Loading branch information
1 parent
af2e3a4
commit 10a38f3
Showing
4 changed files
with
72 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters