-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bruno Grande
committed
Feb 10, 2023
1 parent
b283b43
commit 80000e0
Showing
13 changed files
with
172 additions
and
40 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import pytest | ||
from sevenbridges.models.enums import TaskStatus | ||
|
||
from orca.services.sevenbridges import SevenBridgesHook | ||
|
||
|
||
@pytest.mark.acceptance | ||
def test_cavatica_launch_poc_v2(run_id): | ||
def create_task(): | ||
hook = SevenBridgesHook() | ||
task_inputs = { | ||
"input_type": "FASTQ", | ||
"reads1": hook.client.files.get("63e569217a0654635c558c84"), | ||
"reads2": hook.client.files.get("63e5694ebfc712185ac37a27"), | ||
"runThreadN": 36, | ||
"wf_strand_param": "default", | ||
"sample_name": "HCC1187_1M", | ||
"rmats_read_length": 101, | ||
"outSAMattrRGline": "ID:HCC1187_1M\tLB:NA\tPL:Illumina\tSM:HCC1187_1M", | ||
"output_basename": run_id, | ||
} | ||
app_id = "orca-service/test-project/kfdrc-rnaseq-workflow" | ||
task_id = hook.ops.create_task(run_id, app_id, task_inputs) | ||
return task_id | ||
|
||
def monitor_task(task_name): | ||
hook = SevenBridgesHook() | ||
return hook.ops.get_task_status(task_name) | ||
|
||
task_id = create_task() | ||
task_status, _ = monitor_task(task_id) | ||
assert hasattr(TaskStatus, str(task_status)) |
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
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
Oops, something went wrong.