Skip to content

Commit 5cdfb74

Browse files
committed
Docker tests: Replace puppet 6 with puppet 8 container
1 parent 4ab640d commit 5cdfb74

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

documentation/experimental_features.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,13 +224,13 @@ specify the option on the command line as `--stream`. Bolt streams results back
224224
they are received, with the target's safe name (the URI without the password included) and the
225225
stream (either 'out' or 'err') appended to the message, like so:
226226
```
227-
Started on docker://puppet_6_node...
227+
Started on docker://puppet_8_node...
228228
Started on docker://puppet_7_node...
229229
[docker://puppet_7_node] out: Hello!
230-
[docker://puppet_6_node] out: Hello!
230+
[docker://puppet_8_node] out: Hello!
231231
Finished on docker://puppet_7_node:
232232
Hello!
233-
Finished on docker://puppet_6_node:
233+
Finished on docker://puppet_8_node:
234234
Hello!
235235
```
236236

spec/docker-compose.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ services:
66
ports:
77
- "20022:22"
88

9-
puppet_6_node:
9+
puppet_8_node:
1010
build:
1111
context: .
1212
args:
13-
PUPPET_COLLECTION: puppet6
14-
container_name: puppet_6_node
13+
PUPPET_COLLECTION: puppet8
14+
container_name: puppet_8_node
1515
ports:
1616
- "20024:22"
1717

spec/fixtures/inventory/docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ groups:
88
config:
99
ssh:
1010
port: 20022
11-
- name: puppet_6_node
11+
- name: puppet_8_node
1212
config:
1313
ssh:
1414
port: 20024

spec/integration/apply_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,13 @@
214214
results.each do |result|
215215
expect(result['status']).to eq('success')
216216
report = result['value']['report']
217-
expect(report['resource_statuses']).to include(/Notify\[Hello puppet_[5-7]_node\]/)
217+
expect(report['resource_statuses']).to include(/Notify\[Hello puppet_[7-8]_node\]/)
218218
end
219219
end
220220

221-
# Run on puppet_6_node and puppet_7_node only, as deferred requires >= 6.
221+
# Run on puppet_8_node and puppet_7_node only, as deferred requires >= 6.
222222
it 'applies the deferred type' do
223-
result = run_cli_json(%w[plan run basic::defer -t puppet_6_node,puppet_7_node], project: project)
223+
result = run_cli_json(%w[plan run basic::defer -t puppet_8_node,puppet_7_node], project: project)
224224
expect(result).not_to include('kind')
225225
expect(result[0]['status']).to eq('success')
226226
resources = result[0]['value']['report']['resource_statuses']

spec/integration/device_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
'transport' => 'remote',
2929
'remote' => {
3030
'remote-transport' => 'fake',
31-
'run-on' => 'puppet_6_node',
31+
'run-on' => 'puppet_8_node',
3232
'path' => device_path
3333
}
3434
}
@@ -77,7 +77,7 @@
7777
expect(results).not_to include('kind')
7878
expect(results.dig(0, 'value', 'report', 'resource_statuses')).to include('Fake_device[key1]')
7979

80-
content = run_cli_json(['command', 'run', "cat '#{device_path}'", '-t', 'puppet_6_node'], project: @project)
80+
content = run_cli_json(['command', 'run', "cat '#{device_path}'", '-t', 'puppet_8_node'], project: @project)
8181

8282
expect(content.dig('items', 0, 'value', 'stdout')).to eq({ key1: 'val1' }.to_json)
8383

spec/integration/parallel_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@
246246
{ "action" => "run_task",
247247
"object" => "error::fail",
248248
"result_set" =>
249-
[{ "target" => 'puppet_6_node',
249+
[{ "target" => 'puppet_8_node',
250250
"action" => "task",
251251
"object" => "error::fail",
252252
"status" => "failure",

spec/lib/bolt_spec/conn.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def docker_inventory(root: false)
9292
'name' => 'nix_agents',
9393
'targets' => [
9494
{
95-
'name' => 'puppet_6_node',
95+
'name' => 'puppet_8_node',
9696
'config' => { 'ssh' => { 'port' => 20024 } }
9797
},
9898
{

0 commit comments

Comments
 (0)