From 8df1e915bf2801ba70cf560f306c1ad0b35b7d4a Mon Sep 17 00:00:00 2001 From: Bhanu Bandi Date: Thu, 7 Dec 2023 01:27:38 -0500 Subject: [PATCH] edited yml --- .../workflows/operator-integration-test.yml | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/.github/workflows/operator-integration-test.yml b/.github/workflows/operator-integration-test.yml index 22f40fa1..2c49745d 100644 --- a/.github/workflows/operator-integration-test.yml +++ b/.github/workflows/operator-integration-test.yml @@ -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