Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nirina Malard
slapos
Commits
d6b0747e
Commit
d6b0747e
authored
Feb 24, 2020
by
Bryton Lacquement
🚪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kvm/test: use correct test assertions
parent
c02e52e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
software/kvm/test/test.py
software/kvm/test/test.py
+8
-8
No files found.
software/kvm/test/test.py
View file @
d6b0747e
...
...
@@ -164,8 +164,8 @@ class TestAccessDefault(MonitorAccessMixin, InstanceTestCase):
httplib
.
OK
,
result
.
status_code
)
self
.
assert
True
(
'<title>noVNC</title>'
in
result
.
text
)
self
.
assert
False
(
'url-additional'
in
connection_parameter_dict
)
self
.
assert
In
(
'<title>noVNC</title>'
,
result
.
text
)
self
.
assert
NotIn
(
'url-additional'
,
connection_parameter_dict
)
@
skipUnlessKvm
...
...
@@ -188,7 +188,7 @@ class TestAccessDefaultAdditional(MonitorAccessMixin, InstanceTestCase):
httplib
.
OK
,
result
.
status_code
)
self
.
assert
True
(
'<title>noVNC</title>'
in
result
.
text
)
self
.
assert
In
(
'<title>noVNC</title>'
,
result
.
text
)
result
=
requests
.
get
(
connection_parameter_dict
[
'url-additional'
],
verify
=
False
)
...
...
@@ -196,7 +196,7 @@ class TestAccessDefaultAdditional(MonitorAccessMixin, InstanceTestCase):
httplib
.
OK
,
result
.
status_code
)
self
.
assert
True
(
'<title>noVNC</title>'
in
result
.
text
)
self
.
assert
In
(
'<title>noVNC</title>'
,
result
.
text
)
@
skipUnlessKvm
...
...
@@ -226,8 +226,8 @@ class TestAccessKvmCluster(MonitorAccessMixin, InstanceTestCase):
httplib
.
OK
,
result
.
status_code
)
self
.
assert
True
(
'<title>noVNC</title>'
in
result
.
text
)
self
.
assert
False
(
'kvm0-url-additional'
in
connection_parameter_dict
)
self
.
assert
In
(
'<title>noVNC</title>'
,
result
.
text
)
self
.
assert
NotIn
(
'kvm0-url-additional'
,
connection_parameter_dict
)
@
skipUnlessKvm
...
...
@@ -260,7 +260,7 @@ class TestAccessKvmClusterAdditional(MonitorAccessMixin, InstanceTestCase):
httplib
.
OK
,
result
.
status_code
)
self
.
assert
True
(
'<title>noVNC</title>'
in
result
.
text
)
self
.
assert
In
(
'<title>noVNC</title>'
,
result
.
text
)
result
=
requests
.
get
(
connection_parameter_dict
[
'kvm0-url-additional'
],
verify
=
False
)
...
...
@@ -268,7 +268,7 @@ class TestAccessKvmClusterAdditional(MonitorAccessMixin, InstanceTestCase):
httplib
.
OK
,
result
.
status_code
)
self
.
assert
True
(
'<title>noVNC</title>'
in
result
.
text
)
self
.
assert
In
(
'<title>noVNC</title>'
,
result
.
text
)
@
skipUnlessKvm
...
...
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