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
Merge requests
!253
Resolve
L2SS-404
"Archiving setup development"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve
L2SS-404
"Archiving setup development"
L2SS-404-archiving-setup-development
into
master
Overview
11
Commits
12
Pipelines
0
Changes
6
All threads resolved!
Hide all comments
Merged
Stefano Di Frischia
requested to merge
L2SS-404-archiving-setup-development
into
master
3 years ago
Overview
11
Commits
12
Pipelines
0
Changes
6
All threads resolved!
Hide all comments
Expand
Closes
L2SS-404
0
0
Merge request reports
Compare
master
version 3
ec1fde3e
3 years ago
version 2
179d0dd3
3 years ago
version 1
bd8dea28
3 years ago
master (base)
and
latest version
latest version
847e7748
12 commits,
3 years ago
version 3
ec1fde3e
10 commits,
3 years ago
version 2
179d0dd3
9 commits,
3 years ago
version 1
bd8dea28
5 commits,
3 years ago
6 files
+
185
−
28
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
tangostationcontrol/tangostationcontrol/integration_test/toolkit/test_archiver_util.py
0 → 100644
+
32
−
0
Options
# -*- 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
))
Loading