|
|
@ -114,18 +114,18 @@ errors rpm_eval -E '%%ansible_collection_url'
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "Ensure macro works when both arguments are passed and no control macros are set"
|
|
|
|
echo "Ensure macro works when both arguments are passed and no control macros are set"
|
|
|
|
[[ $(rpm_eval -E '%%ansible_collection_url community general') == \
|
|
|
|
[ "$(rpm_eval -E '%%ansible_collection_url community general')" = \
|
|
|
|
"https://galaxy.ansible.com/community/general" ]]
|
|
|
|
"https://galaxy.ansible.com/community/general" ]
|
|
|
|
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "Ensure macro works with the control macros"
|
|
|
|
echo "Ensure macro works with the control macros"
|
|
|
|
[[ $(rpm_eval -D 'collection_namespace ansible' -D 'collection_name posix' \
|
|
|
|
[ "$(rpm_eval -D 'collection_namespace ansible' -D 'collection_name posix' \
|
|
|
|
-E '%%ansible_collection_url') == "https://galaxy.ansible.com/ansible/posix" ]]
|
|
|
|
-E '%%ansible_collection_url')" = "https://galaxy.ansible.com/ansible/posix" ]
|
|
|
|
|
|
|
|
|
|
|
|
echo
|
|
|
|
echo
|
|
|
|
echo "Ensure macro prefers the collection namespace and name passed as an argument over the control macros"
|
|
|
|
echo "Ensure macro prefers the collection namespace and name passed as an argument over the control macros"
|
|
|
|
[[ $(rpm_eval -D 'collection_namespace ansible' -D 'collection_name posix' \
|
|
|
|
[ "$(rpm_eval -D 'collection_namespace ansible' -D 'collection_name posix' \
|
|
|
|
-E '%%ansible_collection_url community general') == "https://galaxy.ansible.com/community/general" ]]
|
|
|
|
-E '%%ansible_collection_url community general')" = "https://galaxy.ansible.com/community/general" ]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|