Skip to content

Commit

Permalink
Add shell linting and fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinleeedwards committed Sep 11, 2024
1 parent 151a293 commit fe555bd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ APPLY_FIXES: none
# If you use ENABLE_LINTERS variable, all other linters will be disabled by
# default
ENABLE_LINTERS:
- BASH_SHELLCHECK
- MARKDOWN_MARKDOWNLINT

# Ignore the pull request template
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ megalint-fix: ## Run the mega-linter and attempt to auto fix any issues.
clean-megalint: ## Clean the temporary files.
rm -rf megalinter-reports

lint-check: clean_megalint megalint
lint-check: clean-megalint megalint
20 changes: 10 additions & 10 deletions src/test/resources/setup_pubsub.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/bin/sh

# Wait for pubsub-emulator to come up
bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' '$PUBSUB_SETUP_HOST')" != "200" ]]; do sleep 1; done'
bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' '"$PUBSUB_SETUP_HOST"')" != "200" ]]; do sleep 1; done'

curl -X PUT http://$PUBSUB_SETUP_HOST/v1/projects/our-project/topics/event_uac-update
curl -X PUT http://$PUBSUB_SETUP_HOST/v1/projects/our-project/subscriptions/event_uac-update_rh -H 'Content-Type: application/json' -d '{"topic": "projects/our-project/topics/event_uac-update"}'
curl -X PUT http://"$PUBSUB_SETUP_HOST"/v1/projects/our-project/topics/event_uac-update
curl -X PUT http://"$PUBSUB_SETUP_HOST"/v1/projects/our-project/subscriptions/event_uac-update_rh -H 'Content-Type: application/json' -d '{"topic": "projects/our-project/topics/event_uac-update"}'

curl -X PUT http://$PUBSUB_SETUP_HOST/v1/projects/our-project/topics/event_case-update
curl -X PUT http://$PUBSUB_SETUP_HOST/v1/projects/our-project/subscriptions/event_case-update_rh -H 'Content-Type: application/json' -d '{"topic": "projects/our-project/topics/event_case-update"}'
curl -X PUT http://"$PUBSUB_SETUP_HOST"/v1/projects/our-project/topics/event_case-update
curl -X PUT http://"$PUBSUB_SETUP_HOST"/v1/projects/our-project/subscriptions/event_case-update_rh -H 'Content-Type: application/json' -d '{"topic": "projects/our-project/topics/event_case-update"}'

curl -X PUT http://$PUBSUB_SETUP_HOST/v1/projects/our-project/topics/event_collection-exercise-update
curl -X PUT http://$PUBSUB_SETUP_HOST/v1/projects/our-project/subscriptions/event_collection-exercise-update_rh -H 'Content-Type: application/json' -d '{"topic": "projects/our-project/topics/event_collection-exercise-update"}'
curl -X PUT http://"$PUBSUB_SETUP_HOST"/v1/projects/our-project/topics/event_collection-exercise-update
curl -X PUT http://"$PUBSUB_SETUP_HOST"/v1/projects/our-project/subscriptions/event_collection-exercise-update_rh -H 'Content-Type: application/json' -d '{"topic": "projects/our-project/topics/event_collection-exercise-update"}'

curl -X PUT http://$PUBSUB_SETUP_HOST/v1/projects/our-project/topics/event_survey-update
curl -X PUT http://"$PUBSUB_SETUP_HOST"/v1/projects/our-project/topics/event_survey-update

curl -X PUT http://$PUBSUB_SETUP_HOST/v1/projects/our-project/topics/event_eq-launch
curl -X PUT http://$PUBSUB_SETUP_HOST/v1/projects/our-project/subscriptions/event_eq-launch -H 'Content-Type: application/json' -d '{"topic": "projects/our-project/topics/event_eq-launch"}'
curl -X PUT http://"$PUBSUB_SETUP_HOST"/v1/projects/our-project/topics/event_eq-launch
curl -X PUT http://"$PUBSUB_SETUP_HOST"/v1/projects/our-project/subscriptions/event_eq-launch -H 'Content-Type: application/json' -d '{"topic": "projects/our-project/topics/event_eq-launch"}'

0 comments on commit fe555bd

Please sign in to comment.