@@ -121,7 +121,7 @@ def test_01_list_sec_storage_vm(self):
121121 # should return only ONE SSVM per zone
122122 # 2. The returned SSVM should be in Running state
123123 # 3. listSystemVM for secondarystoragevm should list publicip,
124- # privateip and link-localip
124+ # privateip, link-localip and service offering id/name
125125 # 4. The gateway programmed on the ssvm by listSystemVm should be
126126 # the same as the gateway returned by listVlanIpRanges
127127 # 5. DNS entries must match those given for the zone
@@ -188,6 +188,18 @@ def test_01_list_sec_storage_vm(self):
188188 "Check whether SSVM has public IP field"
189189 )
190190
191+ self .assertEqual (
192+ hasattr (ssvm , 'serviceofferingid' ),
193+ True ,
194+ "Check whether SSVM has service offering id field"
195+ )
196+
197+ self .assertEqual (
198+ hasattr (ssvm , 'serviceofferingname' ),
199+ True ,
200+ "Check whether SSVM has service offering name field"
201+ )
202+
191203 # Fetch corresponding ip ranges information from listVlanIpRanges
192204 ipranges_response = list_vlan_ipranges (
193205 self .apiclient ,
@@ -261,8 +273,8 @@ def test_02_list_cpvm_vm(self):
261273 # 1. listSystemVM (systemvmtype=consoleproxy) should return
262274 # at least ONE CPVM per zone
263275 # 2. The returned ConsoleProxyVM should be in Running state
264- # 3. listSystemVM for console proxy should list publicip, privateip
265- # and link-localip
276+ # 3. listSystemVM for console proxy should list publicip, privateip,
277+ # link-localip and service offering id/name
266278 # 4. The gateway programmed on the console proxy should be the same
267279 # as the gateway returned by listZones
268280 # 5. DNS entries must match those given for the zone
@@ -327,6 +339,18 @@ def test_02_list_cpvm_vm(self):
327339 True ,
328340 "Check whether CPVM has public IP field"
329341 )
342+
343+ self .assertEqual (
344+ hasattr (cpvm , 'serviceofferingid' ),
345+ True ,
346+ "Check whether CPVM has service offering id field"
347+ )
348+
349+ self .assertEqual (
350+ hasattr (cpvm , 'serviceofferingname' ),
351+ True ,
352+ "Check whether CPVM has service offering name field"
353+ )
330354 # Fetch corresponding ip ranges information from listVlanIpRanges
331355 ipranges_response = list_vlan_ipranges (
332356 self .apiclient ,
0 commit comments