Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Commits
ac7fc541
Commit
ac7fc541
authored
1 year ago
by
Hakan Calim
Browse files
Options
Downloads
Patches
Plain Diff
NAT-329
fixed all nokia side issues with netbox counts ->now all 4 test works
parent
4cd78a2a
No related branches found
No related tags found
No related merge requests found
Pipeline
#84752
failed
1 year ago
Stage: tox
Stage: documentation
Stage: sonarqube
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/workflows/iptrunk/test_modify_trunk_interface.py
+9
-3
9 additions, 3 deletions
test/workflows/iptrunk/test_modify_trunk_interface.py
with
9 additions
and
3 deletions
test/workflows/iptrunk/test_modify_trunk_interface.py
+
9
−
3
View file @
ac7fc541
...
@@ -144,10 +144,16 @@ def test_iptrunk_modify_trunk_interface_success(
...
@@ -144,10 +144,16 @@ def test_iptrunk_modify_trunk_interface_success(
len
(
new_side_a_ae_members
)
if
vendor_side_a
==
RouterVendor
.
NOKIA
else
0
)
+
(
len
(
new_side_a_ae_members
)
if
vendor_side_a
==
RouterVendor
.
NOKIA
else
0
)
+
(
len
(
new_side_b_ae_members
)
if
vendor_side_b
==
RouterVendor
.
NOKIA
else
0
)
len
(
new_side_b_ae_members
)
if
vendor_side_b
==
RouterVendor
.
NOKIA
else
0
)
assert
mocked_reserve_interface
.
call_count
==
num_ifaces
# Define free interfaces for only nokia sides
num_free_ifaces
=
2
*
(
vendor_side_a
==
RouterVendor
.
NOKIA
)
+
2
*
(
vendor_side_b
==
RouterVendor
.
NOKIA
)
# lag interface for nokia sides
num_lag_ifaces
=
int
(
vendor_side_a
==
RouterVendor
.
NOKIA
)
+
int
(
vendor_side_b
==
RouterVendor
.
NOKIA
)
assert
mocked_reserve_interface
.
call_count
==
num_ifaces
# Only nokia interfaces per side num is randomly generated
assert
mocked_attach_interface_to_lag
.
call_count
==
num_ifaces
assert
mocked_attach_interface_to_lag
.
call_count
==
num_ifaces
assert
mocked_free_interface
.
call_count
==
4
# 2 interfaces per side(The old ones)
assert
mocked_free_interface
.
call_count
==
num_free_ifaces
# 2 interfaces per
nokia
side(The old ones)
assert
mocked_detach_interfaces_from_lag
.
call_count
==
2
# 1 time per side
assert
mocked_detach_interfaces_from_lag
.
call_count
==
num_lag_ifaces
# 1 time per
nokia
side
# Assert all subscription properties have been updated correctly
# Assert all subscription properties have been updated correctly
assert
subscription
.
description
==
f
"
IP trunk, geant_s_sid:
{
new_sid
}
"
assert
subscription
.
description
==
f
"
IP trunk, geant_s_sid:
{
new_sid
}
"
...
...
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