Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(test): use different URL for http example test #13737

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

Joibel
Copy link
Member

@Joibel Joibel commented Oct 10, 2024

Motivation

The http-template example is tested as part of the examples suite. example folder tests have a timeout of 30 seconds.

This test attempts to get from a currently offline source of http://openlibrary.org. It is supposed to fail to retrieve, but because the site is offline the test times out before the http GET times out, so the test fails.

See this at https://github.com/argoproj/argo-workflows/actions/runs/11275007994/job/31355710660

Modifications

Modify the URL to use the successful server, which is also github so likely to be up if CI is running. Just modify the path to be invalid, so the expected outcome of a "fail to GET" is honoured.

Verification

Tested locally

Signed-off-by: Alan Clucas <alan@clucas.org>
@Joibel Joibel marked this pull request as ready for review October 10, 2024 14:23
@Joibel Joibel enabled auto-merge (squash) October 10, 2024 15:15
@Joibel Joibel merged commit 2735f6b into argoproj:main Oct 10, 2024
30 checks passed
@Joibel Joibel deleted the fix-http-template-test branch October 10, 2024 15:33
@agilgur5 agilgur5 changed the title fix(test): fix http-template test fix(test): use different URL for http example test Oct 11, 2024
@agilgur5 agilgur5 added the area/build Build or GithubAction/CI issues label Oct 11, 2024
isubasinghe pushed a commit that referenced this pull request Oct 30, 2024
Signed-off-by: Alan Clucas <alan@clucas.org>
isubasinghe pushed a commit that referenced this pull request Oct 30, 2024
Signed-off-by: Alan Clucas <alan@clucas.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/build Build or GithubAction/CI issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants