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
863e26eb
Commit
863e26eb
authored
1 year ago
by
Hakan Calim
Committed by
Neda Moeini
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
NAT-329 reformatet files
parent
712f96a5
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
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/schedules/test_scheduling.py
+1
-1
1 addition, 1 deletion
test/schedules/test_scheduling.py
test/services/conftest.py
+5
-5
5 additions, 5 deletions
test/services/conftest.py
with
6 additions
and
6 deletions
test/schedules/test_scheduling.py
+
1
−
1
View file @
863e26eb
...
...
@@ -8,7 +8,7 @@ from gso.schedules.scheduling import scheduler
@pytest.fixture
(
scope
=
"
module
"
)
def
validate_subscriptions
():
from
gso.schedules.validate_subscriptions
import
validate_subscriptions
as
vs
# noqa: PLC0415
from
gso.schedules.validate_subscriptions
import
validate_subscriptions
as
vs
return
vs
...
...
This diff is collapsed.
Click to expand it.
test/services/conftest.py
+
5
−
5
View file @
863e26eb
...
...
@@ -7,10 +7,10 @@ class MockedNetboxClient:
def
get_device_by_name
(
self
):
return
self
.
BaseMockObject
(
id
=
1
,
name
=
"
test
"
)
def
get_available_lags
(
self
)
->
list
[
str
]:
# noqa: PLR6301
def
get_available_lags
(
self
)
->
list
[
str
]:
return
[
f
"
LAG
{
lag
}
"
for
lag
in
range
(
1
,
5
)]
def
get_available_interfaces
(
self
):
# noqa: PLR6301
def
get_available_interfaces
(
self
):
interfaces
=
[]
for
interface
in
range
(
5
):
interface_data
=
{
...
...
@@ -30,14 +30,14 @@ class MockedNetboxClient:
def
reserve_interface
(
self
):
return
self
.
BaseMockObject
(
id
=
1
,
name
=
"
test
"
)
def
allocate_interface
(
self
):
# noqa: PLR6301
def
allocate_interface
(
self
):
return
{
"
id
"
:
1
,
"
name
"
:
"
test
"
}
def
free_interface
(
self
):
return
self
.
BaseMockObject
(
id
=
1
,
name
=
"
test
"
)
def
detach_interfaces_from_lag
(
self
):
# noqa: PLR6301
def
detach_interfaces_from_lag
(
self
):
return
None
def
delete_interface
(
self
):
# noqa: PLR6301
def
delete_interface
(
self
):
return
None
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