Merge "Fix import order in load_balancer unit tests"
This commit is contained in:
@@ -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()
|
||||
|
@@ -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 = {
|
||||
|
@@ -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 = {
|
||||
|
@@ -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()
|
||||
|
@@ -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 = {
|
||||
|
@@ -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,
|
||||
|
@@ -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',
|
||||
|
@@ -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,
|
||||
|
@@ -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 = {
|
||||
|
@@ -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 = {
|
||||
|
@@ -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 = {
|
||||
|
@@ -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',
|
||||
|
@@ -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
|
||||
|
@@ -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 = {
|
||||
|
@@ -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 = {
|
||||
|
1
tox.ini
1
tox.ini
@@ -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 =
|
||||
|
Reference in New Issue
Block a user