mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-6627 catch exception instead of checking response
Signed-off-by: santhosh <santhosh.edukulla@gmail.com>
Signed-off-by: Daan Hoogland <daan@onecht.net>
(cherry picked from commit afd9d4e756)
This commit is contained in:
parent
38ef939efd
commit
1b998602ec
|
|
@ -81,5 +81,5 @@ class TestPVLAN(cloudstackTestCase):
|
|||
createNetworkCmd.startipv6="fc00:1234::10"
|
||||
createNetworkCmd.endipv6="fc00:1234::20"
|
||||
err = 0
|
||||
createNetworkResponse = self.apiClient.createNetwork(createNetworkCmd)
|
||||
self.assertEqual(createNetworkResponse, FAILED, "Creating PVLAN with IPv6 should fail")
|
||||
with self.assertRaises(Exception):
|
||||
self.apiClient.createNetwork(createNetworkCmd)
|
||||
|
|
|
|||
Loading…
Reference in New Issue