create default network for few more server tests

Below tests are failing on multiple network found

- ServersAdminTestJSON
- ImagesOneServerTestJSON

https://b5afffe3af714f1125c3-25f3a3879427e395d97921f59eb3db3c.ssl.cf2.rackcdn.com/882316/1/gate/nova-next/3a53c36/testr_results.html

creating the default network for those test to make
sure we create and pass the isolated networkin server
create requests.

Partial-Bug: #1844568
Change-Id: I6ab630fb2cd77c9de7dcf93c02a31ff2bcdf03a1
This commit is contained in:
Ghanshyam Mann 2023-08-01 11:24:55 -07:00
parent 4025fa3c8e
commit 210d1fa84a
2 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,8 @@ CONF = config.CONF
class ServersAdminTestJSON(base.BaseV2ComputeAdminTest):
"""Tests Servers API using admin privileges"""
create_default_network = True
@classmethod
def setup_clients(cls):
super(ServersAdminTestJSON, cls).setup_clients()

View File

@ -24,6 +24,8 @@ CONF = config.CONF
class ImagesOneServerTestJSON(base.BaseV2ComputeTest):
"""Test server images API"""
create_default_network = True
@classmethod
def resource_setup(cls):
super(ImagesOneServerTestJSON, cls).resource_setup()