Add a default network when creating a server
If a new server is created without defining a network, Nova will retrieve the available networks for the corresponding project. In case of having more than one network, Nova raises the exception "NetworkAmbiguous", informing that in case of multiple networks found, one must be selected in the call. This error has been detected in "ServersNegativeTestJSON" test cases. Change-Id: I71333a45982fc0b6b155d68e96640a9db3d41e4a Closes-Bug: #1844568
This commit is contained in:
parent
39f5153ff9
commit
58dcbc0667
|
@ -46,6 +46,11 @@ class ServersNegativeTestJSON(base.BaseV2ComputeTest):
|
|||
# server_check_teardown should be called after super's tearDown.
|
||||
self.server_check_teardown()
|
||||
|
||||
@classmethod
|
||||
def setup_credentials(cls):
|
||||
cls.set_network_resources(network=True, subnet=True)
|
||||
super(ServersNegativeTestJSON, cls).setup_credentials()
|
||||
|
||||
@classmethod
|
||||
def setup_clients(cls):
|
||||
super(ServersNegativeTestJSON, cls).setup_clients()
|
||||
|
|
Loading…
Reference in New Issue