Skip to content

Commit 95731ad

Browse files
committed
test: fix failure in test_06_purge_expunged_vm_background_task
Failures seen in apache#10006 (comment) and others. With apache#9773, the response of listManagementServers API has been changed. serviceip has been renamed to ipaddress. THis was causing not all MS getting restarted and purge b/g task not being able to run. The code handling API response in the test has been updated. Signed-off-by: Abhishek Kumar <[email protected]>
1 parent bdae23e commit 95731ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/integration/smoke/test_purge_expunged_vms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ def getManagementServerIps(self):
259259
active_server_ips = []
260260
active_server_ips.append(self.mgtSvrDetails["mgtSvrIp"])
261261
for idx, server in enumerate(servers):
262-
if server.state == 'Up' and server.serviceip != self.mgtSvrDetails["mgtSvrIp"]:
263-
active_server_ips.append(server.serviceip)
262+
if server.state == 'Up' and server.ipaddress != self.mgtSvrDetails["mgtSvrIp"]:
263+
active_server_ips.append(server.ipaddress)
264264
return active_server_ips
265265

266266
def restartAllManagementServers(self):

0 commit comments

Comments
 (0)