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
Merge requests
!314
Feature/vrf
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature/vrf
feature/vrf
into
develop
Overview
6
Commits
24
Pipelines
17
Changes
1
All threads resolved!
Hide all comments
Merged
Neda Moeini
requested to merge
feature/vrf
into
develop
3 months ago
Overview
6
Commits
24
Pipelines
17
Changes
1
All threads resolved!
Hide all comments
Expand
0
0
Merge request reports
Viewing commit
51d51038
Prev
Next
Show latest version
1 file
+
13
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
51d51038
Add more test for create VRF WF
· 51d51038
Neda Moeini
authored
3 months ago
test/workflows/vrf/test_create_vrf.py
+
13
−
0
Options
import
pytest
from
orchestrator.types
import
SubscriptionLifecycle
from
pydantic_forms.exceptions
import
FormValidationError
from
gso.products
import
ProductName
from
gso.products.product_types.vrf
import
VRF
@@ -40,3 +41,15 @@ def test_create_vrf_success(
assert
subscription
.
vrf
.
route_target
==
vrf_input
[
1
][
"
route_target
"
]
assert
subscription
.
vrf
.
vrf_as_number
==
vrf_input
[
1
][
"
vrf_as_number
"
]
assert
subscription
.
description
==
f
"
VRF
{
vrf_input
[
1
][
"
vrf_name
"
]
}
"
@pytest.mark.workflow
()
def
test_create_vrf_with_duplicate_vrf_name
(
vrf_input
,
faker
,
vrf_subscription_factory
,
data_config_filename
,
):
vrf_subscription_factory
(
vrf_name
=
vrf_input
[
1
][
"
vrf_name
"
])
with
pytest
.
raises
(
FormValidationError
,
match
=
"
VRF name must be unique.
"
):
run_workflow
(
"
create_vrf
"
,
vrf_input
)
Loading