Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Resource Manager
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
GÉANT Orchestration and Automation Team
GAP
Resource Manager
Commits
d13db393
Commit
d13db393
authored
2 years ago
by
Erik Reid
Browse files
Options
Downloads
Patches
Plain Diff
pep8
parent
8a0a79bc
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_interfaces_routes.py
+2
-2
2 additions, 2 deletions
test/test_interfaces_routes.py
with
2 additions
and
2 deletions
test/test_interfaces_routes.py
+
2
−
2
View file @
d13db393
...
@@ -78,14 +78,14 @@ def test_next_physical(client, resources_db, mocked_router, router_name):
...
@@ -78,14 +78,14 @@ def test_next_physical(client, resources_db, mocked_router, router_name):
assert
ifc_row
.
availability
==
model
.
AvalabilityStates
.
RESERVED
.
name
assert
ifc_row
.
availability
==
model
.
AvalabilityStates
.
RESERVED
.
name
def
test_
next_physical
(
client
,
resources_db
):
def
test_
list_of_routers
(
client
,
resources_db
):
with
db
.
session_scope
()
as
session
:
with
db
.
session_scope
()
as
session
:
for
idx
in
range
(
10
):
for
idx
in
range
(
10
):
row
=
db
.
model
.
Router
(
fqdn
=
f
'
router-
{
idx
}
.xyz.com
'
)
row
=
db
.
model
.
Router
(
fqdn
=
f
'
router-
{
idx
}
.xyz.com
'
)
session
.
add
(
row
)
session
.
add
(
row
)
rv
=
client
.
get
(
f
'
/api/interfaces/routers
'
)
rv
=
client
.
get
(
'
/api/interfaces/routers
'
)
assert
rv
.
status_code
==
200
assert
rv
.
status_code
==
200
response
=
rv
.
json
()
response
=
rv
.
json
()
...
...
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