summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSloane Hertel <19572925+s-hertel@users.noreply.github.com>2023-04-14 16:07:11 -0400
committerGitHub <noreply@github.com>2023-04-14 13:07:11 -0700
commit25e77b7c98aebaacfd6ff97e2ff82c8271ca61b5 (patch)
tree6bbc6b970966b529cbb4f5f9de1c127472408a9d /test
parentdab364052716530f770b2cef3588e6d03456a2b9 (diff)
downloadansible-25e77b7c98aebaacfd6ff97e2ff82c8271ca61b5.tar.gz
Fetch signatures from galaxy after the dependency resolver runs (#80334) (#80399)
Reduce the number of Galaxy API calls made during dependency resolution by fetching remote signatures afterwards, since these are not used in backtracking. Reduce the verbosity to `-vvvv` (to match other Galaxy API calls) to see this activity. Co-authored-by: Sviatoslav Sydorenko <webknjaz@redhat.com> (cherry picked from commit 460abe0ceffc5ca99b3cc2f2e3ef07aa2cb225dc)
Diffstat (limited to 'test')
-rw-r--r--test/integration/targets/ansible-galaxy-collection/tasks/install.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/integration/targets/ansible-galaxy-collection/tasks/install.yml b/test/integration/targets/ansible-galaxy-collection/tasks/install.yml
index a55b64d8a9..f9014ed9bd 100644
--- a/test/integration/targets/ansible-galaxy-collection/tasks/install.yml
+++ b/test/integration/targets/ansible-galaxy-collection/tasks/install.yml
@@ -5,7 +5,7 @@
state: directory
- name: install simple collection from first accessible server
- command: ansible-galaxy collection install namespace1.name1 {{ galaxy_verbosity }}
+ command: ansible-galaxy collection install namespace1.name1 -vvvv
environment:
ANSIBLE_COLLECTIONS_PATH: '{{ galaxy_dir }}/ansible_collections'
register: from_first_good_server
@@ -30,6 +30,7 @@
- install_normal_files.files[1].path | basename in ['MANIFEST.json', 'FILES.json', 'README.md']
- install_normal_files.files[2].path | basename in ['MANIFEST.json', 'FILES.json', 'README.md']
- (install_normal_manifest.content | b64decode | from_json).collection_info.version == '1.0.9'
+ - 'from_first_good_server.stdout|regex_findall("has not signed namespace1\.name1")|length == 1'
- name: Remove the collection
file: