-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix tests after adding retry to curl cmd
- Loading branch information
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,14 +53,14 @@ def test_that_personal_operator_image_is_used(self, dag, quarto): | |
def test_that_cmds_are_correct(self, dag, quarto): | ||
container = quarto_operator(dag, "name", quarto, "repo") | ||
correct_cmds = ["quarto render quarto.qmd --to html --execute --output index.html -M self-contained:True && " | ||
f"""curl --fail-with-body -X PUT -F [email protected] https://datamarkedsplassen.intern.dev.nav.no/quarto/update/{quarto['id']} -H "Authorization:Bearer {quarto['token']}" """] | ||
f"""curl --fail-with-body --retry 2 -X PUT -F [email protected] https://datamarkedsplassen.intern.dev.nav.no/quarto/update/{quarto['id']} -H "Authorization:Bearer {quarto['token']}" """] | ||
assert container.arguments == correct_cmds | ||
|
||
def test_that_quarto_format_is_changed(self, dag, quarto): | ||
quarto["format"] = "pdf" | ||
container = quarto_operator(dag, "name", quarto, "repo") | ||
correct_cmds = ["quarto render quarto.qmd --to pdf --execute --output index.html -M self-contained:True && " | ||
f"""curl --fail-with-body -X PUT -F [email protected] https://datamarkedsplassen.intern.dev.nav.no/quarto/update/{quarto['id']} -H "Authorization:Bearer {quarto['token']}" """] | ||
f"""curl --fail-with-body --retry 2 -X PUT -F [email protected] https://datamarkedsplassen.intern.dev.nav.no/quarto/update/{quarto['id']} -H "Authorization:Bearer {quarto['token']}" """] | ||
assert container.arguments == correct_cmds | ||
|
||
def test_that_quarto_deps_is_added_to_allowlist(self, dag, quarto): | ||
|