Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.toolbox
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
Xiaowu Zhang
slapos.toolbox
Commits
a9226941
Commit
a9226941
authored
Aug 30, 2018
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
promise: add tess for commit use '==' instead of 'is' to compare string
parent
a8526f4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
slapos/test/promise/plugin/test_check_free_disk_space.py
slapos/test/promise/plugin/test_check_free_disk_space.py
+9
-0
No files found.
slapos/test/promise/plugin/test_check_free_disk_space.py
View file @
a9226941
...
@@ -104,5 +104,14 @@ extra_config_dict = {
...
@@ -104,5 +104,14 @@ extra_config_dict = {
self
.
assertEquals
(
result
[
'result'
][
'failed'
],
True
)
self
.
assertEquals
(
result
[
'result'
][
'failed'
],
True
)
self
.
assertEquals
(
result
[
'result'
][
'message'
],
"Free disk space low: remaining 269.1 G (threshold: 291921381.0 G)"
)
self
.
assertEquals
(
result
[
'result'
][
'message'
],
"Free disk space low: remaining 269.1 G (threshold: 291921381.0 G)"
)
def
test_check_free_disk_with_unicode_string_path
(
self
):
# set path unicode
self
.
partition_dir
=
u'%s'
%
self
.
partition_dir
self
.
configureLauncher
()
self
.
launcher
.
run
()
result
=
self
.
getPromiseResult
(
self
.
promise_name
)
self
.
assertEquals
(
result
[
'result'
][
'failed'
],
False
)
self
.
assertEquals
(
result
[
'result'
][
'message'
],
"Disk usage: OK"
)
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
.
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