Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
9df6d173
Commit
9df6d173
authored
Aug 31, 2007
by
Michael Hanselmann
Browse files
Test “gnt-node volumes”.
Reviewed-by: iustinp
parent
61bf23ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
testing/ganeti.qa.py
View file @
9df6d173
...
...
@@ -441,6 +441,13 @@ def TestNodeInfo():
cmd
=
[
'gnt-node'
,
'info'
]
AssertEqual
(
StartSSH
(
GetMasterNode
()[
'primary'
],
utils
.
ShellQuoteArgs
(
cmd
)).
wait
(),
0
)
def
TestNodeVolumes
():
"""gnt-node volumes"""
cmd
=
[
'gnt-node'
,
'volumes'
]
AssertEqual
(
StartSSH
(
GetMasterNode
()[
'primary'
],
utils
.
ShellQuoteArgs
(
cmd
)).
wait
(),
0
)
# }}}
# {{{ Instance tests
...
...
@@ -651,7 +658,6 @@ def TestUploadKnownHostsFile(localpath):
AssertEqual
(
StartSSH
(
master
[
'primary'
],
utils
.
ShellQuoteArgs
(
cmd
)).
wait
(),
0
)
raise
# }}}
# {{{ Main program
...
...
@@ -732,6 +738,9 @@ if __name__ == '__main__':
if
TestEnabled
(
'instance-consecutive-failures'
):
RunTest
(
TestInstanceConsecutiveFailures
,
node
,
instance
)
if
TestEnabled
(
'node-volumes'
):
RunTest
(
TestNodeVolumes
)
RunTest
(
TestInstanceRemove
,
instance
)
del
instance
...
...
@@ -743,6 +752,9 @@ if __name__ == '__main__':
if
TestEnabled
(
'instance-info'
):
RunTest
(
TestInstanceInfo
,
instance
)
if
TestEnabled
(
'node-volumes'
):
RunTest
(
TestNodeVolumes
)
RunTest
(
TestInstanceRemove
,
instance
)
del
instance
...
...
@@ -759,6 +771,9 @@ if __name__ == '__main__':
if
TestEnabled
(
'instance-failover'
):
RunTest
(
TestInstanceFailover
,
instance
)
if
TestEnabled
(
'node-volumes'
):
RunTest
(
TestNodeVolumes
)
RunTest
(
TestInstanceRemove
,
instance
)
del
instance
finally
:
...
...
testing/qa-sample.yaml
View file @
9df6d173
...
...
@@ -34,6 +34,7 @@ tests:
cluster-destroy
:
True
node-info
:
True
node-volumes
:
True
instance-add-plain-disk
:
True
instance-add-local-mirror-disk
:
True
...
...
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