Skip to content

Commit

Permalink
edited yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bhanuba committed Dec 7, 2023
1 parent dfaab36 commit 8df1e91
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions .github/workflows/operator-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,28 +84,7 @@ jobs:
terraform init
if terraform apply --auto-approve; then
cd -
make deploy
cd integration-tests/terraform/testbuild
kubectl apply -f ./sample-instrumentation.yaml
sleep 10
kubectl apply -f ./test-deployment.yaml
kubectl apply -f ./ns-annotation-test-deployment.yaml
sleep 60
kubectl get all -n amazon-cloudwatch
kubectl get pods -A
kubectl describe deployment amazon-cloudwatch-observability-controller-manager -n amazon-cloudwatch
kubectl describe deployment nginx -n amazon-cloudwatch
kubectl describe deployment nginx
pod_name="$(kubectl get pods -n amazon-cloudwatch -l app.kubernetes.io/component=amazon-cloudwatch-agent,app.kubernetes.io/instance=amazon-cloudwatch.cloudwatch-agent -o=jsonpath='{range .items[*]}{.metadata.name}{"\n"}{end}')"
status=$(kubectl get pod "$pod_name" -n amazon-cloudwatch -o=jsonpath='{.status.phase}')
if [ "$status" != "Running" ]; then
echo "Pod $pod_name is not running. Exiting with ERROR."
echo "Testcase 1: Pod running test case: FAIL"
terraform destroy -auto-approve && exit 1
else
echo "Pod $pod_name is running."
echo "Testcase 1: Pod running test case: PASS"
fi
- name: java Annotation testing
Expand Down

0 comments on commit 8df1e91

Please sign in to comment.