Closed tomharvey closed 7 years ago
this will only pass when running in AWS or with appropriate on-premis config setup off of AWS.
May be best to remove the test altogether or setup some on-premise config...
Our test is executing with kitchen-ec2
in order to reproduce the same environment.
Thanks for this fix.
When CodeDeploy is not running:
ps -ax | grep "codedeploy-agent: InstanceAgent"
will return:When CodeDeploy is running:
ps -ax | grep "codedeploy-agent: InstanceAgent"
will return:And in either case the test at https://github.com/continuousphp/aws-codedeploy-agent/blob/master/test/integration/aws-codedeploy-agent/serverspec/default_spec.rb#L10 will assert true.
A better test would be one which filters out the grep process and only returns the CodeDeploy process if running:
ps -ax | grep "codedeploy-agent: InstanceAgent" | grep -v grep