Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zmops-test
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sanshi
zmops-test
Commits
90e1cedb
Commit
90e1cedb
authored
Dec 05, 2019
by
sanshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产ips下拉框
parent
a31a8792
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
test_device_asset_ips.py
WorkCase/APP/Device/test_device_asset_ips.py
+6
-2
No files found.
WorkCase/APP/Device/test_device_asset_ips.py
View file @
90e1cedb
...
...
@@ -215,9 +215,13 @@ class TestDeviceAssetIps(object):
response
=
self
.
device_asset_ips
(
token
=
self
.
token
,
ipName
=
self
.
base_ip
)
self
.
check_code
(
response
=
response
,
code
=
0
)
data
=
UtilsResponse
()
.
get_data
(
response
=
response
)
ids
=
[]
for
x
,
y
in
enumerate
(
data
):
assert
y
[
"id"
]
==
self
.
device_id
assert
y
[
"name"
]
==
self
.
base_ip
ids
.
append
(
y
[
"id"
])
sql
=
self
.
select_hosts
(
hostid
=
y
[
"id"
])
for
q
,
w
in
enumerate
(
sql
):
assert
y
[
"name"
]
==
w
.
manage_ip
assert
self
.
device_id
in
ids
if
__name__
==
"__main__"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment