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
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.tests.unit import base
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from openstack.load_balancer.v2 import amphora
|
from openstack.load_balancer.v2 import amphora
|
||||||
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
|
|
||||||
IDENTIFIER = uuid.uuid4()
|
IDENTIFIER = uuid.uuid4()
|
||||||
LB_ID = uuid.uuid4()
|
LB_ID = uuid.uuid4()
|
||||||
|
@@ -11,10 +11,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.tests.unit import base
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from openstack.load_balancer.v2 import availability_zone
|
from openstack.load_balancer.v2 import availability_zone
|
||||||
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
|
|
||||||
AVAILABILITY_ZONE_PROFILE_ID = uuid.uuid4()
|
AVAILABILITY_ZONE_PROFILE_ID = uuid.uuid4()
|
||||||
EXAMPLE = {
|
EXAMPLE = {
|
||||||
|
@@ -11,10 +11,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.tests.unit import base
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from openstack.load_balancer.v2 import availability_zone_profile
|
from openstack.load_balancer.v2 import availability_zone_profile
|
||||||
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
|
|
||||||
IDENTIFIER = uuid.uuid4()
|
IDENTIFIER = uuid.uuid4()
|
||||||
EXAMPLE = {
|
EXAMPLE = {
|
||||||
|
@@ -12,10 +12,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.tests.unit import base
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from openstack.load_balancer.v2 import flavor
|
from openstack.load_balancer.v2 import flavor
|
||||||
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
|
|
||||||
IDENTIFIER = uuid.uuid4()
|
IDENTIFIER = uuid.uuid4()
|
||||||
FLAVOR_PROFILE_ID = uuid.uuid4()
|
FLAVOR_PROFILE_ID = uuid.uuid4()
|
||||||
|
@@ -12,10 +12,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.tests.unit import base
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from openstack.load_balancer.v2 import flavor_profile
|
from openstack.load_balancer.v2 import flavor_profile
|
||||||
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
|
|
||||||
IDENTIFIER = uuid.uuid4()
|
IDENTIFIER = uuid.uuid4()
|
||||||
EXAMPLE = {
|
EXAMPLE = {
|
||||||
|
@@ -11,10 +11,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.tests.unit import base
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from openstack.load_balancer.v2 import health_monitor
|
from openstack.load_balancer.v2 import health_monitor
|
||||||
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
|
|
||||||
EXAMPLE = {
|
EXAMPLE = {
|
||||||
'admin_state_up': True,
|
'admin_state_up': True,
|
||||||
|
@@ -10,10 +10,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.tests.unit import base
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from openstack.load_balancer.v2 import l7_policy
|
from openstack.load_balancer.v2 import l7_policy
|
||||||
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
|
|
||||||
EXAMPLE = {
|
EXAMPLE = {
|
||||||
'action': 'REJECT',
|
'action': 'REJECT',
|
||||||
|
@@ -10,10 +10,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.tests.unit import base
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from openstack.load_balancer.v2 import l7_rule
|
from openstack.load_balancer.v2 import l7_rule
|
||||||
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
|
|
||||||
EXAMPLE = {
|
EXAMPLE = {
|
||||||
'admin_state_up': True,
|
'admin_state_up': True,
|
||||||
|
@@ -10,10 +10,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.tests.unit import base
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from openstack.load_balancer.v2 import listener
|
from openstack.load_balancer.v2 import listener
|
||||||
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
|
|
||||||
IDENTIFIER = 'IDENTIFIER'
|
IDENTIFIER = 'IDENTIFIER'
|
||||||
EXAMPLE = {
|
EXAMPLE = {
|
||||||
|
@@ -10,10 +10,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.tests.unit import base
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from openstack.load_balancer.v2 import member
|
from openstack.load_balancer.v2 import member
|
||||||
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
|
|
||||||
IDENTIFIER = 'IDENTIFIER'
|
IDENTIFIER = 'IDENTIFIER'
|
||||||
EXAMPLE = {
|
EXAMPLE = {
|
||||||
|
@@ -10,10 +10,11 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from openstack.tests.unit import base
|
|
||||||
import uuid
|
import uuid
|
||||||
|
|
||||||
from openstack.load_balancer.v2 import pool
|
from openstack.load_balancer.v2 import pool
|
||||||
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
|
|
||||||
IDENTIFIER = 'IDENTIFIER'
|
IDENTIFIER = 'IDENTIFIER'
|
||||||
EXAMPLE = {
|
EXAMPLE = {
|
||||||
|
@@ -12,9 +12,9 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
from openstack.load_balancer.v2 import provider
|
||||||
from openstack.tests.unit import base
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
from openstack.load_balancer.v2 import provider
|
|
||||||
|
|
||||||
EXAMPLE = {
|
EXAMPLE = {
|
||||||
'name': 'best',
|
'name': 'best',
|
||||||
|
@@ -10,8 +10,8 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import uuid
|
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
import uuid
|
||||||
|
|
||||||
from openstack.load_balancer.v2 import _proxy
|
from openstack.load_balancer.v2 import _proxy
|
||||||
from openstack.load_balancer.v2 import amphora
|
from openstack.load_balancer.v2 import amphora
|
||||||
|
@@ -13,9 +13,9 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
from openstack.load_balancer.v2 import quota
|
||||||
from openstack.tests.unit import base
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
from openstack.load_balancer.v2 import quota
|
|
||||||
|
|
||||||
IDENTIFIER = 'IDENTIFIER'
|
IDENTIFIER = 'IDENTIFIER'
|
||||||
EXAMPLE = {
|
EXAMPLE = {
|
||||||
|
@@ -10,9 +10,9 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
|
from openstack.load_balancer import version
|
||||||
from openstack.tests.unit import base
|
from openstack.tests.unit import base
|
||||||
|
|
||||||
from openstack.load_balancer import version
|
|
||||||
|
|
||||||
IDENTIFIER = 'IDENTIFIER'
|
IDENTIFIER = 'IDENTIFIER'
|
||||||
EXAMPLE = {
|
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/config/*:H306,I100,I201,I202
|
||||||
openstack/tests/unit/workflow/*:H306,I100,I201,I202
|
openstack/tests/unit/workflow/*:H306,I100,I201,I202
|
||||||
openstack/tests/unit/message/*:H306,I100,I201,I202
|
openstack/tests/unit/message/*:H306,I100,I201,I202
|
||||||
openstack/tests/unit/load_balancer/*:H306,I100,I201,I202
|
|
||||||
|
|
||||||
[flake8:local-plugins]
|
[flake8:local-plugins]
|
||||||
extension =
|
extension =
|
||||||
|
Reference in New Issue
Block a user