Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue 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
LOFAR2.0
tango
Commits
39daf761
Commit
39daf761
authored
3 years ago
by
Stefano Di Frischia
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-542
: add time sleep to archiving tests
parent
4209b2e5
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!240
Resolve L2SS-542 "Add timescaledb views"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sbin/run_integration_test.sh
+2
-1
2 additions, 1 deletion
sbin/run_integration_test.sh
tangostationcontrol/tangostationcontrol/integration_test/toolkit/test_archiver.py
+3
-3
3 additions, 3 deletions
...ostationcontrol/integration_test/toolkit/test_archiver.py
with
5 additions
and
4 deletions
sbin/run_integration_test.sh
+
2
−
1
View file @
39daf761
...
@@ -40,7 +40,8 @@ make start sdptr-sim recv-sim unb2-sim apsct-sim apspu-sim
...
@@ -40,7 +40,8 @@ make start sdptr-sim recv-sim unb2-sim apsct-sim apspu-sim
sleep
5
sleep
5
make start device-boot device-apsct device-apspu device-sdp device-recv device-sst device-unb2 device-xst device-beam
make start device-boot device-apsct device-apspu device-sdp device-recv device-sst device-unb2 device-xst device-beam
make start archiver-timescale hdbppts-cm hdbppts-es
# starting order is important
# Archive devices -> starting order is important
make start archiver-timescale hdbppts-cm hdbppts-es
# Give devices time to restart
# Give devices time to restart
# TODO(Corne Lukken): Use a nicer more reliable mechanism
# TODO(Corne Lukken): Use a nicer more reliable mechanism
...
...
This diff is collapsed.
Click to expand it.
tangostationcontrol/tangostationcontrol/integration_test/toolkit/test_archiver.py
+
3
−
3
View file @
39daf761
...
@@ -40,8 +40,6 @@ class TestArchiver(BaseIntegrationTestCase):
...
@@ -40,8 +40,6 @@ class TestArchiver(BaseIntegrationTestCase):
"""
Test archiver configuration file
"""
"""
Test archiver configuration file
"""
config_dict
=
self
.
archiver
.
get_configuration
()
config_dict
=
self
.
archiver
.
get_configuration
()
self
.
assertIsNotNone
(
config_dict
)
self
.
assertIsNotNone
(
config_dict
)
# Apply the configuration file
self
.
archiver
.
apply_configuration
(
config_dict
)
def
test_archive_scalar_attribute
(
self
):
def
test_archive_scalar_attribute
(
self
):
"""
Test if a scalar attribute is correctly archived
"""
"""
Test if a scalar attribute is correctly archived
"""
...
@@ -58,6 +56,7 @@ class TestArchiver(BaseIntegrationTestCase):
...
@@ -58,6 +56,7 @@ class TestArchiver(BaseIntegrationTestCase):
# Safety operation that prevents event subscriber to go in Fault state
# Safety operation that prevents event subscriber to go in Fault state
self
.
archiver
.
remove_attributes_in_error
()
self
.
archiver
.
remove_attributes_in_error
()
time
.
sleep
(
3
)
attr_fullname
=
'
stat/recv/1/recvtr_translator_busy_r
'
# boolean
attr_fullname
=
'
stat/recv/1/recvtr_translator_busy_r
'
# boolean
self
.
archiver
.
add_attribute_to_archiver
(
attr_fullname
,
polling_period
=
1000
,
event_period
=
3000
)
self
.
archiver
.
add_attribute_to_archiver
(
attr_fullname
,
polling_period
=
1000
,
event_period
=
3000
)
time
.
sleep
(
3
)
time
.
sleep
(
3
)
...
@@ -96,9 +95,10 @@ class TestArchiver(BaseIntegrationTestCase):
...
@@ -96,9 +95,10 @@ class TestArchiver(BaseIntegrationTestCase):
# Safety operation that prevents event subscriber to go in Fault state
# Safety operation that prevents event subscriber to go in Fault state
self
.
archiver
.
remove_attributes_in_error
()
self
.
archiver
.
remove_attributes_in_error
()
time
.
sleep
(
3
)
attr_fullname
=
'
stat/sdp/1/fpga_temp_r
'
# double
attr_fullname
=
'
stat/sdp/1/fpga_temp_r
'
# double
self
.
archiver
.
add_attribute_to_archiver
(
attr_fullname
,
polling_period
=
1000
,
event_period
=
3000
)
self
.
archiver
.
add_attribute_to_archiver
(
attr_fullname
,
polling_period
=
1000
,
event_period
=
3000
)
time
.
sleep
(
5
)
time
.
sleep
(
3
)
# Test if the attribute has been correctly added to event subscriber
# Test if the attribute has been correctly added to event subscriber
self
.
assertTrue
(
self
.
archiver
.
is_attribute_archived
(
attr_fullname
))
self
.
assertTrue
(
self
.
archiver
.
is_attribute_archived
(
attr_fullname
))
...
...
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