Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-ganeti
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-ganeti
Commits
4379b1fa
Commit
4379b1fa
authored
17 years ago
by
Michael Hanselmann
Browse files
Options
Downloads
Patches
Plain Diff
Add QA test for “gnt-instance console”
Reviewed-by: iustinp
parent
51c6e7b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
qa/ganeti-qa.py
+3
-0
3 additions, 0 deletions
qa/ganeti-qa.py
qa/qa-sample.yaml
+4
-0
4 additions, 0 deletions
qa/qa-sample.yaml
qa/qa_instance.py
+10
-0
10 additions, 0 deletions
qa/qa_instance.py
with
17 additions
and
0 deletions
qa/ganeti-qa.py
+
3
−
0
View file @
4379b1fa
...
@@ -143,6 +143,9 @@ def RunCommonInstanceTests(instance):
...
@@ -143,6 +143,9 @@ def RunCommonInstanceTests(instance):
if
qa_config
.
TestEnabled
(
'
instance-modify
'
):
if
qa_config
.
TestEnabled
(
'
instance-modify
'
):
RunTest
(
qa_instance
.
TestInstanceModify
,
instance
)
RunTest
(
qa_instance
.
TestInstanceModify
,
instance
)
if
qa_config
.
TestEnabled
(
'
instance-console
'
):
RunTest
(
qa_instance
.
TestInstanceConsole
,
instance
)
if
qa_config
.
TestEnabled
(
'
instance-reinstall
'
):
if
qa_config
.
TestEnabled
(
'
instance-reinstall
'
):
RunTest
(
qa_instance
.
TestInstanceShutdown
,
instance
)
RunTest
(
qa_instance
.
TestInstanceShutdown
,
instance
)
RunTest
(
qa_instance
.
TestInstanceReinstall
,
instance
)
RunTest
(
qa_instance
.
TestInstanceReinstall
,
instance
)
...
...
This diff is collapsed.
Click to expand it.
qa/qa-sample.yaml
+
4
−
0
View file @
4379b1fa
...
@@ -64,6 +64,10 @@ tests:
...
@@ -64,6 +64,10 @@ tests:
instance-automatic-restart
:
False
instance-automatic-restart
:
False
instance-consecutive-failures
:
False
instance-consecutive-failures
:
False
# This test might fail with certain hypervisor types, depending on whether
# they support the `gnt-instance console' command.
instance-console
:
False
# Make sure not to include the disk(s) required for Dom0 to be included in
# Make sure not to include the disk(s) required for Dom0 to be included in
# the volume group used for instances. Otherwise the whole system may stop
# the volume group used for instances. Otherwise the whole system may stop
# working until restarted.
# working until restarted.
...
...
This diff is collapsed.
Click to expand it.
qa/qa_instance.py
+
10
−
0
View file @
4379b1fa
...
@@ -184,6 +184,16 @@ def TestInstanceList():
...
@@ -184,6 +184,16 @@ def TestInstanceList():
utils
.
ShellQuoteArgs
(
cmd
)).
wait
(),
0
)
utils
.
ShellQuoteArgs
(
cmd
)).
wait
(),
0
)
@qa_utils.DefineHook
(
'
instance-console
'
)
def
TestInstanceConsole
(
instance
):
"""
gnt-instance console
"""
master
=
qa_config
.
GetMasterNode
()
cmd
=
[
'
gnt-instance
'
,
'
console
'
,
'
--show-cmd
'
,
instance
[
'
name
'
]]
AssertEqual
(
StartSSH
(
master
[
'
primary
'
],
utils
.
ShellQuoteArgs
(
cmd
)).
wait
(),
0
)
@qa_utils.DefineHook
(
'
backup-export
'
)
@qa_utils.DefineHook
(
'
backup-export
'
)
def
TestInstanceExport
(
instance
,
node
):
def
TestInstanceExport
(
instance
,
node
):
"""
gnt-backup export
"""
"""
gnt-backup export
"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment