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
541740e0
Commit
541740e0
authored
1 year ago
by
Hakan Calim
Committed by
Neda Moeini
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
NAT-329 added enum UseJuniperSide for tests
parent
30efb432
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!122
Feature/nat 329 interface names should validated 3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/conftest.py
+9
-0
9 additions, 0 deletions
test/conftest.py
with
9 additions
and
0 deletions
test/conftest.py
+
9
−
0
View file @
541740e0
...
...
@@ -17,6 +17,7 @@ from oauth2_lib.settings import oauth2lib_settings
from
orchestrator
import
app_settings
from
orchestrator.db
import
Database
,
db
from
orchestrator.db.database
import
ENGINE_ARGUMENTS
,
SESSION_ARGUMENTS
,
BaseModel
from
orchestrator.types
import
strEnum
from
sqlalchemy
import
create_engine
,
text
from
sqlalchemy.engine
import
make_url
from
sqlalchemy.orm
import
scoped_session
,
sessionmaker
...
...
@@ -34,6 +35,14 @@ def pytest_collection_modifyitems(config, items):
item
.
add_marker
(
pytest
.
mark
.
skip
(
reason
=
"
Skipped due to SKIP_ALL_TESTS env variable
"
))
class
UseJuniperSide
(
strEnum
):
"""
Define on tests on which side to use Juniper router
"""
NONE
=
"
none
"
SIDE_A
=
"
side_a
"
SIDE_B
=
"
side_b
"
SIDE_BOTH
=
"
side_both
"
class
FakerProvider
(
BaseProvider
):
def
ipv4_network
(
self
):
ipv4
=
self
.
generator
.
ipv4
()
...
...
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