From 6baeda065cc38f480d2f3e70e9b3f2467ce46160 Mon Sep 17 00:00:00 2001 From: Anurag Mittal Date: Tue, 24 Dec 2024 11:54:16 +0100 Subject: [PATCH] updated output variable to use for s3 and iam tests --- .github/scripts/e2e_tests_metrics.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/scripts/e2e_tests_metrics.sh b/.github/scripts/e2e_tests_metrics.sh index 2f2596b4..30aaf321 100755 --- a/.github/scripts/e2e_tests_metrics.sh +++ b/.github/scripts/e2e_tests_metrics.sh @@ -103,11 +103,11 @@ if [[ "$EXPECTED_CREATE_BUCKET" -gt 0 ]]; then echo "Metrics fetched successfully:" | tee -a "$LOG_FILE" echo "$S3_IAM_METRICS_OUTPUT" | tee -a "$LOG_FILE" - CREATE_BUCKET_COUNT="$(echo "$METRICS_OUTPUT" | grep 'scality_cosi_driver_s3_requests_total' | grep 'method="CreateBucket"' | grep 'status="success"' | awk '{print $NF}')" - DELETE_BUCKET_COUNT="$(echo "$METRICS_OUTPUT" | grep 'scality_cosi_driver_s3_requests_total' | grep 'method="DeleteBucket"' | grep 'status="success"' | awk '{print $NF}')" + CREATE_BUCKET_COUNT="$(echo "$S3_IAM_METRICS_OUTPUT" | grep 'scality_cosi_driver_s3_requests_total' | grep 'method="CreateBucket"' | grep 'status="success"' | awk '{print $NF}')" + DELETE_BUCKET_COUNT="$(echo "$S3_IAM_METRICS_OUTPUT" | grep 'scality_cosi_driver_s3_requests_total' | grep 'method="DeleteBucket"' | grep 'status="success"' | awk '{print $NF}')" - CREATE_BUCKET_DURATION="$(echo "$METRICS_OUTPUT" | grep 'scality_cosi_driver_s3_request_duration_seconds_sum' | grep 'method="CreateBucket"' | awk '{print $NF}')" - DELETE_BUCKET_DURATION="$(echo "$METRICS_OUTPUT" | grep 'scality_cosi_driver_s3_request_duration_seconds_sum' | grep 'method="DeleteBucket"' | awk '{print $NF}')" + CREATE_BUCKET_DURATION="$(echo "$S3_IAM_METRICS_OUTPUT" | grep 'scality_cosi_driver_s3_request_duration_seconds_sum' | grep 'method="CreateBucket"' | awk '{print $NF}')" + DELETE_BUCKET_DURATION="$(echo "$S3_IAM_METRICS_OUTPUT" | grep 'scality_cosi_driver_s3_request_duration_seconds_sum' | grep 'method="DeleteBucket"' | awk '{print $NF}')" echo "CreateBucket Count: $CREATE_BUCKET_COUNT, Expected: $EXPECTED_CREATE_BUCKET" | tee -a "$LOG_FILE" echo "DeleteBucket Count: $DELETE_BUCKET_COUNT, Expected: $EXPECTED_DELETE_BUCKET" | tee -a "$LOG_FILE"