diff --git a/.github/workflows/script/gcs_test.sh b/.github/workflows/script/gcs_test.sh index 3ab02ed3e..fd3676d8d 100755 --- a/.github/workflows/script/gcs_test.sh +++ b/.github/workflows/script/gcs_test.sh @@ -73,3 +73,14 @@ cd ..; create_test_account ; cd - node examples/create-topic.js npm run solo-test -- node stop -i node1 -n "${SOLO_NAMESPACE}" + +# manually call script "backup.sh" from container backup-uploader since it only runs every 5 minutes +kubectl exec network-node1-0 -c backup-uploader -n solo-e2e -- /backup.sh > /dev/null 2>&1 + +# extra logs check if it include the message type "error" +# example : {"level":"error","msg":"Updated modification time ......} +kubectl logs network-node1-0 -c backup-uploader -n solo-e2e > backup-uploader.log +if grep -q \""error\"" backup-uploader.log; then + echo "Backup uploader logs contain error message" + exit 1 +fi