Skip to content

Commit 5dfdfdc

Browse files
committed
monir bug fix
1 parent ab360e0 commit 5dfdfdc

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

e2e_tests/common-scripts.sh

-2
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,6 @@ validate_stack_resources_with_subscription() {
112112

113113
validate_stack_resources_without_subscription() {
114114
local stack_name=$1
115-
local log_group_name=$2
116-
117115

118116
log "Validating stack resources for stack: $stack_name"
119117
firehose_stream_physical_id=$(aws cloudformation describe-stack-resources \

e2e_tests/firehose_e2e_tests.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ COMMON_ATTRIBUTES=$(<common_attribute.json)
2828
validate_stack_deployment_status "$FIREHOSE_STACK_NAME_1"
2929

3030
# Validate the stack resources
31-
validate_stack_resources_without_subscription "$FIREHOSE_STACK_NAME_1" "$LOG_GROUP_NAME_1"
31+
validate_stack_resources_without_subscription "$FIREHOSE_STACK_NAME_1"
3232

3333
# Generate a UUID and create a dynamic log message
3434
UUID=$(uuidgen)
@@ -112,7 +112,7 @@ LOG_GROUP_INVALID_JSON=$(<invalid_log_group.json)
112112
deploy_firehose_stack "$template_file" "$FIREHOSE_STACK_NAME_3" "$NEW_RELIC_LICENSE_KEY" "$NEW_RELIC_REGION" "$NEW_RELIC_ACCOUNT_ID" "true" "$LOG_GROUP_INVALID_JSON" "''"
113113

114114
# Validate the status of the Firehose stack
115-
validate_stack_deployment_status "$FIREHOSE_STACK_NAME_3"
115+
validate_stack_resources_without_subscription "$FIREHOSE_STACK_NAME_3"
116116

117117
# Validate the stack resources
118118
validate_stack_resources "$FIREHOSE_STACK_NAME_3" "true" "''" "''"

e2e_tests/log_validation.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ validate_logs_in_new_relic() {
3939
sleep_time=$SLEEP_TIME
4040
max_attempts=5
4141

42-
for i in {1..$max_attempts}; do
42+
for ((i=1; i<=max_attempts; i++)); do
4343
local response=$(curl -s -X POST \
4444
-H "Content-Type: application/json" \
4545
-H "API-Key: $user_key" \
@@ -91,7 +91,7 @@ validate_logs_meta_data (){
9191
exit_with_error "Entity synthesis attribute $new_key with value $value not found in New Relic logs."
9292
fi
9393
fi
94-
done < entiy_synthesis_param.cfg
94+
done < entity_synthesis_param.cfg
9595

9696
log "Entity synthesis parameter validated successfully."
9797
}

0 commit comments

Comments
 (0)