Skip to content

Commit 2926b72

Browse files
authored
Ignore error Unable to validate API Key. Please try again in agent info output (#961)
1 parent 4a7898e commit 2926b72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/integration/dd-agent-handler5/serverspec_datadog/dd-agent_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
# On Linux kernel >= 5.5, Agent 5 disk check fails because of old psutil version, which doesn't have fix
2626
# https://github.com/giampaolo/psutil/commit/2e0952e939d6ab517449314876d8d3488ba5b98b
27-
describe command('/etc/init.d/datadog-agent info | grep -v "API Key is invalid" | grep -v "not sure how to interpret line"'), :if => os[:family] != 'windows' do
27+
describe command('/etc/init.d/datadog-agent info | grep -v "API Key is invalid" | grep -v "not sure how to interpret line" | egrep -v "Unable to validate API Key. Please try again later"'), :if => os[:family] != 'windows' do
2828
its(:exit_status) { should eq 0 }
2929
its(:stdout) { should contain 'OK' }
3030
its(:stdout) { should_not contain 'ERROR' }

0 commit comments

Comments
 (0)