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
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
d8d43e1a
Verified
Commit
d8d43e1a
authored
1 year ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
update trunk interface modification workflow unit test
parent
26659a98
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!96
Make use of new callback step for external provisioning
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/workflows/iptrunk/test_modify_trunk_interface.py
+4
-23
4 additions, 23 deletions
test/workflows/iptrunk/test_modify_trunk_interface.py
with
4 additions
and
23 deletions
test/workflows/iptrunk/test_modify_trunk_interface.py
+
4
−
23
View file @
d8d43e1a
...
...
@@ -4,14 +4,7 @@ import pytest
from
gso.products
import
Iptrunk
from
gso.products.product_blocks.iptrunk
import
IptrunkType
,
PhyPortCapacity
from
test.workflows
import
(
assert_complete
,
assert_suspended
,
extract_state
,
resume_workflow
,
run_workflow
,
user_accept_and_assert_suspended
,
)
from
test.workflows
import
assert_complete
,
assert_pp_interaction_success
,
extract_state
,
run_workflow
from
test.workflows.iptrunk.test_create_iptrunk
import
MockedNetboxClient
...
...
@@ -33,6 +26,7 @@ def test_iptrunk_modify_trunk_interface_success(
mock_provision_ip_trunk
,
iptrunk_subscription_factory
,
faker
,
data_config_filename
,
):
# Set up mock return values
mocked_netbox
=
MockedNetboxClient
()
...
...
@@ -82,22 +76,9 @@ def test_iptrunk_modify_trunk_interface_success(
]
result
,
process_stat
,
step_log
=
run_workflow
(
"
modify_trunk_interface
"
,
initial_iptrunk_data
)
assert_suspended
(
result
)
lso_return
=
{
"
pp_run_results
"
:
{
"
status
"
:
"
ok
"
,
"
job_id
"
:
faker
.
uuid4
(),
"
output
"
:
"
parsed_output
"
,
"
return_code
"
:
0
,
},
"
confirm
"
:
"
ACCEPTED
"
,
}
result
,
step_log
=
user_accept_and_assert_suspended
(
process_stat
,
step_log
,
lso_return
)
result
,
step_log
=
user_accept_and_assert_suspended
(
process_stat
,
step_log
,
[{},
{}])
result
,
step_log
=
user_accept_and_assert_suspended
(
process_stat
,
step_log
,
lso_return
)
result
,
step_log
=
resume_workflow
(
process_stat
,
step_log
,
[{},
{}])
for
_
in
range
(
2
):
result
,
step_log
=
assert_pp_interaction_success
(
result
,
process_stat
,
step_log
)
assert_complete
(
result
)
...
...
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