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
9b3939ea
Commit
9b3939ea
authored
17 years ago
by
Michael Hanselmann
Browse files
Options
Downloads
Patches
Plain Diff
Call more hooks during QA tests.
Reviewed-by: schreiberal
parent
f3299a07
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
qa/qa_daemon.py
+2
-0
2 additions, 0 deletions
qa/qa_daemon.py
qa/qa_env.py
+4
-0
4 additions, 0 deletions
qa/qa_env.py
qa/qa_os.py
+5
-0
5 additions, 0 deletions
qa/qa_os.py
qa/qa_tags.py
+3
-0
3 additions, 0 deletions
qa/qa_tags.py
with
14 additions
and
0 deletions
qa/qa_daemon.py
+
2
−
0
View file @
9b3939ea
...
...
@@ -101,6 +101,7 @@ def PrintCronWarning():
print
qa_utils
.
FormatWarning
(
msg
)
@qa_utils.DefineHook
(
'
daemon-automatic-restart
'
)
def
TestInstanceAutomaticRestart
(
node
,
instance
):
"""
Test automatic restart of instance by ganeti-watcher.
...
...
@@ -122,6 +123,7 @@ def TestInstanceAutomaticRestart(node, instance):
utils
.
ShellQuoteArgs
(
cmd
)).
wait
(),
0
)
@qa_utils.DefineHook
(
'
daemon-consecutive-failures
'
)
def
TestInstanceConsecutiveFailures
(
node
,
instance
):
"""
Test five consecutive instance failures.
...
...
This diff is collapsed.
Click to expand it.
qa/qa_env.py
+
4
−
0
View file @
9b3939ea
...
...
@@ -23,10 +23,12 @@
from
ganeti
import
utils
import
qa_config
import
qa_utils
from
qa_utils
import
AssertEqual
,
StartSSH
@qa_utils.DefineHook
(
'
env-ssh-connection
'
)
def
TestSshConnection
():
"""
Test SSH connection.
...
...
@@ -35,6 +37,7 @@ def TestSshConnection():
AssertEqual
(
StartSSH
(
node
[
'
primary
'
],
'
exit
'
).
wait
(),
0
)
@qa_utils.DefineHook
(
'
env-ganeti-commands
'
)
def
TestGanetiCommands
():
"""
Test availibility of Ganeti commands.
...
...
@@ -53,6 +56,7 @@ def TestGanetiCommands():
AssertEqual
(
StartSSH
(
node
[
'
primary
'
],
cmd
).
wait
(),
0
)
@qa_utils.DefineHook
(
'
env-icmp-ping
'
)
def
TestIcmpPing
():
"""
ICMP ping each node.
...
...
This diff is collapsed.
Click to expand it.
qa/qa_os.py
+
5
−
0
View file @
9b3939ea
...
...
@@ -36,6 +36,7 @@ _TEMP_OS_NAME = "TEMP-Ganeti-QA-OS"
_TEMP_OS_PATH
=
os
.
path
.
join
(
constants
.
OS_SEARCH_PATH
[
0
],
_TEMP_OS_NAME
)
@qa_utils.DefineHook
(
'
os-list
'
)
def
TestOsList
():
"""
gnt-os list
"""
master
=
qa_config
.
GetMasterNode
()
...
...
@@ -45,6 +46,7 @@ def TestOsList():
utils
.
ShellQuoteArgs
(
cmd
)).
wait
(),
0
)
@qa_utils.DefineHook
(
'
os-diagnose
'
)
def
TestOsDiagnose
():
"""
gnt-os diagnose
"""
master
=
qa_config
.
GetMasterNode
()
...
...
@@ -123,16 +125,19 @@ def _TestOs(mode):
_RemoveTempOs
(
node
,
dir
)
@qa_utils.DefineHook
(
'
os-valid
'
)
def
TestOsValid
():
"""
Testing valid OS definition
"""
return
_TestOs
(
1
)
@qa_utils.DefineHook
(
'
os-invalid
'
)
def
TestOsInvalid
():
"""
Testing invalid OS definition
"""
return
_TestOs
(
0
)
@qa_utils.DefineHook
(
'
os-partially-valid
'
)
def
TestOsPartiallyValid
():
"""
Testing partially valid OS definition
"""
return
_TestOs
(
2
)
This diff is collapsed.
Click to expand it.
qa/qa_tags.py
+
3
−
0
View file @
9b3939ea
...
...
@@ -55,16 +55,19 @@ def _TestTags(cmdfn):
utils
.
ShellQuoteArgs
(
cmd
)).
wait
(),
0
)
@qa_utils.DefineHook
(
'
tags-cluster
'
)
def
TestClusterTags
():
"""
gnt-cluster tags
"""
_TestTags
(
lambda
subcmd
:
[
'
gnt-cluster
'
,
subcmd
])
@qa_utils.DefineHook
(
'
tags-node
'
)
def
TestNodeTags
(
node
):
"""
gnt-node tags
"""
_TestTags
(
lambda
subcmd
:
[
'
gnt-node
'
,
subcmd
,
node
[
'
primary
'
]])
@qa_utils.DefineHook
(
'
tags-instance
'
)
def
TestInstanceTags
(
instance
):
"""
gnt-instance tags
"""
_TestTags
(
lambda
subcmd
:
[
'
gnt-instance
'
,
subcmd
,
instance
[
'
name
'
]])
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