[CI] Fix circleci
* Use 32-char-long api key
Otherwise the agent refuses to start now, and makes the chef client run
fail
* Remove API key error message from test
MODIFY
.kitchen.docker.yml
.kitchen.docker.yml
@@ -20,5 +20,5 @@ suites:
- recipe[datadog::dd-agent]
attributes:
datadog:
- api_key: somethingnotnil
+ api_key: somenonnullapikeythats32charlong
application_key: alsonotnil

MODIFY
.kitchen.yml
.kitchen.yml
@@ -62,7 +62,7 @@ suites:
- recipe[datadog::dd-agent]
attributes:
datadog: &DATADOG
- api_key: somethingnotnil
+ api_key: somenonnullapikeythats32charlong
application_key: alsonotnil
- name: dd-handler
@@ -70,7 +70,7 @@ suites:
- recipe[datadog::dd-handler]
attributes:
datadog: &DATADOG
- api_key: somethingnotnil
+ api_key: somenonnullapikeythats32charlong
application_key: alsonotnil
- name: datadog_apache

MODIFY
test/integration/dd-agent/serverspec/dd-agent_spec.rb
test/integration/dd-agent/serverspec/dd-agent_spec.rb
@@ -8,7 +8,7 @@ describe service(@agent_service_name) do
it { should be_running }
end
-describe command('/etc/init.d/datadog-agent info'), :if => os[:family] != 'windows' do
+describe command('/etc/init.d/datadog-agent info | grep -v "API Key is invalid"'), :if => os[:family] != 'windows' do
its(:exit_status) { should eq 0 }
its(:stdout) { should contain 'OK' }
its(:stdout) { should_not contain 'ERROR' }

[CI] Fix circleci (#491)

* Use 32-char-long api key

Otherwise the agent refuses to start now, and makes the chef client run
fail

* Remove API key error message from test