Skip to content

Commit

Permalink
OGDC simple workflow integration test: cleanup workflow
Browse files Browse the repository at this point in the history
Cleans up the argo workflow after a success. Assuming we'll want to investigate
logs of any workflows that fail.
  • Loading branch information
trey-stafford committed Dec 17, 2024
1 parent c2c605c commit 26a7c6a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/integration/test_argo_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from pathlib import Path

from ogdc_runner.argo import ARGO_WORKFLOW_SERVICE
from ogdc_runner.recipe.simple import make_simple_workflow

SIMPLE_RECIPE_TEST_PATH = Path(__file__).parent / "test_recipe"
Expand All @@ -18,3 +19,6 @@ def test_simple_argo_workflow():
submitted_wf = workflow.create(wait=True)
assert submitted_wf.status # type: ignore[union-attr]
assert submitted_wf.status.phase == "Succeeded" # type: ignore[union-attr]
# Cleanup the test workflow
if workflow.name:
ARGO_WORKFLOW_SERVICE.delete_workflow(workflow.name)

0 comments on commit 26a7c6a

Please sign in to comment.