Skip to content
GitLab
Explore
Sign in
Register
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
9f163e89
Commit
9f163e89
authored
2 years ago
by
Taya Snijder
Browse files
Options
Downloads
Plain Diff
Merge branch '
L2SS-825
_start_an_observation' into 'master'
Resolve
L2SS-825
"Start an observation" Closes
L2SS-825
See merge request
!457
parents
b599551e
ab2979ac
No related branches found
No related tags found
1 merge request
!457
Resolve L2SS-825 "Start an observation"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tangostationcontrol/requirements.txt
+1
-1
1 addition, 1 deletion
tangostationcontrol/requirements.txt
tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_observation.py
+47
-0
47 additions, 0 deletions
...trol/integration_test/default/devices/test_observation.py
with
48 additions
and
1 deletion
tangostationcontrol/requirements.txt
+
1
−
1
View file @
9f163e89
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
# integration process, which may cause wedges in the gate later.
# integration process, which may cause wedges in the gate later.
importlib-metadata<2.0.0,>=0.12;python_version<"3.8"
importlib-metadata<2.0.0,>=0.12;python_version<"3.8"
lofar-station-client@git+https://git.astron.nl/lofar2.0/lofar-station-client@0.9.
1
lofar-station-client@git+https://git.astron.nl/lofar2.0/lofar-station-client@0.9.
2
numpy
numpy
mock
mock
asyncua >= 0.9.90 # LGPLv3
asyncua >= 0.9.90 # LGPLv3
...
...
This diff is collapsed.
Click to expand it.
tangostationcontrol/tangostationcontrol/integration_test/default/devices/test_observation.py
0 → 100644
+
47
−
0
View file @
9f163e89
# -*- coding: utf-8 -*-
#
# This file is part of the LOFAR 2.0 Station Software
#
#
#
# Distributed under the terms of the APACHE license.
# See LICENSE.txt for more info.
from
tangostationcontrol.test.devices.test_observation_base
import
TestObservationBase
from
tangostationcontrol.integration_test
import
base
from
tangostationcontrol.integration_test.device_proxy
import
TestDeviceProxy
from
lofar_station_client.observation.observation
import
Observation
from
os
import
environ
from
json
import
loads
from
tango
import
DevState
class
TestObservation
(
base
.
IntegrationTestCase
):
def
setUp
(
self
):
self
.
observation_control_proxy
=
TestDeviceProxy
(
"
STAT/ObservationControl/1
"
)
self
.
observation_control_proxy
.
off
()
self
.
observation_control_proxy
.
warm_boot
()
def
test_observation
(
self
):
"""
Test of the observation_wrapper class basic functionality
"""
# convert the JSON specificiation to a dict for this class
specification_dict
=
loads
(
TestObservationBase
.
VALID_JSON
)
# create an observation class using the dict and as host just get it using a util function
observation
=
Observation
(
specification
=
specification_dict
,
host
=
environ
[
"
TANGO_HOST
"
])
# Assert the observation is running after starting it
observation
.
start
()
self
.
assertTrue
(
observation
.
is_running
())
# Assert the proxy is on
proxy
=
observation
.
observation_proxy
()
self
.
assertTrue
(
proxy
.
state
()
==
DevState
.
ON
)
# Assert the observation has stopped after aborting
observation
.
abort
()
self
.
assertFalse
(
observation
.
is_running
())
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