-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add client configuration api endpoint
fixes #740
- Loading branch information
1 parent
0e26381
commit a4424fd
Showing
6 changed files
with
61 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Implement v3/plugin/client-configuration/ endpoint to communicate to the ansible galaxy client | ||
which distribution to use. |
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
13 changes: 13 additions & 0 deletions
13
pulp_ansible/tests/functional/api/collection/v3/test_client_configuration.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
def test_client_config_distro( | ||
ansible_repo, ansible_distribution_factory, ansible_client_configuration_api_client | ||
): | ||
distro = ansible_distribution_factory(ansible_repo) | ||
res = ansible_client_configuration_api_client.get(path=distro.base_path) | ||
assert res.default_distribution_path == distro.base_path | ||
|
||
|
||
def test_client_config_default_distro( | ||
ansible_repo, ansible_distribution_factory, ansible_client_default_configuration_api_client | ||
): | ||
res = ansible_client_default_configuration_api_client.get() | ||
assert res.default_distribution_path is None |
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