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
113b8d89
Commit
113b8d89
authored
17 years ago
by
Michael Hanselmann
Browse files
Options
Downloads
Patches
Plain Diff
Adapt QA tests for removed --secondary-node option.
parent
60d49723
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
qa/qa_instance.py
+7
-9
7 additions, 9 deletions
qa/qa_instance.py
with
7 additions
and
9 deletions
qa/qa_instance.py
+
7
−
9
View file @
113b8d89
...
...
@@ -43,17 +43,16 @@ def _GetGenericAddParameters():
'
--memory=%s
'
%
qa_config
.
get
(
'
mem
'
)]
def
_DiskTest
(
node
,
args
):
def
_DiskTest
(
node
,
disk_template
):
master
=
qa_config
.
GetMasterNode
()
instance
=
qa_config
.
AcquireInstance
()
try
:
cmd
=
([
'
gnt-instance
'
,
'
add
'
,
'
--os-type=%s
'
%
qa_config
.
get
(
'
os
'
),
'
--node=%s
'
%
node
[
'
primary
'
]]
+
'
--disk-template=%s
'
%
disk_template
,
'
--node=%s
'
%
node
]
+
_GetGenericAddParameters
())
if
args
:
cmd
+=
args
cmd
.
append
(
instance
[
'
name
'
])
AssertEqual
(
StartSSH
(
master
[
'
primary
'
],
...
...
@@ -66,19 +65,18 @@ def _DiskTest(node, args):
def
TestInstanceAddWithPlainDisk
(
node
):
"""
gnt-instance add -t plain
"""
return
_DiskTest
(
node
,
[
'
--disk-template=
plain
'
]
)
return
_DiskTest
(
node
[
'
primary
'
],
'
plain
'
)
def
TestInstanceAddWithLocalMirrorDisk
(
node
):
"""
gnt-instance add -t local_raid1
"""
return
_DiskTest
(
node
,
[
'
--disk-template=
local_raid1
'
]
)
return
_DiskTest
(
node
[
'
primary
'
],
'
local_raid1
'
)
def
TestInstanceAddWithRemoteRaidDisk
(
node
,
node2
):
"""
gnt-instance add -t remote_raid1
"""
return
_DiskTest
(
node
,
[
'
--disk-template=remote_raid1
'
,
'
--secondary-node=%s
'
%
node2
[
'
primary
'
]])
return
_DiskTest
(
"
%s:%s
"
%
(
node
[
'
primary
'
],
node2
[
'
primary
'
]),
'
remote_raid1
'
)
def
TestInstanceRemove
(
instance
):
...
...
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