File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
nisystemlink/clients/test_plan/models
tests/integration/test_plan Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff 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+
7292ExecutionDefinition = Annotated [
7393 Union [
7494 NotebookExecution ,
7595 ManualExecution ,
7696 JobExecution ,
7797 NoneExecution ,
98+ ScheduleExecution ,
99+ UnscheduleExecution ,
78100 ],
79101 Field (discriminator = "type" ),
80102]
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def _create_test_plan_templates(
9696@pytest .mark .enterprise
9797class 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" }
You can’t perform that action at this time.
0 commit comments