File tree Expand file tree Collapse file tree 1 file changed +29
-1
lines changed
test/integration/component Expand file tree Collapse file tree 1 file changed +29
-1
lines changed Original file line number Diff line number Diff line change 3636 NetworkACL ,
3737 NATRule ,
3838 Zone ,
39- StaticNATRule )
39+ StaticNATRule ,
40+ VpnCustomerGateway )
4041from marvin .lib .common import (get_domain ,
4142 get_zone ,
4243 get_template ,
@@ -182,6 +183,13 @@ def __init__(self):
182183 "domain" : {
183184 "name" : "TestDomain"
184185 },
186+ "vpn_customer_gw" : {
187+ "ipsecpsk" : "s2svpn" ,
188+ "ikepolicy" : "3des-md5" ,
189+ "ikelifetime" : "86400" ,
190+ "esppolicy" : "3des-md5" ,
191+ "esplifetime" : "3600" ,
192+ },
185193 "ostype" : 'CentOS 5.3 (64-bit)' ,
186194 # Cent OS 5.3 (64 bit)
187195 "sleep" : 60 ,
@@ -2490,3 +2498,23 @@ def test_21_deploy_vm_with_gateway_ip(self):
24902498 "Failed to create VM with first ip address in the CIDR as the vm ip"
24912499 )
24922500 return
2501+
2502+ @attr (tags = ["advanced" , "intervlan" ], required_hardware = "false" )
2503+ def test_22_vpn_customer_gw_with_hostname (self ):
2504+ """
2505+ Test to create vpn customer gateway with hostname
2506+ instead of gateway ip address
2507+ """
2508+ try :
2509+ vpnGw = VpnCustomerGateway .create (
2510+ self .apiclient ,
2511+ self .services ["vpn_customer_gw" ],
2512+ name = "test_vpn_customer_gw" ,
2513+ gateway = "GwWithHostName" ,
2514+ cidrlist = "10.1.0.0/16"
2515+ )
2516+ self .cleanup .append (vpnGw )
2517+ except Exception as e :
2518+ self .fail ("Creating vpn customer gateway with hostname\
2519+ Failed with error :%s" % e )
2520+ return
You can’t perform that action at this time.
0 commit comments