Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
controller
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
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
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
TFS
controller
Commits
6efeac2c
Commit
6efeac2c
authored
1 year ago
by
Lluis Gifre Renom
Browse files
Options
Downloads
Patches
Plain Diff
Pre-release CI/CD pipeline fixes
parent
114c5a98
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!142
Release TeraFlowSDN 2.1
,
!137
Pre-release CI/CD fixes - Service - PathComp
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/service/tests/test_unitary.py
+8
-8
8 additions, 8 deletions
src/service/tests/test_unitary.py
with
8 additions
and
8 deletions
src/service/tests/test_unitary.py
+
8
−
8
View file @
6efeac2c
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# See the License for the specific language governing permissions and
# limitations under the License.
# limitations under the License.
import
copy
,
grpc
,
logging
,
pytest
import
copy
,
grpc
,
json
,
logging
,
pytest
from
common.proto.context_pb2
import
(
from
common.proto.context_pb2
import
(
Context
,
ContextId
,
Device
,
DeviceId
,
Link
,
LinkId
,
Service
,
ServiceId
,
Topology
,
TopologyId
)
Context
,
ContextId
,
Device
,
DeviceId
,
Link
,
LinkId
,
Service
,
ServiceId
,
Topology
,
TopologyId
)
from
common.tests.PytestGenerateTests
import
pytest_generate_tests
# (required) pylint: disable=unused-import
from
common.tests.PytestGenerateTests
import
pytest_generate_tests
# (required) pylint: disable=unused-import
...
@@ -39,23 +39,23 @@ class TestServiceHandlers:
...
@@ -39,23 +39,23 @@ class TestServiceHandlers:
scenarios
=
SERVICE_HANDLERS_TO_TEST
scenarios
=
SERVICE_HANDLERS_TO_TEST
def
test_prepare_environment
(
def
test_prepare_environment
(
self
,
service_id
,
service_descriptor
,
service_endpoint_ids
,
service_config_rules
,
service_constraints
,
self
,
contexts
,
topologies
,
devices
,
links
,
service_id
,
service_descriptor
,
service_endpoint_ids
,
service_constraints_location
,
service_constraints_location_new
,
service_config_rules
,
service_constraints
,
service_constraints_location
,
service_constraints_location_new
,
contexts
,
topologies
,
devices
,
links
,
context_client
:
ContextClient
,
# pylint: disable=redefined-outer-name
context_client
:
ContextClient
,
# pylint: disable=redefined-outer-name
device_client
:
DeviceClient
,
# pylint: disable=redefined-outer-name
device_client
:
DeviceClient
,
# pylint: disable=redefined-outer-name
service_client
:
ServiceClient
):
# pylint: disable=redefined-outer-name
service_client
:
ServiceClient
):
# pylint: disable=redefined-outer-name
for
context
in
contexts
:
context_client
.
SetContext
(
Context
(
**
context
))
for
context
in
contexts
:
context_client
.
SetContext
(
Context
(
**
context
))
for
topology
in
topologies
:
context_client
.
SetTopology
(
Topology
(
**
topology
))
for
topology
in
topologies
:
context_client
.
SetTopology
(
Topology
(
**
topology
))
for
device
in
devices
:
device_client
.
AddDevice
(
Device
(
**
device
))
for
device
in
devices
:
LOGGER
.
warning
(
'
device: {:s}
'
.
format
(
json
.
dumps
(
device
)))
device_client
.
AddDevice
(
Device
(
**
device
))
for
link
in
links
:
context_client
.
SetLink
(
Link
(
**
link
))
for
link
in
links
:
context_client
.
SetLink
(
Link
(
**
link
))
def
test_service_create_error_cases
(
def
test_service_create_error_cases
(
self
,
service_id
,
service_descriptor
,
service_endpoint_ids
,
service_config_rules
,
service_constraints
,
self
,
contexts
,
topologies
,
devices
,
links
,
service_id
,
service_descriptor
,
service_endpoint_ids
,
service_constraints_location
,
service_constraints_location_new
,
service_config_rules
,
service_constraints
,
service_constraints_location
,
service_constraints_location_new
,
contexts
,
topologies
,
devices
,
links
,
context_client
:
ContextClient
,
# pylint: disable=redefined-outer-name
context_client
:
ContextClient
,
# pylint: disable=redefined-outer-name
device_client
:
DeviceClient
,
# pylint: disable=redefined-outer-name
device_client
:
DeviceClient
,
# pylint: disable=redefined-outer-name
service_client
:
ServiceClient
):
# pylint: disable=redefined-outer-name
service_client
:
ServiceClient
):
# pylint: disable=redefined-outer-name
...
...
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