Skip to content

Commit 1ad9a57

Browse files
committed
<feature>[core]: Support migration progress info display
APIMigrateVmMsg add case Resolves: ZSTAC-53214 Change-Id: I687753233369757970616b776177776a6472656d
1 parent 70e564f commit 1ad9a57

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

test/src/test/groovy/org/zstack/test/integration/kvm/vm/migrate/MigrateVmFromDestitonHostCase.groovy

+16-13
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class MigrateVmFromDestitonHostCase extends SubCase {
6565
diskSize = SizeUnit.GIGABYTE.toByte(20)
6666
}
6767

68-
zone{
68+
zone {
6969
name = "zone"
7070
cluster {
7171
name = "cluster"
@@ -118,13 +118,13 @@ class MigrateVmFromDestitonHostCase extends SubCase {
118118
}
119119

120120
cephPrimaryStorage {
121-
name="ps"
122-
description="Test"
121+
name = "ps"
122+
description = "Test"
123123
totalCapacity = SizeUnit.GIGABYTE.toByte(100)
124-
availableCapacity= SizeUnit.GIGABYTE.toByte(100)
125-
url="ceph://pri"
126-
fsid="7ff218d9-f525-435f-8a40-3618d1772a64"
127-
monUrls=["root:password@localhost/?monPort=7777"]
124+
availableCapacity = SizeUnit.GIGABYTE.toByte(100)
125+
url = "ceph://pri"
126+
fsid = "7ff218d9-f525-435f-8a40-3618d1772a64"
127+
monUrls = ["root:password@localhost/?monPort=7777"]
128128

129129
}
130130

@@ -133,21 +133,21 @@ class MigrateVmFromDestitonHostCase extends SubCase {
133133
}
134134

135135
cephBackupStorage {
136-
name="bs"
137-
description="Test"
136+
name = "bs"
137+
description = "Test"
138138
totalCapacity = SizeUnit.GIGABYTE.toByte(100)
139-
availableCapacity= SizeUnit.GIGABYTE.toByte(100)
139+
availableCapacity = SizeUnit.GIGABYTE.toByte(100)
140140
url = "/bk"
141-
fsid ="7ff218d9-f525-435f-8a40-3618d1772a64"
141+
fsid = "7ff218d9-f525-435f-8a40-3618d1772a64"
142142
monUrls = ["root:password@localhost/?monPort=7777"]
143143

144144
image {
145145
name = "test-iso"
146-
url = "http://zstack.org/download/test.iso"
146+
url = "http://zstack.org/download/test.iso"
147147
}
148148
image {
149149
name = "image"
150-
url = "http://zstack.org/download/image.qcow2"
150+
url = "http://zstack.org/download/image.qcow2"
151151
}
152152
}
153153

@@ -234,6 +234,7 @@ class MigrateVmFromDestitonHostCase extends SubCase {
234234
assert cmd != null
235235
assert cmd.migrateFromDestination
236236
assert cmd.autoConverge
237+
assert cmd.downTime == null
237238
assert cmd.destHostIp == host.managementIp
238239
assert cmd.srcHostIp == host1.managementIp
239240
assert huuid == host.uuid
@@ -259,11 +260,13 @@ class MigrateVmFromDestitonHostCase extends SubCase {
259260
vmInstanceUuid = vm1.uuid
260261
hostUuid = host1.uuid
261262
strategy = "auto-converge"
263+
downTime = 300
262264
}
263265

264266
assert cmd != null
265267
assert !cmd.migrateFromDestination
266268
assert cmd.autoConverge
269+
assert cmd.downTime != null
267270
assert !cmd.xbzrle
268271
assert cmd.destHostIp == host1.managementIp
269272
assert cmd.srcHostIp == host.managementIp

0 commit comments

Comments
 (0)