Skip to content

Commit 43b1d5a

Browse files
Merge pull request #28 from jessereynolds/apply_workflow_tests
remove puppet 6 from integration specs
2 parents d03ab33 + 573cdb5 commit 43b1d5a

File tree

6 files changed

+7
-21
lines changed

6 files changed

+7
-21
lines changed

spec/docker-compose.yml

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

9-
puppet_6_node:
10-
build:
11-
context: .
12-
args:
13-
PUPPET_COLLECTION: puppet6
14-
container_name: puppet_6_node
15-
ports:
16-
- "20024:22"
17-
189
puppet_7_node:
1910
build:
2011
context: .

spec/fixtures/inventory/docker.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ groups:
88
config:
99
ssh:
1010
port: 20022
11-
- name: puppet_6_node
11+
- name: puppet_7_node
1212
config:
1313
ssh:
14-
port: 20024
14+
port: 20025
1515
config:
1616
ssh:
1717
host: localhost

spec/integration/apply_spec.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,8 @@
218218
end
219219
end
220220

221-
# Run on puppet_6_node and puppet_7_node only, as deferred requires >= 6.
222221
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)
222+
result = run_cli_json(%w[plan run basic::defer -t puppet_7_node], project: project)
224223
expect(result).not_to include('kind')
225224
expect(result[0]['status']).to eq('success')
226225
resources = result[0]['value']['report']['resource_statuses']

spec/integration/device_spec.rb

Lines changed: 3 additions & 3 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_7_node',
3232
'path' => device_path
3333
}
3434
}
@@ -56,7 +56,7 @@
5656
end
5757
end
5858

59-
context "when running against puppet 6" do
59+
context "when running against puppet 7" do
6060
it 'runs a plan that collects facts' do
6161
results = run_cli_json(%w[plan run device_test::facts -t device_targets], project: @project)
6262

@@ -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_7_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_7_node',
250250
"action" => "task",
251251
"object" => "error::fail",
252252
"status" => "failure",

spec/lib/bolt_spec/conn.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ def docker_inventory(root: false)
9191
{
9292
'name' => 'nix_agents',
9393
'targets' => [
94-
{
95-
'name' => 'puppet_6_node',
96-
'config' => { 'ssh' => { 'port' => 20024 } }
97-
},
9894
{
9995
'name' => 'puppet_7_node',
10096
'config' => { 'ssh' => { 'port' => 20025 } }

0 commit comments

Comments
 (0)