mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-6627 catch exception instead of checking response
Signed-off-by: santhosh <santhosh.edukulla@gmail.com> Signed-off-by: Daan Hoogland <daan@onecht.net>
This commit is contained in:
parent
7ae784ba3c
commit
f03e8a6f72
@ -77,5 +77,5 @@ class TestPVLAN(cloudstackTestCase):
|
|||||||
createNetworkCmd.startipv6="fc00:1234::10"
|
createNetworkCmd.startipv6="fc00:1234::10"
|
||||||
createNetworkCmd.endipv6="fc00:1234::20"
|
createNetworkCmd.endipv6="fc00:1234::20"
|
||||||
err = 0
|
err = 0
|
||||||
createNetworkResponse = self.apiClient.createNetwork(createNetworkCmd)
|
with self.assertRaises(Exception):
|
||||||
self.assertEqual(createNetworkResponse, FAILED, "Creating PVLAN with IPv6 should fail")
|
self.apiClient.createNetwork(createNetworkCmd)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user