mirror of https://github.com/ansible/ansible.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4cad7e479c
* Handle galaxy v2/v3 API diffs for artifact publish response For publishing a collection artifact (POST /v3/collections/artifacts/), the response format is different between v2 and v3. For v2 galaxy, the 'task' url returned is a full url with scheme: {"task": "https://galaxy-dev.ansible.com/api/v2/collection-imports/35573/"} For v3 galaxy, the task url is relative: {"task": "/api/automation-hub/v3/imports/collections/838d1308-a8f4-402c-95cb-7823f3806cd8/"} So check which API we are using and update the task url approriately. * Use full url for all wait_for_import messages Update unit tests to parameterize the expected responses and urls. * update explanatory comment * Rename n_url to full_url. * Fix issue with overwrite of the complete path * Fixes overwrite of the complete path in case there's extra path stored in self.api_sever * Normalizes the input to the wait_import_task function so it receives the same value on both v2 and v3 Builds on #63523 * Update unittests for new call signature * Add changelog for ansible-galaxy publish API fixes. |
5 years ago | |
---|---|---|
.. | ||
cli | 5 years ago | |
compat | 6 years ago | |
config | 5 years ago | |
contrib | 6 years ago | |
errors | 6 years ago | |
executor | 5 years ago | |
galaxy | 5 years ago | |
inventory_test_data/group_vars | 10 years ago | |
mock | 6 years ago | |
module_utils | 5 years ago | |
modules | 5 years ago | |
parsing | 5 years ago | |
playbook | 5 years ago | |
plugins | 5 years ago | |
regex | 6 years ago | |
template | 5 years ago | |
utils | 5 years ago | |
vars | 6 years ago | |
__init__.py | 8 years ago | |
requirements.txt | 5 years ago | |
test_constants.py | 8 years ago | |
test_context.py | 5 years ago |