|
|
@ -301,38 +301,39 @@
|
|
|
|
- (install_req_actual.results[0].content | b64decode | from_json).collection_info.version == '1.0.0'
|
|
|
|
- (install_req_actual.results[0].content | b64decode | from_json).collection_info.version == '1.0.0'
|
|
|
|
- (install_req_actual.results[1].content | b64decode | from_json).collection_info.version == '1.0.0'
|
|
|
|
- (install_req_actual.results[1].content | b64decode | from_json).collection_info.version == '1.0.0'
|
|
|
|
|
|
|
|
|
|
|
|
- name: install cache.cache at the current latest version
|
|
|
|
# Uncomment once pulp container is at pulp>=0.5.0
|
|
|
|
command: ansible-galaxy collection install cache.cache -s '{{ test_name }}' -vvv
|
|
|
|
#- name: install cache.cache at the current latest version
|
|
|
|
environment:
|
|
|
|
# command: ansible-galaxy collection install cache.cache -s '{{ test_name }}' -vvv
|
|
|
|
ANSIBLE_COLLECTIONS_PATH: '{{ galaxy_dir }}/ansible_collections'
|
|
|
|
# environment:
|
|
|
|
|
|
|
|
# ANSIBLE_COLLECTIONS_PATH: '{{ galaxy_dir }}/ansible_collections'
|
|
|
|
- set_fact:
|
|
|
|
#
|
|
|
|
cache_version_build: '{{ (cache_version_build | int) + 1 }}'
|
|
|
|
#- set_fact:
|
|
|
|
|
|
|
|
# cache_version_build: '{{ (cache_version_build | int) + 1 }}'
|
|
|
|
- name: publish update for cache.cache test
|
|
|
|
#
|
|
|
|
setup_collections:
|
|
|
|
#- name: publish update for cache.cache test
|
|
|
|
server: galaxy_ng
|
|
|
|
# setup_collections:
|
|
|
|
collections:
|
|
|
|
# server: galaxy_ng
|
|
|
|
- namespace: cache
|
|
|
|
# collections:
|
|
|
|
name: cache
|
|
|
|
# - namespace: cache
|
|
|
|
version: 1.0.{{ cache_version_build }}
|
|
|
|
# name: cache
|
|
|
|
|
|
|
|
# version: 1.0.{{ cache_version_build }}
|
|
|
|
- name: make sure the cache version list is ignored on a collection version change
|
|
|
|
#
|
|
|
|
command: ansible-galaxy collection install cache.cache -s '{{ test_name }}' --force -vvv
|
|
|
|
#- name: make sure the cache version list is ignored on a collection version change - {{ test_name }}
|
|
|
|
register: install_cached_update
|
|
|
|
# command: ansible-galaxy collection install cache.cache -s '{{ test_name }}' --force -vvv
|
|
|
|
environment:
|
|
|
|
# register: install_cached_update
|
|
|
|
ANSIBLE_COLLECTIONS_PATH: '{{ galaxy_dir }}/ansible_collections'
|
|
|
|
# environment:
|
|
|
|
|
|
|
|
# ANSIBLE_COLLECTIONS_PATH: '{{ galaxy_dir }}/ansible_collections'
|
|
|
|
- name: get result of install collections with ansible-galaxy install - {{ test_name }}
|
|
|
|
#
|
|
|
|
slurp:
|
|
|
|
#- name: get result of cache version list is ignored on a collection version change - {{ test_name }}
|
|
|
|
path: '{{ galaxy_dir }}/ansible_collections/cache/cache/MANIFEST.json'
|
|
|
|
# slurp:
|
|
|
|
register: install_cached_update_actual
|
|
|
|
# path: '{{ galaxy_dir }}/ansible_collections/cache/cache/MANIFEST.json'
|
|
|
|
|
|
|
|
# register: install_cached_update_actual
|
|
|
|
- name: assert install collections with ansible-galaxy install - {{ test_name }}
|
|
|
|
#
|
|
|
|
assert:
|
|
|
|
#- name: assert cache version list is ignored on a collection version change - {{ test_name }}
|
|
|
|
that:
|
|
|
|
# assert:
|
|
|
|
- '"Installing ''cache.cache:1.0.{{ cache_version_build }}'' to" in install_cached_update.stdout'
|
|
|
|
# that:
|
|
|
|
- (install_cached_update_actual.content | b64decode | from_json).collection_info.version == '1.0.' ~ cache_version_build
|
|
|
|
# - '"Installing ''cache.cache:1.0.{{ cache_version_build }}'' to" in install_cached_update.stdout'
|
|
|
|
|
|
|
|
# - (install_cached_update_actual.content | b64decode | from_json).collection_info.version == '1.0.' ~ cache_version_build
|
|
|
|
|
|
|
|
|
|
|
|
- name: remove test collection install directory - {{ test_name }}
|
|
|
|
- name: remove test collection install directory - {{ test_name }}
|
|
|
|
file:
|
|
|
|
file:
|
|
|
|