|
|
|
@ -165,6 +165,31 @@ pushd "${galaxy_testdir}"
|
|
|
|
|
|
|
|
|
|
[[ -f "${galaxy_testdir}/ansible_test-my_collection-1.0.0.tar.gz" ]]
|
|
|
|
|
|
|
|
|
|
f_ansible_galaxy_status \
|
|
|
|
|
"collection install from local tarball test"
|
|
|
|
|
|
|
|
|
|
ansible-galaxy collection install "ansible_test-my_collection-1.0.0.tar.gz" -p ./install | tee out.txt
|
|
|
|
|
|
|
|
|
|
[[ -f "${galaxy_testdir}/install/ansible_collections/ansible_test/my_collection/MANIFEST.json" ]]
|
|
|
|
|
grep "Installing 'ansible_test.my_collection:1.0.0' to .*" out.txt
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
f_ansible_galaxy_status \
|
|
|
|
|
"collection install with existing collection and without --force"
|
|
|
|
|
|
|
|
|
|
ansible-galaxy collection install "ansible_test-my_collection-1.0.0.tar.gz" -p ./install | tee out.txt
|
|
|
|
|
|
|
|
|
|
[[ -f "${galaxy_testdir}/install/ansible_collections/ansible_test/my_collection/MANIFEST.json" ]]
|
|
|
|
|
grep "Skipping 'ansible_test.my_collection' as it is already installed" out.txt
|
|
|
|
|
|
|
|
|
|
f_ansible_galaxy_status \
|
|
|
|
|
"collection install with existing collection and with --force"
|
|
|
|
|
|
|
|
|
|
ansible-galaxy collection install "ansible_test-my_collection-1.0.0.tar.gz" -p ./install --force | tee out.txt
|
|
|
|
|
|
|
|
|
|
[[ -f "${galaxy_testdir}/install/ansible_collections/ansible_test/my_collection/MANIFEST.json" ]]
|
|
|
|
|
grep "Installing 'ansible_test.my_collection:1.0.0' to .*" out.txt
|
|
|
|
|
|
|
|
|
|
popd # ${galaxy_testdir}
|
|
|
|
|
|
|
|
|
|
rm -fr "${galaxy_testdir}"
|
|
|
|
|