Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
67721f83
Commit
67721f83
authored
4 years ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
TMSS-190
: changes names for test data
parent
a9e90a22
No related branches found
No related tags found
1 merge request
!252
Resolve TMSS-190
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/src/tmss/tmssapp/populate.py
+3
-3
3 additions, 3 deletions
SAS/TMSS/src/tmss/tmssapp/populate.py
with
3 additions
and
3 deletions
SAS/TMSS/src/tmss/tmssapp/populate.py
+
3
−
3
View file @
67721f83
...
@@ -56,8 +56,8 @@ def populate_test_data():
...
@@ -56,8 +56,8 @@ def populate_test_data():
from
lofar.sas.tmss.tmss.tmssapp.tasks
import
create_task_blueprints_and_subtasks_from_scheduling_unit_draft
,
create_task_blueprints_and_subtasks_and_schedule_subtasks_from_scheduling_unit_draft
from
lofar.sas.tmss.tmss.tmssapp.tasks
import
create_task_blueprints_and_subtasks_from_scheduling_unit_draft
,
create_task_blueprints_and_subtasks_and_schedule_subtasks_from_scheduling_unit_draft
from
lofar.sas.tmss.tmss.tmssapp.subtasks
import
schedule_subtask
from
lofar.sas.tmss.tmss.tmssapp.subtasks
import
schedule_subtask
tmss_projects
=
models
.
Project
.
objects
.
filter
(
name__startswith
=
"
TMSS-Commissioning
"
).
all
()
tmss_projects
=
models
.
Project
.
objects
.
filter
(
name__startswith
=
"
TMSS-Commissioning
"
).
order_by
(
'
priority_rank
'
).
all
()
for
tmss_project
in
tmss_projects
:
for
project_nr
,
tmss_project
in
enumerate
(
tmss_projects
)
:
for
set_nr
in
range
(
1
):
for
set_nr
in
range
(
1
):
# create a Test Scheduling Set UC1 under project TMSS-Commissioning
# create a Test Scheduling Set UC1 under project TMSS-Commissioning
project_prio_name
=
tmss_project
.
name
.
replace
(
"
TMSS-Commissioning
"
,
""
)
project_prio_name
=
tmss_project
.
name
.
replace
(
"
TMSS-Commissioning
"
,
""
)
...
@@ -76,7 +76,7 @@ def populate_test_data():
...
@@ -76,7 +76,7 @@ def populate_test_data():
scheduling_unit_spec
=
add_defaults_to_json_object_for_schema
(
strategy_template
.
template
,
strategy_template
.
scheduling_unit_template
.
schema
)
scheduling_unit_spec
=
add_defaults_to_json_object_for_schema
(
strategy_template
.
template
,
strategy_template
.
scheduling_unit_template
.
schema
)
# add the scheduling_unit_doc to a new SchedulingUnitDraft instance, and were ready to use it!
# add the scheduling_unit_doc to a new SchedulingUnitDraft instance, and were ready to use it!
scheduling_unit_draft
=
models
.
SchedulingUnitDraft
.
objects
.
create
(
name
=
"
UC1
test scheduling
unit %s.%s (%s)
"
%
(
set_nr
+
1
,
unit_nr
+
1
,
project_prio_name
),
scheduling_unit_draft
=
models
.
SchedulingUnitDraft
.
objects
.
create
(
name
=
"
UC1 unit
p
%s.
s%s.u
%s (%s)
"
%
(
project_nr
+
1
,
set_nr
+
1
,
unit_nr
+
1
,
project_prio_name
),
scheduling_set
=
scheduling_set
,
scheduling_set
=
scheduling_set
,
requirements_template
=
strategy_template
.
scheduling_unit_template
,
requirements_template
=
strategy_template
.
scheduling_unit_template
,
requirements_doc
=
scheduling_unit_spec
,
requirements_doc
=
scheduling_unit_spec
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment