Skip to content

Commit

Permalink
Hardcode expectation
Browse files Browse the repository at this point in the history
  • Loading branch information
karanthukral committed Jan 13, 2021
1 parent e9d3361 commit 9818d90
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/unit/krane/kubernetes_resource_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ def test_validate_definition_doesnt_log_raw_output_for_sensitive_resources
kubectl.expects(:server_version).returns(Gem::Version.new('1.20'))

kubectl.expects(:run)
.with('apply', '-f', "/tmp/foo/bar", "--dry-run=server", '--output=name', anything)
.with('apply', '-f', "/tmp/foo/bar", "--dry-run=server", '--output=name', {
log_failure: false, output_is_sensitive: true,
retry_whitelist: [:client_timeout, :empty, :context_deadline], attempts: 3
})
.returns([
"Some Raw Output",
"Error from kubectl: something went wrong and by the way here's your secret: S3CR3T",
Expand Down

0 comments on commit 9818d90

Please sign in to comment.