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
ec240e5c
Commit
ec240e5c
authored
Nov 29, 2019
by
sanshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hosts表删字段
parent
83127198
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
test_rule_get.py
WorkCase/APP/Rule/test_rule_get.py
+1
-2
hosts.py
WorkData/Argus/hosts.py
+0
-1
No files found.
WorkCase/APP/Rule/test_rule_get.py
View file @
ec240e5c
...
@@ -315,8 +315,7 @@ class TestRuleGet(object):
...
@@ -315,8 +315,7 @@ class TestRuleGet(object):
response
=
self
.
rule_get
(
token
=
self
.
token
,
manageLevel
=
3
)
response
=
self
.
rule_get
(
token
=
self
.
token
,
manageLevel
=
3
)
self
.
check_code
(
response
=
response
,
code
=
0
)
self
.
check_code
(
response
=
response
,
code
=
0
)
data
=
UtilsResponse
()
.
get_data
(
response
=
response
)
data
=
UtilsResponse
()
.
get_data
(
response
=
response
)
for
x
,
y
in
enumerate
(
data
[
"list"
]):
assert
len
(
data
[
"list"
])
>
0
assert
y
[
"name"
]
==
self
.
name
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
...
...
WorkData/Argus/hosts.py
View file @
ec240e5c
...
@@ -24,7 +24,6 @@ class Hosts(Base):
...
@@ -24,7 +24,6 @@ class Hosts(Base):
__tablename__
=
"hosts"
__tablename__
=
"hosts"
hostid
=
Column
(
Integer
,
primary_key
=
True
)
hostid
=
Column
(
Integer
,
primary_key
=
True
)
zabbix_hostid
=
Column
(
BigInteger
,
comment
=
"zabbix主机编号"
)
host_name
=
Column
(
VARCHAR
(
128
),
comment
=
"主机名"
)
host_name
=
Column
(
VARCHAR
(
128
),
comment
=
"主机名"
)
asset_code
=
Column
(
VARCHAR
(
128
),
comment
=
"资产编号"
)
asset_code
=
Column
(
VARCHAR
(
128
),
comment
=
"资产编号"
)
manage_ip
=
Column
(
VARCHAR
(
32
),
comment
=
"管理IP"
)
manage_ip
=
Column
(
VARCHAR
(
32
),
comment
=
"管理IP"
)
...
...
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