diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index ab072550..8c3aebac 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -31,6 +31,7 @@ jobs: pytest -m "e2e" -n auto' build-and-push-image: + needs: build-and-test-image if: github.repository == 'ansible/ansible-rulebook' runs-on: ubuntu-latest permissions: diff --git a/tests/e2e/test_match_multiple_rules.py b/tests/e2e/test_match_multiple_rules.py index fbe5c7aa..bcbecfeb 100644 --- a/tests/e2e/test_match_multiple_rules.py +++ b/tests/e2e/test_match_multiple_rules.py @@ -28,7 +28,7 @@ async def test_match_multiple_rules(): proc_id = "42" port = 31415 rulebook = utils.BASE_DATA_PATH / "rulebooks/test_match_multiple_rules.yml" - websocket_address = f"ws://localhost:{port}{endpoint}" + websocket_address = f"ws://127.0.0.1:{port}{endpoint}" cmd = utils.Command( rulebook=rulebook, websocket=websocket_address, diff --git a/tests/e2e/test_non_alpha_keys.py b/tests/e2e/test_non_alpha_keys.py index 1c0b0b65..ff87d5e4 100644 --- a/tests/e2e/test_non_alpha_keys.py +++ b/tests/e2e/test_non_alpha_keys.py @@ -28,7 +28,7 @@ async def test_non_alpha_numeric_keys(): proc_id = "42" port = 31415 rulebook = utils.EXAMPLES_PATH / "82_non_alpha_keys.yml" - websocket_address = f"ws://localhost:{port}{endpoint}" + websocket_address = f"ws://127.0.0.1:{port}{endpoint}" cmd = utils.Command( rulebook=rulebook, websocket=websocket_address, diff --git a/tests/e2e/test_run_module_output.py b/tests/e2e/test_run_module_output.py index 9a7048ac..a3d4be09 100644 --- a/tests/e2e/test_run_module_output.py +++ b/tests/e2e/test_run_module_output.py @@ -28,7 +28,7 @@ async def test_run_module_output(): proc_id = "42" port = 31415 rulebook = utils.EXAMPLES_PATH / "29_run_module.yml" - websocket_address = f"ws://localhost:{port}{endpoint}" + websocket_address = f"ws://127.0.0.1:{port}{endpoint}" cmd = utils.Command( rulebook=rulebook, websocket=websocket_address, diff --git a/tests/e2e/test_websocket.py b/tests/e2e/test_websocket.py index f64b9b6f..7ca9c6fb 100644 --- a/tests/e2e/test_websocket.py +++ b/tests/e2e/test_websocket.py @@ -29,7 +29,7 @@ async def test_websocket_messages(): rulebook = ( utils.BASE_DATA_PATH / "rulebooks/websockets/test_websocket_range.yml" ) - websocket_address = f"ws://localhost:{port}{endpoint}" + websocket_address = f"ws://127.0.0.1:{port}{endpoint}" cmd = utils.Command( rulebook=rulebook, websocket=websocket_address,