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
8a4e8898
Commit
8a4e8898
authored
16 years ago
by
Michael Hanselmann
Browse files
Options
Downloads
Patches
Plain Diff
Forward-port: Add QA tests for “gnt-instance reboot”
Reviewed-by: ultrotter
parent
7910e7a5
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
+1
-0
1 addition, 0 deletions
qa/qa-sample.yaml
qa/qa_instance.py
+12
-0
12 additions, 0 deletions
qa/qa_instance.py
with
16 additions
and
0 deletions
qa/ganeti-qa.py
+
3
−
0
View file @
8a4e8898
...
@@ -151,6 +151,9 @@ def RunCommonInstanceTests(instance):
...
@@ -151,6 +151,9 @@ def RunCommonInstanceTests(instance):
RunTest
(
qa_instance
.
TestInstanceReinstall
,
instance
)
RunTest
(
qa_instance
.
TestInstanceReinstall
,
instance
)
RunTest
(
qa_instance
.
TestInstanceStartup
,
instance
)
RunTest
(
qa_instance
.
TestInstanceStartup
,
instance
)
if
qa_config
.
TestEnabled
(
'
instance-reboot
'
):
RunTest
(
qa_instance
.
TestInstanceReboot
,
instance
)
if
qa_config
.
TestEnabled
(
'
tags
'
):
if
qa_config
.
TestEnabled
(
'
tags
'
):
RunTest
(
qa_tags
.
TestInstanceTags
,
instance
)
RunTest
(
qa_tags
.
TestInstanceTags
,
instance
)
...
...
This diff is collapsed.
Click to expand it.
qa/qa-sample.yaml
+
1
−
0
View file @
8a4e8898
...
@@ -61,6 +61,7 @@ tests:
...
@@ -61,6 +61,7 @@ tests:
instance-export
:
True
instance-export
:
True
instance-import
:
True
instance-import
:
True
instance-reinstall
:
True
instance-reinstall
:
True
instance-reboot
:
True
instance-shutdown
:
True
instance-shutdown
:
True
instance-automatic-restart
:
False
instance-automatic-restart
:
False
instance-consecutive-failures
:
False
instance-consecutive-failures
:
False
...
...
This diff is collapsed.
Click to expand it.
qa/qa_instance.py
+
12
−
0
View file @
8a4e8898
...
@@ -111,6 +111,18 @@ def TestInstanceShutdown(instance):
...
@@ -111,6 +111,18 @@ def TestInstanceShutdown(instance):
utils
.
ShellQuoteArgs
(
cmd
)).
wait
(),
0
)
utils
.
ShellQuoteArgs
(
cmd
)).
wait
(),
0
)
@qa_utils.DefineHook
(
'
instance-reboot
'
)
def
TestInstanceReboot
(
instance
):
"""
gnt-instance reboot
"""
master
=
qa_config
.
GetMasterNode
()
for
reboottype
in
[
"
soft
"
,
"
hard
"
,
"
full
"
]:
cmd
=
[
'
gnt-instance
'
,
'
reboot
'
,
'
--type=%s
'
%
reboottype
,
instance
[
'
name
'
]]
AssertEqual
(
StartSSH
(
master
[
'
primary
'
],
utils
.
ShellQuoteArgs
(
cmd
)).
wait
(),
0
)
@qa_utils.DefineHook
(
'
instance-reinstall
'
)
@qa_utils.DefineHook
(
'
instance-reinstall
'
)
def
TestInstanceReinstall
(
instance
):
def
TestInstanceReinstall
(
instance
):
"""
gnt-instance reinstall
"""
"""
gnt-instance reinstall
"""
...
...
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