diff --git a/test/integration/targets/ansible-galaxy-collection/tasks/publish.yml b/test/integration/targets/ansible-galaxy-collection/tasks/publish.yml index 1be16ae9015..0572ead4fd0 100644 --- a/test/integration/targets/ansible-galaxy-collection/tasks/publish.yml +++ b/test/integration/targets/ansible-galaxy-collection/tasks/publish.yml @@ -31,6 +31,21 @@ chdir: '{{ galaxy_dir }}' register: fail_publish_existing failed_when: fail_publish_existing is not failed + ignore_errors: true + +- name: get result of publish collection - {{ test_name }} + uri: + url: '{{ test_api_server }}v3/plugin/ansible/content/primary/collections/index/ansible_test/my_collection/versions/1.0.0/' + return_content: yes + user: '{{ pulp_user }}' + password: '{{ pulp_password }}' + force_basic_auth: true + register: publish_collection_update + when: fail_publish_existing is not failed + +- assert: + that: + - fail_publish_existing is failed or publish_collection_update["json"]["updated_at"] == publish_collection_actual["json"]["updated_at"] - name: reset published collections - {{ test_name }} include_tasks: pulp.yml