Debian Codegraph @

test/integration/targets/ansible-galaxy-collection-cli/tasks/manifest.yml

raw symbols SCIP
1 - name: Create test collection dir
2 script: make_collection_dir.py "{{ output_dir }}/test_manifest_collection"
3 args:
4 executable: '{{ ansible_facts.python.executable }}'
5
6 - name: Copy galaxy.yml
7 copy:
8 src: galaxy.yml
9 dest: '{{ output_dir }}/test_manifest_collection/galaxy.yml'
10
11 - name: Build collection
12 command: ansible-galaxy collection build --output-path {{ output_dir|quote }} -vvv
13 args:
14 chdir: '{{ output_dir }}/test_manifest_collection'
15
16 - name: Get artifact contents
17 command: tar tzf '{{ output_dir }}/ns-col-1.0.0.tar.gz'
18 register: artifact_contents
19
20 - debug:
21 var: artifact_contents.stdout_lines|sort
22
23 - debug:
24 var: lookup('file', 'expected.txt').splitlines()|sort
25
26 - assert:
27 that:
28 - artifact_contents.stdout_lines|sort == lookup('file', 'expected.txt').splitlines()|sort
29
30 - name: Create test collection dir
31 script: make_collection_dir.py "{{ output_dir }}/test_manifest_no_defaults_collection"
32 args:
33 executable: '{{ ansible_facts.python.executable }}'
34
35 - name: Copy galaxy.yml with manifest_directives_full
36 copy:
37 src: full_manifest_galaxy.yml
38 dest: '{{ output_dir }}/test_manifest_no_defaults_collection/galaxy.yml'
39
40 - name: Build collection
41 command: ansible-galaxy collection build --output-path {{ output_dir|quote }} -vvv
42 args:
43 chdir: '{{ output_dir }}/test_manifest_no_defaults_collection'
44
45 - name: Get artifact contents
46 command: tar tzf '{{ output_dir }}/ns-col-2.0.0.tar.gz'
47 register: artifact_contents
48
49 - debug:
50 var: artifact_contents.stdout_lines|sort
51
52 - debug:
53 var: lookup('file', 'expected_full_manifest.txt').splitlines()|sort
54
55 - assert:
56 that:
57 - artifact_contents.stdout_lines|sort == lookup('file', 'expected_full_manifest.txt').splitlines()|sort
58
59 - name: Create test collection dir
60 script: make_collection_dir.py "{{ output_dir }}/test_manifest_empty_collection"
61 args:
62 executable: '{{ ansible_facts.python.executable }}'
63
64 - name: Copy galaxy.yml with empty_manifest_galaxy
65 copy:
66 src: empty_manifest_galaxy.yml
67 dest: '{{ output_dir }}/test_manifest_empty_collection/galaxy.yml'
68
69 - name: Build collection
70 command: ansible-galaxy collection build --output-path {{ output_dir|quote }} -vvv
71 args:
72 chdir: '{{ output_dir }}/test_manifest_empty_collection'
73
74 - name: Get artifact contents
75 command: tar tzf '{{ output_dir }}/ns-col-3.0.0.tar.gz'
76 register: artifact_contents
77
78 - debug:
79 var: artifact_contents.stdout_lines|sort
80
81 - debug:
82 var: lookup('file', 'expected_empty.txt').splitlines()|sort
83
84 - assert:
85 that:
86 - artifact_contents.stdout_lines|sort == lookup('file', 'expected_empty.txt').splitlines()|sort