ansible_spec 0.2.23 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +7 -4
- data/CHANGELOG.md +19 -0
- data/Gemfile +5 -0
- data/README.md +1 -1
- data/ansible_spec.gemspec +2 -1
- data/lib/ansible_spec/load_ansible.rb +106 -9
- data/lib/ansible_spec/version.rb +1 -1
- data/lib/src/spec/spec_helper.rb +5 -4
- data/spec/case/get_variable/empty_group/group_vars/group_a.yml +2 -0
- data/spec/case/get_variable/empty_group/group_vars/group_b.yml +2 -0
- data/spec/case/get_variable/empty_group/hosts +3 -0
- data/spec/case/get_variable/empty_group/site.yml +9 -0
- data/spec/case/get_variable/group_each_vars_parent_child/group_vars/all.yml +6 -0
- data/spec/case/get_variable/group_each_vars_parent_child/group_vars/group1/vars +4 -0
- data/spec/case/get_variable/group_each_vars_parent_child/group_vars/group2/vars +4 -0
- data/spec/case/get_variable/group_each_vars_parent_child/group_vars/parentgroup/vars +5 -0
- data/spec/case/get_variable/group_each_vars_parent_child/hosts +13 -0
- data/spec/case/get_variable/group_each_vars_parent_child/site.yml +6 -0
- data/spec/case/get_variable/group_each_vars_parent_child/site1.yml +6 -0
- data/spec/case/get_variable/group_each_vars_parent_child/site2.yml +6 -0
- data/spec/case/get_variable/group_each_vars_parent_child/site3.yml +6 -0
- data/spec/case/get_variable/resolve_variables/group_vars/all.yml +24 -0
- data/spec/case/get_variable/resolve_variables/hosts +5 -0
- data/spec/case/get_variable/resolve_variables/site.yml +3 -0
- data/spec/case/load_vars_file/vault_dir/ansible.cfg +2 -0
- data/spec/case/load_vars_file/vault_dir/group_vars/all/vault_file +6 -0
- data/spec/case/load_vars_file/vault_dir/vault-password-file +1 -0
- data/spec/get_variable_spec.rb +239 -25
- data/spec/load_ansible_spec.rb +303 -4
- metadata +80 -29
metadata
CHANGED
@@ -1,139 +1,153 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ansible_spec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- volanja
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: diff-lcs
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: simplecov
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: serverspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 2.0.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 2.0.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: hostlist_expression
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: oj
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '0'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: winrm
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- -
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0'
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- -
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: inifile
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: ansible-vault
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
130
144
|
- !ruby/object:Gem::Version
|
131
145
|
version: '0'
|
132
146
|
type: :runtime
|
133
147
|
prerelease: false
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
|
-
- -
|
150
|
+
- - ">="
|
137
151
|
- !ruby/object:Gem::Version
|
138
152
|
version: '0'
|
139
153
|
description: Ansible Config Parser for Serverspec. Run test Multi Role and Multi Host
|
@@ -145,9 +159,9 @@ executables:
|
|
145
159
|
extensions: []
|
146
160
|
extra_rdoc_files: []
|
147
161
|
files:
|
148
|
-
- .gitignore
|
149
|
-
- .rspec
|
150
|
-
- .travis.yml
|
162
|
+
- ".gitignore"
|
163
|
+
- ".rspec"
|
164
|
+
- ".travis.yml"
|
151
165
|
- CHANGELOG.md
|
152
166
|
- Gemfile
|
153
167
|
- LICENSE.txt
|
@@ -176,6 +190,10 @@ files:
|
|
176
190
|
- spec/case/get_variable/deep_merge/hosts
|
177
191
|
- spec/case/get_variable/deep_merge/roles/test/defaults/main.yml
|
178
192
|
- spec/case/get_variable/deep_merge/site.yml
|
193
|
+
- spec/case/get_variable/empty_group/group_vars/group_a.yml
|
194
|
+
- spec/case/get_variable/empty_group/group_vars/group_b.yml
|
195
|
+
- spec/case/get_variable/empty_group/hosts
|
196
|
+
- spec/case/get_variable/empty_group/site.yml
|
179
197
|
- spec/case/get_variable/group_all/group_vars/all.yml
|
180
198
|
- spec/case/get_variable/group_all/hosts
|
181
199
|
- spec/case/get_variable/group_all/roles/test/defaults/main.yml
|
@@ -184,6 +202,15 @@ files:
|
|
184
202
|
- spec/case/get_variable/group_each_vars/group_vars/group1.yml
|
185
203
|
- spec/case/get_variable/group_each_vars/hosts
|
186
204
|
- spec/case/get_variable/group_each_vars/site.yml
|
205
|
+
- spec/case/get_variable/group_each_vars_parent_child/group_vars/all.yml
|
206
|
+
- spec/case/get_variable/group_each_vars_parent_child/group_vars/group1/vars
|
207
|
+
- spec/case/get_variable/group_each_vars_parent_child/group_vars/group2/vars
|
208
|
+
- spec/case/get_variable/group_each_vars_parent_child/group_vars/parentgroup/vars
|
209
|
+
- spec/case/get_variable/group_each_vars_parent_child/hosts
|
210
|
+
- spec/case/get_variable/group_each_vars_parent_child/site.yml
|
211
|
+
- spec/case/get_variable/group_each_vars_parent_child/site1.yml
|
212
|
+
- spec/case/get_variable/group_each_vars_parent_child/site2.yml
|
213
|
+
- spec/case/get_variable/group_each_vars_parent_child/site3.yml
|
187
214
|
- spec/case/get_variable/group_host_playbook/group_vars/all.yml
|
188
215
|
- spec/case/get_variable/group_host_playbook/group_vars/group1.yml
|
189
216
|
- spec/case/get_variable/group_host_playbook/host_vars/192.168.1.1.yml
|
@@ -288,6 +315,9 @@ files:
|
|
288
315
|
- spec/case/get_variable/inventories_env_host_vars/site.yml
|
289
316
|
- spec/case/get_variable/playbook_only/hosts
|
290
317
|
- spec/case/get_variable/playbook_only/site.yml
|
318
|
+
- spec/case/get_variable/resolve_variables/group_vars/all.yml
|
319
|
+
- spec/case/get_variable/resolve_variables/hosts
|
320
|
+
- spec/case/get_variable/resolve_variables/site.yml
|
291
321
|
- spec/case/get_variable/roles_default/hosts
|
292
322
|
- spec/case/get_variable/roles_default/roles/test/defaults/main.yml
|
293
323
|
- spec/case/get_variable/roles_default/site.yml
|
@@ -298,6 +328,9 @@ files:
|
|
298
328
|
- spec/case/load_vars_file/group_all_deep_merge/group_vars/all.yml
|
299
329
|
- spec/case/load_vars_file/vars_dir/group_vars/all/file1
|
300
330
|
- spec/case/load_vars_file/vars_dir/group_vars/all/file2
|
331
|
+
- spec/case/load_vars_file/vault_dir/ansible.cfg
|
332
|
+
- spec/case/load_vars_file/vault_dir/group_vars/all/vault_file
|
333
|
+
- spec/case/load_vars_file/vault_dir/vault-password-file
|
301
334
|
- spec/commands_spec.rb
|
302
335
|
- spec/dependency_spec.rb
|
303
336
|
- spec/dynamic_inventory_hosts_childrens_spec.rb
|
@@ -323,17 +356,16 @@ require_paths:
|
|
323
356
|
- lib
|
324
357
|
required_ruby_version: !ruby/object:Gem::Requirement
|
325
358
|
requirements:
|
326
|
-
- -
|
359
|
+
- - ">="
|
327
360
|
- !ruby/object:Gem::Version
|
328
361
|
version: '0'
|
329
362
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
330
363
|
requirements:
|
331
|
-
- -
|
364
|
+
- - ">="
|
332
365
|
- !ruby/object:Gem::Version
|
333
366
|
version: '0'
|
334
367
|
requirements: []
|
335
|
-
|
336
|
-
rubygems_version: 2.1.11
|
368
|
+
rubygems_version: 3.1.2
|
337
369
|
signing_key:
|
338
370
|
specification_version: 4
|
339
371
|
summary: Ansible Config Parser for Serverspec. Run test Multi Role and Multi Host
|
@@ -351,6 +383,10 @@ test_files:
|
|
351
383
|
- spec/case/get_variable/deep_merge/hosts
|
352
384
|
- spec/case/get_variable/deep_merge/roles/test/defaults/main.yml
|
353
385
|
- spec/case/get_variable/deep_merge/site.yml
|
386
|
+
- spec/case/get_variable/empty_group/group_vars/group_a.yml
|
387
|
+
- spec/case/get_variable/empty_group/group_vars/group_b.yml
|
388
|
+
- spec/case/get_variable/empty_group/hosts
|
389
|
+
- spec/case/get_variable/empty_group/site.yml
|
354
390
|
- spec/case/get_variable/group_all/group_vars/all.yml
|
355
391
|
- spec/case/get_variable/group_all/hosts
|
356
392
|
- spec/case/get_variable/group_all/roles/test/defaults/main.yml
|
@@ -359,6 +395,15 @@ test_files:
|
|
359
395
|
- spec/case/get_variable/group_each_vars/group_vars/group1.yml
|
360
396
|
- spec/case/get_variable/group_each_vars/hosts
|
361
397
|
- spec/case/get_variable/group_each_vars/site.yml
|
398
|
+
- spec/case/get_variable/group_each_vars_parent_child/group_vars/all.yml
|
399
|
+
- spec/case/get_variable/group_each_vars_parent_child/group_vars/group1/vars
|
400
|
+
- spec/case/get_variable/group_each_vars_parent_child/group_vars/group2/vars
|
401
|
+
- spec/case/get_variable/group_each_vars_parent_child/group_vars/parentgroup/vars
|
402
|
+
- spec/case/get_variable/group_each_vars_parent_child/hosts
|
403
|
+
- spec/case/get_variable/group_each_vars_parent_child/site.yml
|
404
|
+
- spec/case/get_variable/group_each_vars_parent_child/site1.yml
|
405
|
+
- spec/case/get_variable/group_each_vars_parent_child/site2.yml
|
406
|
+
- spec/case/get_variable/group_each_vars_parent_child/site3.yml
|
362
407
|
- spec/case/get_variable/group_host_playbook/group_vars/all.yml
|
363
408
|
- spec/case/get_variable/group_host_playbook/group_vars/group1.yml
|
364
409
|
- spec/case/get_variable/group_host_playbook/host_vars/192.168.1.1.yml
|
@@ -463,6 +508,9 @@ test_files:
|
|
463
508
|
- spec/case/get_variable/inventories_env_host_vars/site.yml
|
464
509
|
- spec/case/get_variable/playbook_only/hosts
|
465
510
|
- spec/case/get_variable/playbook_only/site.yml
|
511
|
+
- spec/case/get_variable/resolve_variables/group_vars/all.yml
|
512
|
+
- spec/case/get_variable/resolve_variables/hosts
|
513
|
+
- spec/case/get_variable/resolve_variables/site.yml
|
466
514
|
- spec/case/get_variable/roles_default/hosts
|
467
515
|
- spec/case/get_variable/roles_default/roles/test/defaults/main.yml
|
468
516
|
- spec/case/get_variable/roles_default/site.yml
|
@@ -473,6 +521,9 @@ test_files:
|
|
473
521
|
- spec/case/load_vars_file/group_all_deep_merge/group_vars/all.yml
|
474
522
|
- spec/case/load_vars_file/vars_dir/group_vars/all/file1
|
475
523
|
- spec/case/load_vars_file/vars_dir/group_vars/all/file2
|
524
|
+
- spec/case/load_vars_file/vault_dir/ansible.cfg
|
525
|
+
- spec/case/load_vars_file/vault_dir/group_vars/all/vault_file
|
526
|
+
- spec/case/load_vars_file/vault_dir/vault-password-file
|
476
527
|
- spec/commands_spec.rb
|
477
528
|
- spec/dependency_spec.rb
|
478
529
|
- spec/dynamic_inventory_hosts_childrens_spec.rb
|