Merge "Fix import order in load_balancer unit tests"

This commit is contained in:
Zuul
2021-05-10 15:01:40 +00:00
committed by Gerrit Code Review
16 changed files with 26 additions and 16 deletions

View File

@@ -12,10 +12,11 @@
# License for the specific language governing permissions and limitations
# under the License.
from openstack.tests.unit import base
import uuid
from openstack.load_balancer.v2 import amphora
from openstack.tests.unit import base
IDENTIFIER = uuid.uuid4()
LB_ID = uuid.uuid4()

View File

@@ -11,10 +11,11 @@
# License for the specific language governing permissions and limitations
# under the License.
from openstack.tests.unit import base
import uuid
from openstack.load_balancer.v2 import availability_zone
from openstack.tests.unit import base
AVAILABILITY_ZONE_PROFILE_ID = uuid.uuid4()
EXAMPLE = {

View File

@@ -11,10 +11,11 @@
# License for the specific language governing permissions and limitations
# under the License.
from openstack.tests.unit import base
import uuid
from openstack.load_balancer.v2 import availability_zone_profile
from openstack.tests.unit import base
IDENTIFIER = uuid.uuid4()
EXAMPLE = {

View File

@@ -12,10 +12,11 @@
# License for the specific language governing permissions and limitations
# under the License.
from openstack.tests.unit import base
import uuid
from openstack.load_balancer.v2 import flavor
from openstack.tests.unit import base
IDENTIFIER = uuid.uuid4()
FLAVOR_PROFILE_ID = uuid.uuid4()

View File

@@ -12,10 +12,11 @@
# License for the specific language governing permissions and limitations
# under the License.
from openstack.tests.unit import base
import uuid
from openstack.load_balancer.v2 import flavor_profile
from openstack.tests.unit import base
IDENTIFIER = uuid.uuid4()
EXAMPLE = {

View File

@@ -11,10 +11,11 @@
# License for the specific language governing permissions and limitations
# under the License.
from openstack.tests.unit import base
import uuid
from openstack.load_balancer.v2 import health_monitor
from openstack.tests.unit import base
EXAMPLE = {
'admin_state_up': True,

View File

@@ -10,10 +10,11 @@
# License for the specific language governing permissions and limitations
# under the License.
from openstack.tests.unit import base
import uuid
from openstack.load_balancer.v2 import l7_policy
from openstack.tests.unit import base
EXAMPLE = {
'action': 'REJECT',

View File

@@ -10,10 +10,11 @@
# License for the specific language governing permissions and limitations
# under the License.
from openstack.tests.unit import base
import uuid
from openstack.load_balancer.v2 import l7_rule
from openstack.tests.unit import base
EXAMPLE = {
'admin_state_up': True,

View File

@@ -10,10 +10,11 @@
# License for the specific language governing permissions and limitations
# under the License.
from openstack.tests.unit import base
import uuid
from openstack.load_balancer.v2 import listener
from openstack.tests.unit import base
IDENTIFIER = 'IDENTIFIER'
EXAMPLE = {

View File

@@ -10,10 +10,11 @@
# License for the specific language governing permissions and limitations
# under the License.
from openstack.tests.unit import base
import uuid
from openstack.load_balancer.v2 import member
from openstack.tests.unit import base
IDENTIFIER = 'IDENTIFIER'
EXAMPLE = {

View File

@@ -10,10 +10,11 @@
# License for the specific language governing permissions and limitations
# under the License.
from openstack.tests.unit import base
import uuid
from openstack.load_balancer.v2 import pool
from openstack.tests.unit import base
IDENTIFIER = 'IDENTIFIER'
EXAMPLE = {

View File

@@ -12,9 +12,9 @@
# License for the specific language governing permissions and limitations
# under the License.
from openstack.load_balancer.v2 import provider
from openstack.tests.unit import base
from openstack.load_balancer.v2 import provider
EXAMPLE = {
'name': 'best',

View File

@@ -10,8 +10,8 @@
# License for the specific language governing permissions and limitations
# under the License.
import uuid
from unittest import mock
import uuid
from openstack.load_balancer.v2 import _proxy
from openstack.load_balancer.v2 import amphora

View File

@@ -13,9 +13,9 @@
# License for the specific language governing permissions and limitations
# under the License.
from openstack.load_balancer.v2 import quota
from openstack.tests.unit import base
from openstack.load_balancer.v2 import quota
IDENTIFIER = 'IDENTIFIER'
EXAMPLE = {

View File

@@ -10,9 +10,9 @@
# License for the specific language governing permissions and limitations
# under the License.
from openstack.load_balancer import version
from openstack.tests.unit import base
from openstack.load_balancer import version
IDENTIFIER = 'IDENTIFIER'
EXAMPLE = {

View File

@@ -131,7 +131,6 @@ per-file-ignores =
openstack/tests/unit/config/*:H306,I100,I201,I202
openstack/tests/unit/workflow/*:H306,I100,I201,I202
openstack/tests/unit/message/*:H306,I100,I201,I202
openstack/tests/unit/load_balancer/*:H306,I100,I201,I202
[flake8:local-plugins]
extension =