Skip to content

Commit f2aa651

Browse files
author
Aravindhan Palanisamy
committed
update execution actions
1 parent 5d080f4 commit f2aa651

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

nisystemlink/clients/test_plan/models/_execution_definition.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,34 @@ class NoneExecution(JsonModel):
6969
"""Type of execution, default is 'NONE'."""
7070

7171

72+
class ScheduleExecution(JsonModel):
73+
"""Represents a scheduled execution definition."""
74+
75+
action: str
76+
"""User defined action to perform in workflow (user defined)."""
77+
78+
type: Literal["SCHEDULE"] = Field(default="SCHEDULE")
79+
"""Type of execution, default is 'SCHEDULE'."""
80+
81+
82+
class UnscheduleExecution(JsonModel):
83+
"""Represents an unscheduled execution definition."""
84+
85+
action: str
86+
"""User defined action to perform in workflow (user defined)."""
87+
88+
type: Literal["UNSCHEDULE"] = Field(default="UNSCHEDULE")
89+
"""Type of execution, default is 'UNSCHEDULE'."""
90+
91+
7292
ExecutionDefinition = Annotated[
7393
Union[
7494
NotebookExecution,
7595
ManualExecution,
7696
JobExecution,
7797
NoneExecution,
98+
ScheduleExecution,
99+
UnscheduleExecution,
78100
],
79101
Field(discriminator="type"),
80102
]

tests/integration/test_plan/test_test_plan_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def _create_test_plan_templates(
9696
@pytest.mark.enterprise
9797
class TestTestPlanClient:
9898

99-
_workspace = "33eba2fe-fe42-48a1-a47f-a6669479a8aa"
99+
_workspace = "2300760d-38c4-48a1-9acb-800260812337"
100100

101101
_dashboard = Dashboard(
102102
id="DashBoardId", variables={"product": "PXIe-4080", "location": "Lab1"}

0 commit comments

Comments
 (0)