Skip to content

Commit

Permalink
(CAT-2121) Further update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
david22swan committed Oct 25, 2024
1 parent 33f0125 commit 037eec6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion spec/acceptance/validate_all_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,13 @@ class pdk_in_gemfile {}
end

describe command('pdk validate') do
its(:exit_status) { is_expected.to eq(0) }
its(:exit_status) { is_expected.to eq(1) }
its(:stderr) { is_expected.to match(/Running all available validators/i) }
its(:stderr) { is_expected.to match(/Checking metadata syntax/i) }
its(:stderr) { is_expected.to match(/Checking module metadata style/i) }
its(:stderr) { is_expected.to match(/Checking Puppet manifest syntax/i) }
its(:stderr) { is_expected.to match(/Checking Ruby code style/i) }
its(:stdout) { is_expected.to match(/\(warning\):.*Could not parse for environment production/i) }
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/validate_puppet_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class foo {

describe command('pdk validate puppet --format text:stdout --format junit:report.xml') do
its(:exit_status) { is_expected.not_to eq(0) }
its(:stdout) { is_expected.to match(/Syntax error at end of input.*\(#{Regexp.escape(example_pp)}.+\)/i) }
its(:stdout) { is_expected.to match(/Syntax error at end of input/i) }
its(:stderr) { is_expected.not_to match(epp_spinner_text) }
its(:stderr) { is_expected.to match(syntax_spinner_text) }
its(:stderr) { is_expected.to match(lint_spinner_text) }
Expand Down

0 comments on commit 037eec6

Please sign in to comment.