Skip to content

Commit

Permalink
Fix auto test
Browse files Browse the repository at this point in the history
  • Loading branch information
almahmoud committed Jan 8, 2025
1 parent 53c2380 commit 5d67028
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/hubsingest_test_endpoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ export ENDPOINTURL="https://$PLACEHOLDERUSER.hubsingest.bioconductor.org"
aws --endpoint-url $ENDPOINTURL s3 mb s3://testbucket
echo 'test' > /tmp/newtestfile
aws --endpoint-url $ENDPOINTURL s3 cp /tmp/newtestfile s3://testbucket/
aws --endpoint-url $ENDPOINTURL s3 ls s3://testbucket/ | grep 'newtestfile' && echo 'Test File Found' && aws --endpoint-url $ENDPOINTURL s3 rb s3://testbucket --force || echo 'Not found' && aws --endpoint-url $ENDPOINTURL s3 rb s3://testbucket --force
aws --endpoint-url $ENDPOINTURL s3 ls s3://testbucket/ | grep 'newtestfile' && echo 'success' > /tmp/vgwtest || echo 'fail' > /tmp/vgwtest
aws --endpoint-url $ENDPOINTURL s3 rb s3://testbucket --force
grep -q 'success' /tmp/vgwtest && echo "Endpoint test successful" && exit 0
grep -q 'success' /tmp/vgwtest && echo "Endpoint test failed" && exit 1

0 comments on commit 5d67028

Please sign in to comment.