File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
test/integration/component Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 2222from marvin .cloudstackTestCase import cloudstackTestCase
2323from marvin .cloudstackException import CloudstackAPIException
2424from marvin .cloudstackAPI import updateZone
25- from marvin .lib .utils import cleanup_resources
25+ from marvin .lib .utils import cleanup_resources , validateList
2626from marvin .lib .base import (Account ,
2727 VPC ,
2828 VpcOffering ,
4242 get_zone ,
4343 get_template ,
4444 list_configurations )
45+ from marvin .codes import PASS
4546import time
4647
4748
@@ -2517,4 +2518,18 @@ def test_22_vpn_customer_gw_with_hostname(self):
25172518 except Exception as e :
25182519 self .fail ("Creating vpn customer gateway with hostname\
25192520 Failed with error :%s" % e )
2521+ vpn_cgw_res = VpnCustomerGateway .list (
2522+ self .apiclient ,
2523+ id = vpnGw .id
2524+ )
2525+ self .assertEqual (
2526+ validateList (vpn_cgw_res )[0 ],
2527+ PASS ,
2528+ "Invalid response for list vpncustomer gateways"
2529+ )
2530+ self .assertEqual (
2531+ vpnGw .gateway ,
2532+ vpn_cgw_res [0 ].gateway ,
2533+ "Mismatch in vpn customer gateway names"
2534+ )
25202535 return
You can’t perform that action at this time.
0 commit comments