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.
ansible/lib/ansible
Toshio Kuratomi 4cad7e479c
Galaxy publish fix (#63580)
* 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.
6 years ago
..
cli Wrap CLI Passwords with AnsibleUnsafeText, ensure unsafe context is not lost during encode/decode (#63351) 6 years ago
compat Update bundled copy of selectors2 from 1.1.0 to 1.1.1 (#55457) 7 years ago
config Deprecate hash_behaviour (#63300) 6 years ago
errors Catch sshpass authentication errors and don't retry multiple times to prevent account lockout (#50776) 7 years ago
executor Explicitly use multiprocessing fork start method (#63581) 6 years ago
galaxy Galaxy publish fix (#63580) 6 years ago
inventory Account for empty strings when splitting the host pattern (#62442) 6 years ago
module_utils cloudscale: fix boilerplate (#63533) 6 years ago
modules [lightsail] make delete operation idempotent (#63317) 6 years ago
parsing Add a representer for AnsibleUnsafeBytes (#62598) 6 years ago
playbook Collection role relative deps (#61517) 6 years ago
plugins generalized on_become prompt match for ios (#63528) 6 years ago
template Wrap CLI Passwords with AnsibleUnsafeText, ensure unsafe context is not lost during encode/decode (#63351) 6 years ago
utils Explicitly use multiprocessing fork start method (#63581) 6 years ago
vars Use correct delegate_to hostnames in loops (#59659) 6 years ago
__init__.py
constants.py removed previouslly deprecated settings (#55662) 7 years ago
context.py Become plugins (#50991) 7 years ago
release.py Update release name for 2.10 6 years ago