deploy-context 2.2.0.3.gec16643.4.g20d2d42.4.g17e8559.12.g831d0a8 → 2.2.0.3.gec16643.4.g20d2d42.4.g17e8559.12.g831d0a8.4.gbb2ab14.4.gb48499b
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.kitchen/logs/kitchen.log +141 -141
- data/VERSION +1 -0
- data/libraries/deploy-context/deploy/context.rb +110 -0
- data/libraries/deploy-context/deploy/cookbook.rb +6 -0
- data/libraries/deploy-context/deploy/cucumber.rb +17 -1
- data/libraries/deploy-context/deploy.rb +15 -101
- data/libraries/deploy-context.rb +0 -4
- data/metadata.rb +2 -1
- data.tar.gz.sig +0 -0
- metadata +3 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32408d99e8213a4b8c7e4cc949262cfb169296ddddff14cde5d7e8071bda469a
|
4
|
+
data.tar.gz: 92e60e810f02e3de5b3ae61fad1d20ce51de02158e6a8c73128e605f003ce57c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e03de1e90e3c32f53b504ef656e78a81af025f8e92c577164b600054d6df979765b3c18ce515f3f10e48a613384caea99e1feb6cbd7f29c19d0610d7cd517f52
|
7
|
+
data.tar.gz: 2d32486e31066c200217f1b3fc9defb767b922acbc0aab6bad31d95ed8a980ca4225bfb3e9956a305f45ee1ec78da3ae58d5a5e9259a807b9d87e4c11082404f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/.kitchen/logs/kitchen.log
CHANGED
@@ -1,149 +1,149 @@
|
|
1
|
-
I, [2023-10-
|
2
|
-
I, [2023-10-
|
3
|
-
I, [2023-10-
|
4
|
-
I, [2023-10-
|
5
|
-
I, [2023-10-
|
6
|
-
I, [2023-10-
|
7
|
-
I, [2023-10-
|
8
|
-
I, [2023-10-
|
9
|
-
I, [2023-10-
|
10
|
-
I, [2023-10-
|
11
|
-
I, [2023-10-
|
12
|
-
E, [2023-10-
|
13
|
-
E, [2023-10-
|
14
|
-
E, [2023-10-
|
1
|
+
I, [2023-10-04T23:43:30.602978 #974600] INFO -- Kitchen: -----> Starting Test Kitchen (v3.3.2)
|
2
|
+
I, [2023-10-04T23:43:31.581429 #974600] INFO -- Kitchen: -----> Cleaning up any prior instances of <default-ubuntu-2004>
|
3
|
+
I, [2023-10-04T23:43:31.581930 #974600] INFO -- Kitchen: -----> Destroying <default-ubuntu-2004>...
|
4
|
+
I, [2023-10-04T23:43:37.073911 #974600] INFO -- Kitchen: -----> Testing <default-ubuntu-2004>
|
5
|
+
I, [2023-10-04T23:43:37.074029 #974600] INFO -- Kitchen: -----> Creating <default-ubuntu-2004>...
|
6
|
+
I, [2023-10-04T23:44:45.836231 #974600] INFO -- Kitchen: -----> Converging <default-ubuntu-2004>...
|
7
|
+
I, [2023-10-04T23:45:05.086821 #974600] INFO -- Kitchen: -----> Cleaning up any prior instances of <default-centos-8>
|
8
|
+
I, [2023-10-04T23:45:05.087364 #974600] INFO -- Kitchen: -----> Destroying <default-centos-8>...
|
9
|
+
I, [2023-10-04T23:45:10.335332 #974600] INFO -- Kitchen: -----> Testing <default-centos-8>
|
10
|
+
I, [2023-10-04T23:45:10.335453 #974600] INFO -- Kitchen: -----> Creating <default-centos-8>...
|
11
|
+
I, [2023-10-04T23:46:09.486684 #974600] INFO -- Kitchen: -----> Converging <default-centos-8>...
|
12
|
+
E, [2023-10-04T23:46:32.466190 #974600] ERROR -- Kitchen: ------Exception-------
|
13
|
+
E, [2023-10-04T23:46:32.466260 #974600] ERROR -- Kitchen: Class: Kitchen::ActionFailed
|
14
|
+
E, [2023-10-04T23:46:32.466292 #974600] ERROR -- Kitchen: Message: 2 actions failed.
|
15
15
|
>>>>>> Converge failed on instance <default-ubuntu-2004>. Please see .kitchen/logs/default-ubuntu-2004.log for more details
|
16
16
|
>>>>>> Converge failed on instance <default-centos-8>. Please see .kitchen/logs/default-centos-8.log for more details
|
17
|
-
E, [2023-10-
|
18
|
-
E, [2023-10-
|
19
|
-
E, [2023-10-
|
20
|
-
E, [2023-10-
|
21
|
-
E, [2023-10-
|
22
|
-
E, [2023-10-
|
23
|
-
E, [2023-10-
|
24
|
-
E, [2023-10-
|
25
|
-
E, [2023-10-
|
26
|
-
E, [2023-10-
|
27
|
-
E, [2023-10-
|
28
|
-
E, [2023-10-
|
29
|
-
E, [2023-10-
|
30
|
-
E, [2023-10-
|
31
|
-
E, [2023-10-
|
32
|
-
E, [2023-10-
|
33
|
-
E, [2023-10-
|
34
|
-
E, [2023-10-
|
35
|
-
E, [2023-10-
|
36
|
-
E, [2023-10-
|
37
|
-
E, [2023-10-
|
38
|
-
E, [2023-10-
|
39
|
-
E, [2023-10-
|
40
|
-
E, [2023-10-
|
41
|
-
E, [2023-10-
|
42
|
-
E, [2023-10-
|
43
|
-
E, [2023-10-
|
44
|
-
E, [2023-10-
|
45
|
-
E, [2023-10-
|
46
|
-
E, [2023-10-
|
47
|
-
E, [2023-10-
|
48
|
-
E, [2023-10-
|
49
|
-
E, [2023-10-
|
50
|
-
E, [2023-10-
|
51
|
-
E, [2023-10-
|
52
|
-
E, [2023-10-
|
53
|
-
E, [2023-10-
|
54
|
-
E, [2023-10-
|
55
|
-
E, [2023-10-
|
56
|
-
E, [2023-10-
|
57
|
-
E, [2023-10-
|
58
|
-
E, [2023-10-
|
59
|
-
E, [2023-10-
|
60
|
-
E, [2023-10-
|
61
|
-
E, [2023-10-
|
62
|
-
E, [2023-10-
|
63
|
-
E, [2023-10-
|
64
|
-
E, [2023-10-
|
65
|
-
E, [2023-10-
|
17
|
+
E, [2023-10-04T23:46:32.466331 #974600] ERROR -- Kitchen: ----------------------
|
18
|
+
E, [2023-10-04T23:46:32.466369 #974600] ERROR -- Kitchen: ------Backtrace-------
|
19
|
+
E, [2023-10-04T23:46:32.466401 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:181:in `report_errors'
|
20
|
+
E, [2023-10-04T23:46:32.466436 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:172:in `run_action'
|
21
|
+
E, [2023-10-04T23:46:32.466473 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command/test.rb:41:in `block in call'
|
22
|
+
E, [2023-10-04T23:46:32.466509 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
23
|
+
E, [2023-10-04T23:46:32.466544 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command/test.rb:37:in `call'
|
24
|
+
E, [2023-10-04T23:46:32.466582 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/cli.rb:52:in `perform'
|
25
|
+
E, [2023-10-04T23:46:32.466616 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/cli.rb:250:in `test'
|
26
|
+
E, [2023-10-04T23:46:32.466655 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/command.rb:27:in `run'
|
27
|
+
E, [2023-10-04T23:46:32.466695 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/invocation.rb:127:in `invoke_command'
|
28
|
+
E, [2023-10-04T23:46:32.466726 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor.rb:392:in `dispatch'
|
29
|
+
E, [2023-10-04T23:46:32.466767 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/thor-1.2.1/lib/thor/base.rb:485:in `start'
|
30
|
+
E, [2023-10-04T23:46:32.466807 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/bin/kitchen:11:in `block in <top (required)>'
|
31
|
+
E, [2023-10-04T23:46:32.466840 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/errors.rb:183:in `with_friendly_errors'
|
32
|
+
E, [2023-10-04T23:46:32.466881 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/bin/kitchen:11:in `<top (required)>'
|
33
|
+
E, [2023-10-04T23:46:32.466930 #974600] ERROR -- Kitchen: /opt/chef-workstation/bin/kitchen:389:in `load'
|
34
|
+
E, [2023-10-04T23:46:32.466961 #974600] ERROR -- Kitchen: /opt/chef-workstation/bin/kitchen:389:in `<main>'
|
35
|
+
E, [2023-10-04T23:46:32.467009 #974600] ERROR -- Kitchen: ----End Backtrace-----
|
36
|
+
E, [2023-10-04T23:46:32.467042 #974600] ERROR -- Kitchen: -Composite Exception--
|
37
|
+
E, [2023-10-04T23:46:32.467072 #974600] ERROR -- Kitchen: Class: Kitchen::InstanceFailure
|
38
|
+
E, [2023-10-04T23:46:32.467111 #974600] ERROR -- Kitchen: Message: Converge failed on instance <default-ubuntu-2004>. Please see .kitchen/logs/default-ubuntu-2004.log for more details
|
39
|
+
E, [2023-10-04T23:46:32.467150 #974600] ERROR -- Kitchen: ----------------------
|
40
|
+
E, [2023-10-04T23:46:32.467181 #974600] ERROR -- Kitchen: ------Backtrace-------
|
41
|
+
E, [2023-10-04T23:46:32.467211 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/provisioner/base.rb:99:in `rescue in call'
|
42
|
+
E, [2023-10-04T23:46:32.467239 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/provisioner/base.rb:98:in `call'
|
43
|
+
E, [2023-10-04T23:46:32.467268 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:419:in `block in converge_action'
|
44
|
+
E, [2023-10-04T23:46:32.467298 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:563:in `synchronize_or_call'
|
45
|
+
E, [2023-10-04T23:46:32.467330 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:524:in `block in action'
|
46
|
+
E, [2023-10-04T23:46:32.467369 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
47
|
+
E, [2023-10-04T23:46:32.467407 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:523:in `action'
|
48
|
+
E, [2023-10-04T23:46:32.467448 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:414:in `converge_action'
|
49
|
+
E, [2023-10-04T23:46:32.467490 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:392:in `block (2 levels) in transition_to'
|
50
|
+
E, [2023-10-04T23:46:32.467530 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/lifecycle_hooks.rb:47:in `run_with_hooks'
|
51
|
+
E, [2023-10-04T23:46:32.467564 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:391:in `block in transition_to'
|
52
|
+
E, [2023-10-04T23:46:32.467597 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:390:in `each'
|
53
|
+
E, [2023-10-04T23:46:32.467627 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:390:in `transition_to'
|
54
|
+
E, [2023-10-04T23:46:32.467664 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:161:in `verify'
|
55
|
+
E, [2023-10-04T23:46:32.467698 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:190:in `block in test'
|
56
|
+
E, [2023-10-04T23:46:32.467732 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
57
|
+
E, [2023-10-04T23:46:32.467764 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:186:in `test'
|
58
|
+
E, [2023-10-04T23:46:32.467796 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:195:in `public_send'
|
59
|
+
E, [2023-10-04T23:46:32.467832 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:195:in `run_action_in_thread'
|
60
|
+
E, [2023-10-04T23:46:32.467893 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:166:in `block (2 levels) in run_action'
|
61
|
+
E, [2023-10-04T23:46:32.467929 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
|
62
|
+
E, [2023-10-04T23:46:32.467976 #974600] ERROR -- Kitchen: ----End Backtrace-----
|
63
|
+
E, [2023-10-04T23:46:32.468007 #974600] ERROR -- Kitchen: ---Nested Exception---
|
64
|
+
E, [2023-10-04T23:46:32.468037 #974600] ERROR -- Kitchen: Class: Kitchen::ActionFailed
|
65
|
+
E, [2023-10-04T23:46:32.468076 #974600] ERROR -- Kitchen: Message: SSH exited (1) for command: [sh -c '
|
66
66
|
TEST_KITCHEN="1"; export TEST_KITCHEN
|
67
67
|
sudo -E /opt/chef/bin/chef-client --local-mode --config /tmp/kitchen/client.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json --chef-zero-port 8889
|
68
68
|
']
|
69
|
-
E, [2023-10-
|
70
|
-
E, [2023-10-
|
71
|
-
E, [2023-10-
|
72
|
-
E, [2023-10-
|
73
|
-
E, [2023-10-
|
74
|
-
E, [2023-10-
|
75
|
-
E, [2023-10-
|
76
|
-
E, [2023-10-
|
77
|
-
E, [2023-10-
|
78
|
-
E, [2023-10-
|
79
|
-
E, [2023-10-
|
80
|
-
E, [2023-10-
|
81
|
-
E, [2023-10-
|
82
|
-
E, [2023-10-
|
83
|
-
E, [2023-10-
|
84
|
-
E, [2023-10-
|
85
|
-
E, [2023-10-
|
86
|
-
E, [2023-10-
|
87
|
-
E, [2023-10-
|
88
|
-
E, [2023-10-
|
89
|
-
E, [2023-10-
|
90
|
-
E, [2023-10-
|
91
|
-
E, [2023-10-
|
92
|
-
E, [2023-10-
|
93
|
-
E, [2023-10-
|
94
|
-
E, [2023-10-
|
95
|
-
E, [2023-10-
|
96
|
-
E, [2023-10-
|
97
|
-
E, [2023-10-
|
98
|
-
E, [2023-10-
|
99
|
-
E, [2023-10-
|
100
|
-
E, [2023-10-
|
101
|
-
E, [2023-10-
|
102
|
-
E, [2023-10-
|
103
|
-
E, [2023-10-
|
104
|
-
E, [2023-10-
|
105
|
-
E, [2023-10-
|
106
|
-
E, [2023-10-
|
107
|
-
E, [2023-10-
|
108
|
-
E, [2023-10-
|
109
|
-
E, [2023-10-
|
110
|
-
E, [2023-10-
|
111
|
-
E, [2023-10-
|
112
|
-
E, [2023-10-
|
113
|
-
E, [2023-10-
|
114
|
-
E, [2023-10-
|
115
|
-
E, [2023-10-
|
116
|
-
E, [2023-10-
|
117
|
-
E, [2023-10-
|
118
|
-
E, [2023-10-
|
119
|
-
E, [2023-10-
|
120
|
-
E, [2023-10-
|
121
|
-
E, [2023-10-
|
122
|
-
E, [2023-10-
|
69
|
+
E, [2023-10-04T23:46:32.468135 #974600] ERROR -- Kitchen: ----------------------
|
70
|
+
E, [2023-10-04T23:46:32.468165 #974600] ERROR -- Kitchen: ------Backtrace-------
|
71
|
+
E, [2023-10-04T23:46:32.468192 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/provisioner/base.rb:99:in `rescue in call'
|
72
|
+
E, [2023-10-04T23:46:32.468225 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/provisioner/base.rb:98:in `call'
|
73
|
+
E, [2023-10-04T23:46:32.468268 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:419:in `block in converge_action'
|
74
|
+
E, [2023-10-04T23:46:32.468300 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:563:in `synchronize_or_call'
|
75
|
+
E, [2023-10-04T23:46:32.468335 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:524:in `block in action'
|
76
|
+
E, [2023-10-04T23:46:32.468385 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
77
|
+
E, [2023-10-04T23:46:32.468427 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:523:in `action'
|
78
|
+
E, [2023-10-04T23:46:32.468463 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:414:in `converge_action'
|
79
|
+
E, [2023-10-04T23:46:32.468492 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:392:in `block (2 levels) in transition_to'
|
80
|
+
E, [2023-10-04T23:46:32.468525 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/lifecycle_hooks.rb:47:in `run_with_hooks'
|
81
|
+
E, [2023-10-04T23:46:32.468574 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:391:in `block in transition_to'
|
82
|
+
E, [2023-10-04T23:46:32.468605 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:390:in `each'
|
83
|
+
E, [2023-10-04T23:46:32.468637 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:390:in `transition_to'
|
84
|
+
E, [2023-10-04T23:46:32.468670 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:161:in `verify'
|
85
|
+
E, [2023-10-04T23:46:32.468702 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:190:in `block in test'
|
86
|
+
E, [2023-10-04T23:46:32.468741 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
87
|
+
E, [2023-10-04T23:46:32.468784 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:186:in `test'
|
88
|
+
E, [2023-10-04T23:46:32.468819 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:195:in `public_send'
|
89
|
+
E, [2023-10-04T23:46:32.468860 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:195:in `run_action_in_thread'
|
90
|
+
E, [2023-10-04T23:46:32.468896 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:166:in `block (2 levels) in run_action'
|
91
|
+
E, [2023-10-04T23:46:32.468929 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
|
92
|
+
E, [2023-10-04T23:46:32.468960 #974600] ERROR -- Kitchen: ----End Backtrace-----
|
93
|
+
E, [2023-10-04T23:46:32.468990 #974600] ERROR -- Kitchen: -Composite Exception--
|
94
|
+
E, [2023-10-04T23:46:32.469019 #974600] ERROR -- Kitchen: Class: Kitchen::InstanceFailure
|
95
|
+
E, [2023-10-04T23:46:32.469049 #974600] ERROR -- Kitchen: Message: Converge failed on instance <default-centos-8>. Please see .kitchen/logs/default-centos-8.log for more details
|
96
|
+
E, [2023-10-04T23:46:32.469079 #974600] ERROR -- Kitchen: ----------------------
|
97
|
+
E, [2023-10-04T23:46:32.469118 #974600] ERROR -- Kitchen: ------Backtrace-------
|
98
|
+
E, [2023-10-04T23:46:32.469148 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/provisioner/base.rb:99:in `rescue in call'
|
99
|
+
E, [2023-10-04T23:46:32.469186 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/provisioner/base.rb:98:in `call'
|
100
|
+
E, [2023-10-04T23:46:32.469220 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:419:in `block in converge_action'
|
101
|
+
E, [2023-10-04T23:46:32.469257 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:563:in `synchronize_or_call'
|
102
|
+
E, [2023-10-04T23:46:32.469295 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:524:in `block in action'
|
103
|
+
E, [2023-10-04T23:46:32.469339 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
104
|
+
E, [2023-10-04T23:46:32.469379 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:523:in `action'
|
105
|
+
E, [2023-10-04T23:46:32.469417 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:414:in `converge_action'
|
106
|
+
E, [2023-10-04T23:46:32.469449 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:392:in `block (2 levels) in transition_to'
|
107
|
+
E, [2023-10-04T23:46:32.469479 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/lifecycle_hooks.rb:47:in `run_with_hooks'
|
108
|
+
E, [2023-10-04T23:46:32.469510 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:391:in `block in transition_to'
|
109
|
+
E, [2023-10-04T23:46:32.469540 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:390:in `each'
|
110
|
+
E, [2023-10-04T23:46:32.469571 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:390:in `transition_to'
|
111
|
+
E, [2023-10-04T23:46:32.469604 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:161:in `verify'
|
112
|
+
E, [2023-10-04T23:46:32.469632 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:190:in `block in test'
|
113
|
+
E, [2023-10-04T23:46:32.469681 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
114
|
+
E, [2023-10-04T23:46:32.469719 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:186:in `test'
|
115
|
+
E, [2023-10-04T23:46:32.469748 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:195:in `public_send'
|
116
|
+
E, [2023-10-04T23:46:32.469783 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:195:in `run_action_in_thread'
|
117
|
+
E, [2023-10-04T23:46:32.469818 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:166:in `block (2 levels) in run_action'
|
118
|
+
E, [2023-10-04T23:46:32.469853 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
|
119
|
+
E, [2023-10-04T23:46:32.469887 #974600] ERROR -- Kitchen: ----End Backtrace-----
|
120
|
+
E, [2023-10-04T23:46:32.469916 #974600] ERROR -- Kitchen: ---Nested Exception---
|
121
|
+
E, [2023-10-04T23:46:32.469966 #974600] ERROR -- Kitchen: Class: Kitchen::ActionFailed
|
122
|
+
E, [2023-10-04T23:46:32.469995 #974600] ERROR -- Kitchen: Message: SSH exited (1) for command: [sh -c '
|
123
123
|
TEST_KITCHEN="1"; export TEST_KITCHEN
|
124
124
|
sudo -E /opt/chef/bin/chef-client --local-mode --config /tmp/kitchen/client.rb --log_level auto --force-formatter --no-color --json-attributes /tmp/kitchen/dna.json --chef-zero-port 8889
|
125
125
|
']
|
126
|
-
E, [2023-10-
|
127
|
-
E, [2023-10-
|
128
|
-
E, [2023-10-
|
129
|
-
E, [2023-10-
|
130
|
-
E, [2023-10-
|
131
|
-
E, [2023-10-
|
132
|
-
E, [2023-10-
|
133
|
-
E, [2023-10-
|
134
|
-
E, [2023-10-
|
135
|
-
E, [2023-10-
|
136
|
-
E, [2023-10-
|
137
|
-
E, [2023-10-
|
138
|
-
E, [2023-10-
|
139
|
-
E, [2023-10-
|
140
|
-
E, [2023-10-
|
141
|
-
E, [2023-10-
|
142
|
-
E, [2023-10-
|
143
|
-
E, [2023-10-
|
144
|
-
E, [2023-10-
|
145
|
-
E, [2023-10-
|
146
|
-
E, [2023-10-
|
147
|
-
E, [2023-10-
|
148
|
-
E, [2023-10-
|
149
|
-
E, [2023-10-
|
126
|
+
E, [2023-10-04T23:46:32.470026 #974600] ERROR -- Kitchen: ----------------------
|
127
|
+
E, [2023-10-04T23:46:32.470055 #974600] ERROR -- Kitchen: ------Backtrace-------
|
128
|
+
E, [2023-10-04T23:46:32.470084 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/provisioner/base.rb:99:in `rescue in call'
|
129
|
+
E, [2023-10-04T23:46:32.470116 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/provisioner/base.rb:98:in `call'
|
130
|
+
E, [2023-10-04T23:46:32.470163 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:419:in `block in converge_action'
|
131
|
+
E, [2023-10-04T23:46:32.470202 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:563:in `synchronize_or_call'
|
132
|
+
E, [2023-10-04T23:46:32.470244 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:524:in `block in action'
|
133
|
+
E, [2023-10-04T23:46:32.470281 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
134
|
+
E, [2023-10-04T23:46:32.470313 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:523:in `action'
|
135
|
+
E, [2023-10-04T23:46:32.470340 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:414:in `converge_action'
|
136
|
+
E, [2023-10-04T23:46:32.470391 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:392:in `block (2 levels) in transition_to'
|
137
|
+
E, [2023-10-04T23:46:32.470423 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/lifecycle_hooks.rb:47:in `run_with_hooks'
|
138
|
+
E, [2023-10-04T23:46:32.470455 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:391:in `block in transition_to'
|
139
|
+
E, [2023-10-04T23:46:32.470484 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:390:in `each'
|
140
|
+
E, [2023-10-04T23:46:32.470526 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:390:in `transition_to'
|
141
|
+
E, [2023-10-04T23:46:32.470558 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:161:in `verify'
|
142
|
+
E, [2023-10-04T23:46:32.470592 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:190:in `block in test'
|
143
|
+
E, [2023-10-04T23:46:32.470624 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/3.0.0/benchmark.rb:293:in `measure'
|
144
|
+
E, [2023-10-04T23:46:32.470659 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/instance.rb:186:in `test'
|
145
|
+
E, [2023-10-04T23:46:32.470691 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:195:in `public_send'
|
146
|
+
E, [2023-10-04T23:46:32.470727 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:195:in `run_action_in_thread'
|
147
|
+
E, [2023-10-04T23:46:32.470761 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/test-kitchen-3.3.2/lib/kitchen/command.rb:166:in `block (2 levels) in run_action'
|
148
|
+
E, [2023-10-04T23:46:32.470799 #974600] ERROR -- Kitchen: /opt/chef-workstation/embedded/lib/ruby/gems/3.0.0/gems/logging-2.3.1/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context'
|
149
|
+
E, [2023-10-04T23:46:32.470826 #974600] ERROR -- Kitchen: ----End Backtrace-----
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.2.0
|
@@ -0,0 +1,110 @@
|
|
1
|
+
module Context
|
2
|
+
module DeployHelpers
|
3
|
+
module ContextHelper
|
4
|
+
def present_localy?
|
5
|
+
Dir.exist?(context_folder)
|
6
|
+
end
|
7
|
+
|
8
|
+
def shorten_version(context)
|
9
|
+
context.version.canonical_segments[0..2].join('.')
|
10
|
+
end
|
11
|
+
|
12
|
+
def actual_working_directory?
|
13
|
+
Dir.pwd == context_folder
|
14
|
+
end
|
15
|
+
|
16
|
+
def move_folder(folder)
|
17
|
+
@context_folder = folder.include?(context_name) ? folder : File.join(folder, context_name)
|
18
|
+
end
|
19
|
+
|
20
|
+
def check_folder(folder)
|
21
|
+
FileUtils.mkdir_p(context_folder) unless present_localy?
|
22
|
+
end
|
23
|
+
|
24
|
+
def version
|
25
|
+
git_build(self)
|
26
|
+
log "Getting version info for #{context_folder} and version should be #{GitVersionBump.version(true)}"
|
27
|
+
Gem::Version.new(GitVersionBump.version(true))
|
28
|
+
end
|
29
|
+
|
30
|
+
def cycle
|
31
|
+
ruby_cycle(self)
|
32
|
+
end
|
33
|
+
|
34
|
+
def test_context_successful?
|
35
|
+
log "Check if #{context_name} is install #{version}"
|
36
|
+
if gem_installed?(self)
|
37
|
+
log "Test context #{context_name} was successfully install on version #{version}"
|
38
|
+
true
|
39
|
+
else
|
40
|
+
log "Test context #{context_name} has failed to install #{version}"
|
41
|
+
false
|
42
|
+
end
|
43
|
+
cookbook_test(self)
|
44
|
+
end
|
45
|
+
|
46
|
+
def build
|
47
|
+
ruby_build(self)
|
48
|
+
cookbook_build(self)
|
49
|
+
check_folder get_context_file(self, 'contexts')
|
50
|
+
end
|
51
|
+
|
52
|
+
def commit
|
53
|
+
git_commit(self)
|
54
|
+
cookbook_install(self)
|
55
|
+
end
|
56
|
+
|
57
|
+
def release
|
58
|
+
log "\n\nRelease #{context_name} at version #{version}"
|
59
|
+
cookbook_push(self)
|
60
|
+
ruby_release(self)
|
61
|
+
git_release(self)
|
62
|
+
end
|
63
|
+
|
64
|
+
def install
|
65
|
+
ruby_install(self)
|
66
|
+
end
|
67
|
+
|
68
|
+
def clean
|
69
|
+
clean_folder(self, 'contexts')
|
70
|
+
ruby_clean(self)
|
71
|
+
cookbook_clean(self)
|
72
|
+
end
|
73
|
+
|
74
|
+
def show_new_version(level)
|
75
|
+
log "#{level} bump #{context_name} at newer version #{version}"
|
76
|
+
end
|
77
|
+
|
78
|
+
def patch_bump
|
79
|
+
GitVersionBump.tag_version("#{GitVersionBump.major_version(true)}.#{GitVersionBump.minor_version(true)}.#{GitVersionBump.patch_version(true) + 1}")
|
80
|
+
show_new_version('Patch')
|
81
|
+
end
|
82
|
+
|
83
|
+
def minor_bump
|
84
|
+
GitVersionBump.tag_version("#{GitVersionBump.major_version(true)}.#{GitVersionBump.minor_version(true) + 1}.0")
|
85
|
+
show_new_version('Minor')
|
86
|
+
end
|
87
|
+
|
88
|
+
def major_bump
|
89
|
+
GitVersionBump.tag_version("#{GitVersionBump.major_version(true) + 1}.0.0")
|
90
|
+
show_new_version('Major')
|
91
|
+
end
|
92
|
+
|
93
|
+
def wait_until_release_available
|
94
|
+
wait_until_release_available unless is_present_publicly?
|
95
|
+
end
|
96
|
+
|
97
|
+
def is_present_publicly?
|
98
|
+
ruby_check_if_available_public(self)
|
99
|
+
end
|
100
|
+
|
101
|
+
def new_update_available?
|
102
|
+
git_update_available?(self)
|
103
|
+
end
|
104
|
+
|
105
|
+
def ready_for_major_update?
|
106
|
+
false
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
@@ -35,6 +35,7 @@ module Context
|
|
35
35
|
context.git_build(context)
|
36
36
|
Dir.chdir File.dirname(context.context_folder)
|
37
37
|
context.generate_cookbook(context, [context.context_name])
|
38
|
+
context.set_cookbook_version(context)
|
38
39
|
Dir.chdir context.context_folder
|
39
40
|
end
|
40
41
|
|
@@ -74,6 +75,11 @@ module Context
|
|
74
75
|
context.log "\n\nCleaningcookbook in folder #{Dir.pwd}\nAnd context #{context.context_name} is created in folder #{context.context_folder} at version #{context.version}"
|
75
76
|
clean_file(context, 'Policyfile.lock.json')
|
76
77
|
end
|
78
|
+
|
79
|
+
def set_cookbook_version(context)
|
80
|
+
context.git_build(context)
|
81
|
+
File.write(context.get_context_file(context, 'VERSION'), context.shorten_version(context).strip)
|
82
|
+
end
|
77
83
|
end
|
78
84
|
end
|
79
85
|
end
|
@@ -1,8 +1,24 @@
|
|
1
1
|
module Context
|
2
2
|
module DeployHelpers
|
3
3
|
module CucumberHelper
|
4
|
+
def cucumber_configuration(context, commands)
|
5
|
+
context.existing_cucumber_configuration = Cucumber::Cli::Main.new(commands.dup).configuration unless context.existing_cucumber_configuration
|
6
|
+
context.existing_cucumber_configuration
|
7
|
+
end
|
8
|
+
|
9
|
+
def cucumber_runtime(context, commands)
|
10
|
+
return Runtime.new(context.cucumber_configuration(context, commands)) unless context.existing_cucumber_runtime
|
11
|
+
|
12
|
+
context.existing_cucumber_runtime.configure(context.cucumber_configuration(context, commands))
|
13
|
+
context.existing_cucumber_runtime
|
14
|
+
end
|
15
|
+
|
4
16
|
def cucumber(context, commands = [])
|
5
|
-
context.chef_exec(context,['cucumber'] + commands)
|
17
|
+
# context.chef_exec(context,['cucumber'] + commands)
|
18
|
+
|
19
|
+
context.existing_cucumber_runtime = cucumber_runtime(context, commands)
|
20
|
+
# The dup is to keep ARGV intact, so that tools like ruby-debug can respawn.
|
21
|
+
cucumber_runtime(context, commands).run!
|
6
22
|
end
|
7
23
|
|
8
24
|
def cucumber_test(context)
|
@@ -1,6 +1,16 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
require 'simplecov_setup'
|
4
|
+
require 'cucumber/rspec/disable_option_parser'
|
5
|
+
require 'cucumber/cli/main'
|
6
|
+
|
7
|
+
require 'fileutils'
|
8
|
+
require 'git-version-bump'
|
9
|
+
|
1
10
|
require_relative 'helpers/command'
|
2
11
|
require_relative 'deploy/deployer'
|
3
12
|
require_relative 'deploy/git'
|
13
|
+
require_relative 'deploy/context'
|
4
14
|
|
5
15
|
|
6
16
|
module Context
|
@@ -8,114 +18,18 @@ module Context
|
|
8
18
|
include CommandHelper
|
9
19
|
include DeployHelpers::DeployerHelper
|
10
20
|
include DeployHelpers::GitHelper
|
21
|
+
include DeployHelpers::ContextHelper
|
11
22
|
|
12
23
|
attr_reader :context_name
|
13
24
|
attr_reader :context_folder
|
14
25
|
|
26
|
+
attr_accessor :existing_cucumber_runtime
|
27
|
+
attr_accessor :existing_cucumber_configuration
|
28
|
+
|
29
|
+
|
15
30
|
def initialize(context_name, deploycontext_folder)
|
16
31
|
@context_name = context_name
|
17
32
|
@context_folder = move_folder(deploycontext_folder)
|
18
33
|
end
|
19
|
-
|
20
|
-
def present_localy?
|
21
|
-
Dir.exist?(context_folder)
|
22
|
-
end
|
23
|
-
|
24
|
-
def actual_working_directory?
|
25
|
-
Dir.pwd == context_folder
|
26
|
-
end
|
27
|
-
|
28
|
-
def move_folder(folder)
|
29
|
-
@context_folder = folder.include?(context_name) ? folder : File.join(folder, context_name)
|
30
|
-
end
|
31
|
-
|
32
|
-
def check_folder(folder)
|
33
|
-
FileUtils.mkdir_p(context_folder) unless present_localy?
|
34
|
-
end
|
35
|
-
|
36
|
-
def version
|
37
|
-
git_build(self)
|
38
|
-
log "Getting version info for #{context_folder} and version should be #{GitVersionBump.version(true)}"
|
39
|
-
Gem::Version.new(GitVersionBump.version(true))
|
40
|
-
end
|
41
|
-
|
42
|
-
def cycle
|
43
|
-
ruby_cycle(self)
|
44
|
-
end
|
45
|
-
|
46
|
-
def test_context_successful?
|
47
|
-
log "Check if #{context_name} is install #{version}"
|
48
|
-
if gem_installed?(self)
|
49
|
-
log "Test context #{context_name} was successfully install on version #{version}"
|
50
|
-
true
|
51
|
-
else
|
52
|
-
log "Test context #{context_name} has failed to install #{version}"
|
53
|
-
false
|
54
|
-
end
|
55
|
-
cookbook_test(self)
|
56
|
-
end
|
57
|
-
|
58
|
-
def build
|
59
|
-
ruby_build(self)
|
60
|
-
cookbook_build(self)
|
61
|
-
check_folder get_context_file(self, 'contexts')
|
62
|
-
end
|
63
|
-
|
64
|
-
def commit
|
65
|
-
git_commit(self)
|
66
|
-
cookbook_install(self)
|
67
|
-
end
|
68
|
-
|
69
|
-
def release
|
70
|
-
log "\n\nRelease #{context_name} at version #{version}"
|
71
|
-
cookbook_push(self)
|
72
|
-
ruby_release(self)
|
73
|
-
git_release(self)
|
74
|
-
end
|
75
|
-
|
76
|
-
def install
|
77
|
-
ruby_install(self)
|
78
|
-
end
|
79
|
-
|
80
|
-
def clean
|
81
|
-
clean_folder(self, 'contexts')
|
82
|
-
ruby_clean(self)
|
83
|
-
cookbook_clean(self)
|
84
|
-
end
|
85
|
-
|
86
|
-
def show_new_version(level)
|
87
|
-
log "#{level} bump #{context_name} at newer version #{version}"
|
88
|
-
end
|
89
|
-
|
90
|
-
def patch_bump
|
91
|
-
GitVersionBump.tag_version("#{GitVersionBump.major_version(true)}.#{GitVersionBump.minor_version(true)}.#{GitVersionBump.patch_version(true) + 1}")
|
92
|
-
show_new_version('Patch')
|
93
|
-
end
|
94
|
-
|
95
|
-
def minor_bump
|
96
|
-
GitVersionBump.tag_version("#{GitVersionBump.major_version(true)}.#{GitVersionBump.minor_version(true) + 1}.0")
|
97
|
-
show_new_version('Minor')
|
98
|
-
end
|
99
|
-
|
100
|
-
def major_bump
|
101
|
-
GitVersionBump.tag_version("#{GitVersionBump.major_version(true) + 1}.0.0")
|
102
|
-
show_new_version('Major')
|
103
|
-
end
|
104
|
-
|
105
|
-
def wait_until_release_available
|
106
|
-
wait_until_release_available unless is_present_publicly?
|
107
|
-
end
|
108
|
-
|
109
|
-
def is_present_publicly?
|
110
|
-
ruby_check_if_available_public(self)
|
111
|
-
end
|
112
|
-
|
113
|
-
def new_update_available?
|
114
|
-
git_update_available?(self)
|
115
|
-
end
|
116
|
-
|
117
|
-
def ready_for_major_update?
|
118
|
-
false
|
119
|
-
end
|
120
34
|
end
|
121
35
|
end
|
data/libraries/deploy-context.rb
CHANGED
data/metadata.rb
CHANGED
@@ -6,7 +6,8 @@ maintainer 'Jimmy Provencher'
|
|
6
6
|
maintainer_email 'jimmy.provencher@hotmail.ca'
|
7
7
|
license 'All Rights Reserved'
|
8
8
|
description 'Installs/Configures deploy-context'
|
9
|
-
version "#{GVB.major_version(true)}.#{GVB.minor_version(true)}.#{GVB.patch_version(true)}"
|
9
|
+
# version "#{GVB.major_version(true)}.#{GVB.minor_version(true)}.#{GVB.patch_version(true)}"
|
10
|
+
version File.read('VERSION')
|
10
11
|
chef_version '>= 16.0'
|
11
12
|
|
12
13
|
# The `issues_url` points to the location where issues for this cookbook are
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploy-context
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.0.3.gec16643.4.g20d2d42.4.g17e8559.12.g831d0a8
|
4
|
+
version: 2.2.0.3.gec16643.4.g20d2d42.4.g17e8559.12.g831d0a8.4.gbb2ab14.4.gb48499b
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jimmy Provencher
|
@@ -98,6 +98,7 @@ files:
|
|
98
98
|
- Policyfile.rb
|
99
99
|
- README.md
|
100
100
|
- Rakefile
|
101
|
+
- VERSION
|
101
102
|
- bin/deploy-context
|
102
103
|
- chefignore
|
103
104
|
- compliance/README.md
|
@@ -111,6 +112,7 @@ files:
|
|
111
112
|
- libraries/context-manager.rb
|
112
113
|
- libraries/deploy-context.rb
|
113
114
|
- libraries/deploy-context/deploy.rb
|
115
|
+
- libraries/deploy-context/deploy/context.rb
|
114
116
|
- libraries/deploy-context/deploy/cookbook.rb
|
115
117
|
- libraries/deploy-context/deploy/cucumber.rb
|
116
118
|
- libraries/deploy-context/deploy/deployer.rb
|
metadata.gz.sig
CHANGED
Binary file
|