test-kitchen 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/kitchen/provisioner/chef_base.rb +31 -14
- data/lib/kitchen/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d13b33db25f75d1d7f7a89d6da2a7eb2e78da9a8c7416ed6cf7a8d72e2e690a2
|
|
4
|
+
data.tar.gz: bb0352e0588277a0cff8d03364e09608cbd4f68218824a041d26d2f7c3c74a4b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3d6cd7cdfff82e128a602f8eab578834168051940aadb50fdee9988f45ae9baa1b20053dc8580e69ce70ad160edb4d46e8bdf458cf36245a4dff97d13f128175
|
|
7
|
+
data.tar.gz: f05de5e3be22a367cdafb162e70651fcf9b9f881d8948654988c93648f650619ef63b2b2cf70d55b0818e94f057695c06465cf59f5a9168aa085ebb4710aa1f3
|
|
@@ -681,25 +681,42 @@ module Kitchen
|
|
|
681
681
|
chef_cmds(base_cmd).join(separator)
|
|
682
682
|
end
|
|
683
683
|
|
|
684
|
-
# Gives an array of
|
|
684
|
+
# Gives an array of commands
|
|
685
685
|
# @api private
|
|
686
686
|
def chef_cmds(base_cmd)
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
if config[:enforce_idempotency]
|
|
695
|
-
idempotent_cmd = prefix_command(wrap_shell_code(
|
|
696
|
-
[base_cmd, *chef_args("client_no_updated_resources.rb"), last_exit_code].join(" ")
|
|
697
|
-
.tap { |str| str.insert(0, reload_ps1_path) if windows_os? }
|
|
698
|
-
))
|
|
699
|
-
cmds[-1] = idempotent_cmd
|
|
687
|
+
cmds = []
|
|
688
|
+
num_converges = config[:multiple_converge].to_i
|
|
689
|
+
idempotency = config[:enforce_idempotency]
|
|
690
|
+
|
|
691
|
+
# Execute Chef Client n-1 times, without exiting
|
|
692
|
+
(num_converges - 1).times do
|
|
693
|
+
cmds << wrapped_chef_cmd(base_cmd, config_filename)
|
|
700
694
|
end
|
|
695
|
+
|
|
696
|
+
# Append another execution with Windows specific Exit code helper or (for
|
|
697
|
+
# idempotency check) a specific config file which assures no changed resources.
|
|
698
|
+
cmds << unless idempotency
|
|
699
|
+
wrapped_chef_cmd(base_cmd, config_filename, append: last_exit_code)
|
|
700
|
+
else
|
|
701
|
+
wrapped_chef_cmd(base_cmd, "client_no_updated_resources.rb", append: last_exit_code)
|
|
702
|
+
end
|
|
701
703
|
cmds
|
|
702
704
|
end
|
|
705
|
+
|
|
706
|
+
# Concatenate all arguments and wrap it with shell-specifics
|
|
707
|
+
# @api private
|
|
708
|
+
def wrapped_chef_cmd(base_cmd, configfile, append: "")
|
|
709
|
+
args = []
|
|
710
|
+
|
|
711
|
+
args << base_cmd
|
|
712
|
+
args << chef_args(configfile)
|
|
713
|
+
args << append
|
|
714
|
+
|
|
715
|
+
shell_cmd = args.flatten.join(" ")
|
|
716
|
+
shell_cmd = shell_cmd.prepend(reload_ps1_path) if windows_os?
|
|
717
|
+
|
|
718
|
+
prefix_command(wrap_shell_code(shell_cmd))
|
|
719
|
+
end
|
|
703
720
|
end
|
|
704
721
|
end
|
|
705
722
|
end
|
data/lib/kitchen/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: test-kitchen
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.2.
|
|
4
|
+
version: 3.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fletcher Nichol
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-11-
|
|
11
|
+
date: 2021-11-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mixlib-shellout
|