Skip to content

Commit

Permalink
debug: install library package for mosquitto on Ubuntu, add mosquitto…
Browse files Browse the repository at this point in the history
… command for subscription
  • Loading branch information
usuletw022 committed Mar 26, 2024
1 parent 1745c44 commit eec4fe6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
go-version: '1.20'
- name: Install Docker Compose
run: |
sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa
sudo apt-get update
sudo apt-get install docker-compose
docker-compose --version
Expand Down
16 changes: 8 additions & 8 deletions e2e_tests/run-e2e-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@ check_health_endpoint() {
run_tests() {
echo "Running test command..."
cd "$TEST_DIR"
go test --tags=e2e -v ./... -count=1
TEST_RESULT=$?
# go test --tags=e2e -v ./... -count=1
# TEST_RESULT=$?
mosquitto_sub -p 1884 -t 'everest_external/nodered/1/state/state_string'
docker-compose logs
cd "$CSMS_DIR"
docker-compose logs
go test --tags=e2e -v ./... -count=1
if [ $TEST_RESULT -eq 0 ]; then
echo "Tests completed successfully"
else
echo "Tests failed"
fi
# if [ $TEST_RESULT -eq 0 ]; then
# echo "Tests completed successfully"
# else
# echo "Tests failed"
# fi

stop_docker_compose_for_everest
stop_docker_compose_for_maeve_csms
Expand Down

0 comments on commit eec4fe6

Please sign in to comment.