Skip to content

Commit 868517d

Browse files
author
ci bot
committed
Merge branch 'fix-test-schedule' into 'enterprise'
fix(test-schedules): incorrect project parameter passed to cli See merge request dkinternal/testgen/dataops-testgen!222
2 parents 9e3c658 + f33ee4c commit 868517d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
SET SEARCH_PATH TO {SCHEMA_NAME};
2+
3+
UPDATE job_schedules
4+
SET kwargs = kwargs - 'project_code' || jsonb_build_object('project_key', kwargs->'project_code')
5+
WHERE key = 'run-tests';

testgen/ui/views/test_runs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def arg_value_input(self) -> tuple[bool, list[typing.Any], dict[str, typing.Any]
133133
display_column="test_suite",
134134
required=True,
135135
)
136-
return bool(ts_name), [], {"project_code": self.project_code, "test_suite_key": ts_name}
136+
return bool(ts_name), [], {"project_key": self.project_code, "test_suite_key": ts_name}
137137

138138

139139
def render_empty_state(project_code: str, user_can_run: bool) -> bool:

0 commit comments

Comments
 (0)