Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarrous committed Jan 22, 2025
1 parent 13a6aeb commit c0a7493
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/calibration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
touch $REQUIREMENTS_FILE
fi

# Remove any previous entries for 'hermes_eea' and add the new branch URL as the first entry
# Remove any previous entries for instrument package and add the new branch URL as the first entry
sed -i "/${PACKAGE_NAME}/d" $REQUIREMENTS_FILE
sed -i "1i ${PACKAGE_NAME} @ $BRANCH_URL" $REQUIREMENTS_FILE

Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
run: |
cd ../sdc_aws_processing_lambda/
# Run curl and write the HTTP status code to a variable
HTTP_STATUS=$(curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d @lambda_function/tests/test_data/test_${{env.INSTRUMENT_NAME}}_event.json)
HTTP_STATUS=$(curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d @.github/workflows/test_data/test_${{env.INSTRUMENT_NAME}}_event.json)
echo "HTTP Status: $HTTP_STATUS"
# Grep the HTTP status code from the curl output for 200 (success)
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/test_data/test_eea_event.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"Records":[
{
"Sns":{
"Message":"{\n\"Records\": [\n{\n\"eventSource\": \"aws:s3\",\n\"awsRegion\": \"us-east-1\",\n\"eventTime\": \"2022-07-25T09:35:08.284Z\",\n\"eventName\": \"ObjectCreated:Put\",\n\"s3\": {\n\"bucket\": {\n\"name\": \"dev-hermes-eea\"\n},\n\"object\": {\n\"key\": \"hermes_EEA_l0_2024042-000000_v0.bin\",\n\"size\": 68221,\n\"eTag\": \"32d82e8a2e72af004c557c4e369e89ff\",\n\"sequencer\": \"0062DE63CC330B223E\"\n}\n}\n}\n]\n}",
"MessageAttributes":{
"Test":{
"Type":"String",
"Value":"TestString"
}
}
}
}
]
}

0 comments on commit c0a7493

Please sign in to comment.