Skip to content

Commit

Permalink
(CAT-2148) Update package testing to account for test machine changes
Browse files Browse the repository at this point in the history
  • Loading branch information
david22swan committed Nov 21, 2024
1 parent 85fe3cb commit 8e9cc4f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-testing/spec/package/add_gem_to_module_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
describe 'C100545 - Generate a module, add a gem to it, and validate it' do
module_name = 'c100545_module'

describe command("pdk new module #{module_name} --skip-interview") do
describe command("pdk new module #{module_name} --skip-interview --skip-interview --template-url=https://github.com/puppetlabs/pdk-templates --template-ref=main") do
its(:exit_status) { is_expected.to eq(0) }
end

Expand Down
2 changes: 1 addition & 1 deletion package-testing/spec/package/airgapped_usage_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
it { is_expected.to be_file }

its(:content_as_json) do
is_expected.to include('template-url' => a_string_matching(/\Apdk-default#[\w.-]+\Z/))
is_expected.to include('template-url' => a_string_matching(/pdk-templates#main/))
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion package-testing/spec/package/unprivileged_user_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
its(:stdout) { is_expected.to contain('testuser') }
end

describe command("pdk new module #{module_name} --skip-interview") do
describe command("pdk new module #{module_name} --skip-interview --template-url=https://github.com/puppetlabs/pdk-templates --template-ref=main") do
its(:exit_status) { is_expected.to eq(0) }
end

Expand Down
2 changes: 1 addition & 1 deletion package-testing/spec/package/validate_a_new_module_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
it { is_expected.to be_file }

its(:content_as_json) do
is_expected.to include('template-url' => a_string_matching(/\Apdk-default#[\w.-]+\Z/))
is_expected.to include('template-url' => a_string_matching(/pdk-templates#main/))
end
end
end
Expand Down

0 comments on commit 8e9cc4f

Please sign in to comment.