mirror of
https://github.com/ansible-collections/google.cloud.git
synced 2025-08-23 06:21:49 -07:00
Merge pull request #692 from ansible-collections/release-1.6.0
Some checks failed
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Has been cancelled
Some checks failed
Run integration tests for the cloud.google collection / integration (stable-2.16) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.17) (push) Has been cancelled
Run integration tests for the cloud.google collection / integration (stable-2.18) (push) Has been cancelled
Release 1.6.0
This commit is contained in:
commit
8863545bef
11 changed files with 45 additions and 9 deletions
|
@ -3,7 +3,8 @@
|
|||
ansible.builtin.debug:
|
||||
msg: "Testing {{ item.key }} scenario"
|
||||
|
||||
- block:
|
||||
- name: Test GVNIC scenarios
|
||||
block:
|
||||
- name: Create disk
|
||||
google.cloud.gcp_compute_disk:
|
||||
name: "{{ resource_prefix }}-{{ item.key }}"
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
connection: local
|
||||
gather_facts: false
|
||||
vars_files:
|
||||
- vars.yml
|
||||
- ../vars.yml
|
||||
tasks:
|
||||
- name: SETUP | Create network
|
||||
google.cloud.gcp_compute_network:
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
connection: local
|
||||
gather_facts: false
|
||||
vars_files:
|
||||
- vars.yml
|
||||
- ../vars.yml
|
||||
tasks:
|
||||
- name: TEARDOWN | Delete instance # noqa: ignore-errors
|
||||
google.cloud.gcp_compute_instance:
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
connection: local
|
||||
gather_facts: false
|
||||
vars_files:
|
||||
- vars.yml
|
||||
- ../vars.yml
|
||||
tasks:
|
||||
- name: TEST | render inventory file
|
||||
ansible.builtin.copy:
|
||||
|
@ -12,12 +12,12 @@
|
|||
content: "{{ lookup('template', '../templates/inventory.yml.j2') }}"
|
||||
mode: preserve
|
||||
|
||||
- name: slurp
|
||||
- name: TEST | slurp
|
||||
ansible.builtin.slurp:
|
||||
src: "../{{ inventory_filename }}"
|
||||
register: _inv
|
||||
|
||||
- name: debug
|
||||
- name: TEST | debug
|
||||
ansible.builtin.debug:
|
||||
msg: "{{ _inv.content | b64decode }}"
|
||||
verbosity: 3
|
||||
|
@ -27,4 +27,4 @@
|
|||
|
||||
- name: TEST | run test case
|
||||
ansible.builtin.include_tasks:
|
||||
file: "testcase_{{ testcase }}.yml"
|
||||
file: "../testcase_{{ testcase }}.yml"
|
||||
|
|
|
@ -11,7 +11,7 @@ RC=0
|
|||
# we want to run teardown regardless of playbook exit status, so catch the
|
||||
# exit code of ansible-playbook manually
|
||||
set +e
|
||||
for ts in playbooks/testcase_*.yml;
|
||||
for ts in testcase_*.yml;
|
||||
do
|
||||
testcase=$( basename "$ts" | sed -e 's/testcase_//' | sed -e 's/.yml//' )
|
||||
ansible-playbook playbooks/test.yml "$@" --extra-vars "testcase=${testcase}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue