Skip to content

Commit

Permalink
fix: add demo integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
fritz-astronomer committed Jan 9, 2025
1 parent c6d20ab commit 452868b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion orbiter_translations/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "0.5.0"
__version__ = "0.5.1"

version = __version__
6 changes: 6 additions & 0 deletions tests/autosys/demo/workflow/demo.jil
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
insert_job: foo.job
job_type: CMD
command: "C:\\ldhe\\cxl\\TidalDB\\startApp.cmd" "arg1" "arg2" "arg3"
machine: bar
owner: [email protected]
description: "Foo Job"
12 changes: 12 additions & 0 deletions tests/autosys/jil_demo_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from orbiter.objects.operators.ssh import OrbiterSSHOperator

from orbiter_translations.autosys.jil_demo import translation_ruleset


def test_autosys_demo(project_root):
actual = translation_ruleset.translate_fn(
translation_ruleset, (project_root / "tests/autosys/demo/workflow/")
)
assert list(actual.dags.keys()) == ["foo_job"]
assert sorted(list(actual.dags["foo_job"].tasks.keys())) == sorted(["foo_job",])
assert isinstance(actual.dags["foo_job"].tasks["foo_job"], OrbiterSSHOperator)

0 comments on commit 452868b

Please sign in to comment.