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
179d0dd3
Commit
179d0dd3
authored
3 years ago
by
Stefano Di Frischia
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-404
: add integration test
parent
d0faa0e9
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!253
Resolve L2SS-404 "Archiving setup development"
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
tangostationcontrol/tangostationcontrol/integration_test/toolkit/test_archiver_util.py
+32
-0
32 additions, 0 deletions
...ioncontrol/integration_test/toolkit/test_archiver_util.py
with
32 additions
and
0 deletions
tangostationcontrol/tangostationcontrol/integration_test/toolkit/test_archiver_util.py
0 → 100644
+
32
−
0
View file @
179d0dd3
# -*- 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.integration_test.base
import
BaseIntegrationTestCase
from
tangostationcontrol.integration_test.device_proxy
import
TestDeviceProxy
from
tangostationcontrol.toolkit.archiver_util
import
get_attributes_from_suffix
from
tango
import
DevState
import
json
import
pkg_resources
class
TestArchiverUtil
(
BaseIntegrationTestCase
):
def
setUp
(
self
):
super
().
setUp
()
self
.
config_dict
=
json
.
load
(
pkg_resources
.
resource_stream
(
'
tangostationcontrol.toolkit
'
,
f
'
archiver_config/lofar2.json
'
))
def
test_get_attributes_from_suffix
(
self
):
"""
Test if attributes are correctly matched with the defined global suffixes
"""
device_name
=
'
STAT/RECV/1
'
attribute_name
=
'
ANT_mask_RW
'
suffixes
=
self
.
config_dict
[
'
_global_suffixes
'
]
# Start RECV Device
recv_proxy
=
TestDeviceProxy
(
device_name
)
recv_proxy
.
off
()
self
.
assertEqual
(
DevState
.
OFF
,
recv_proxy
.
state
())
self
.
assertIn
(
attribute_name
,
get_attributes_from_suffix
(
device_name
,
suffixes
))
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