Skip to content

Commit

Permalink
Fix CURL post issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yhaliaw committed Nov 30, 2023
1 parent f1b6ba0 commit 6e87668
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions templates/pre-job.j2
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ if [[ "${GITHUB_WORKFLOW}" == "Workflow Dispatch Failure Tests 2a34f8b1-41e4-4bc
logger -s "Running the test workflow for integration tests, this test is configured to fail"

curl "${CURL_ARGS[@]}" \
-X POST \
http://{{host_ip}}:8080/always-fail/check-run &> repo_check_output.txt
REPO_CHECK=$?

Expand Down
2 changes: 1 addition & 1 deletion tests/integration/test_charm_fork_repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async def test_dispatch_workflow_failure(
"Stopping execution of jobs due to repository setup is not compliant with policies"
in logs
)
assert "The method is not allowed for the requested URL" in logs
assert "Endpoint designed for testing that always fails" in logs
assert "Should not echo if pre-job script failed" not in logs


Expand Down

0 comments on commit 6e87668

Please sign in to comment.