Skip to content

Commit

Permalink
Catch more specific Kubectl error output
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Mar 1, 2019
1 parent c3acf91 commit 9e13b30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration-serial/serial_deploy_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def test_apply_failure_with_sensitive_resources_hides_template_content
deployment["spec"]["template"]["spec"]["containers"].first["ports"].first["name"] = bad_port_name
end
assert_deploy_failure(result)
refute_logs_match(/Kubectl err:/)
refute_logs_match(%r{Kubectl err:.*something/invalid})
assert_logs_match_all([
"Command failed: apply -f",
/Invalid template: Deployment-web.*\.yml/,
Expand All @@ -401,7 +401,7 @@ def test_apply_failure_with_sensitive_resources_hides_raw_output
secret["type"] = "something/invalid"
end
assert_deploy_failure(result)
refute_logs_match(/Kubectl err:/)
refute_logs_match(%r{Kubectl err:.*something/invalid})
assert_logs_match_all([
"Command failed: apply -f",
/WARNING:.*The raw output may be sensitive and so cannot be displayed/,
Expand Down

0 comments on commit 9e13b30

Please sign in to comment.