Browse Source

Adds flavor API tests

This patch adds flavor API tests to the Octavia tempest plugin.

Depends-On: https://review.openstack.org/626819
Change-Id: I863ca500d255fe41eef2d7434e540d53b9ead903
Michael Johnson 3 months ago
parent
commit
a2d0307498

+ 4
- 0
octavia_tempest_plugin/common/constants.py View File

@@ -79,6 +79,8 @@ URL_PATH = 'url_path'
79 79
 EXPECTED_CODES = 'expected_codes'
80 80
 
81 81
 FLAVOR_DATA = 'flavor_data'
82
+ENABLED = 'enabled'
83
+FLAVOR_PROFILE_ID = 'flavor_profile_id'
82 84
 
83 85
 # Other constants
84 86
 ACTIVE = 'ACTIVE'
@@ -242,3 +244,5 @@ SHOW_AMPHORA_RESPONSE_FIELDS = [
242 244
 ]
243 245
 
244 246
 SHOW_FLAVOR_PROFILE_FIELDS = [ID, NAME, PROVIDER_NAME, FLAVOR_DATA]
247
+
248
+SHOW_FLAVOR_FIELDS = [ID, NAME, DESCRIPTION, ENABLED, FLAVOR_PROFILE_ID]

+ 45
- 0
octavia_tempest_plugin/services/load_balancer/v2/flavor_client.py View File

@@ -13,8 +13,12 @@
13 13
 #   under the License.
14 14
 #
15 15
 
16
+from oslo_log import log as logging
17
+from tempest.lib import exceptions
18
+
16 19
 from octavia_tempest_plugin.services.load_balancer.v2 import base_client
17 20
 
21
+LOG = logging.getLogger(__name__)
18 22
 Unset = base_client.Unset
19 23
 
20 24
 
@@ -216,3 +220,44 @@ class FlavorClient(base_client.BaseLBaaSClient):
216 220
                   if not.
217 221
         """
218 222
         return self._delete_obj(obj_id=flavor_id, ignore_errors=ignore_errors)
223
+
224
+    def cleanup_a_flavor(self, flavor_id):
225
+        """Delete a flavor for tempest cleanup.
226
+
227
+           We cannot use the cleanup_flavor method as flavors
228
+           do not have a provisioning_status.
229
+
230
+        :param flavor_id: The flavor ID to delete.
231
+        :raises AssertionError: if the expected_code isn't a valid http success
232
+                                response code
233
+        :raises BadRequest: If a 400 response code is received
234
+        :raises Conflict: If a 409 response code is received
235
+        :raises Forbidden: If a 403 response code is received
236
+        :raises Gone: If a 410 response code is received
237
+        :raises InvalidContentType: If a 415 response code is received
238
+        :raises InvalidHTTPResponseBody: The response body wasn't valid JSON
239
+        :raises InvalidHttpSuccessCode: if the read code isn't an expected
240
+                                        http success code
241
+        :raises NotImplemented: If a 501 response code is received
242
+        :raises OverLimit: If a 413 response code is received and over_limit is
243
+                           not in the response body
244
+        :raises RateLimitExceeded: If a 413 response code is received and
245
+                                   over_limit is in the response body
246
+        :raises ServerFault: If a 500 response code is received
247
+        :raises Unauthorized: If a 401 response code is received
248
+        :raises UnexpectedContentType: If the content-type of the response
249
+                                       isn't an expect type
250
+        :raises UnexpectedResponseCode: If a response code above 400 is
251
+                                        received and it doesn't fall into any
252
+                                        of the handled checks
253
+        :raises UnprocessableEntity: If a 422 response code is received and
254
+                                     couldn't be parsed
255
+        :returns: None if ignore_errors is True, the response status code
256
+                  if not.
257
+        """
258
+        try:
259
+            self._delete_obj(obj_id=flavor_id)
260
+        except exceptions.NotFound:
261
+            # Already gone, cleanup complete
262
+            LOG.info("Flavor %s is already gone. "
263
+                     "Cleanup considered complete.", flavor_id)

+ 419
- 0
octavia_tempest_plugin/tests/api/v2/test_flavor.py View File

@@ -0,0 +1,419 @@
1
+#    Copyright 2019 Rackspace US Inc.  All rights reserved.
2
+#
3
+#    Licensed under the Apache License, Version 2.0 (the "License"); you may
4
+#    not use this file except in compliance with the License. You may obtain
5
+#    a copy of the License at
6
+#
7
+#         http://www.apache.org/licenses/LICENSE-2.0
8
+#
9
+#    Unless required by applicable law or agreed to in writing, software
10
+#    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11
+#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12
+#    License for the specific language governing permissions and limitations
13
+#    under the License.
14
+
15
+import copy
16
+from operator import itemgetter
17
+from uuid import UUID
18
+
19
+from oslo_serialization import jsonutils
20
+from tempest import config
21
+from tempest.lib.common.utils import data_utils
22
+from tempest.lib import decorators
23
+from tempest.lib import exceptions
24
+
25
+from octavia_tempest_plugin.common import constants as const
26
+from octavia_tempest_plugin.tests import test_base
27
+
28
+CONF = config.CONF
29
+
30
+
31
+class FlavorAPITest(test_base.LoadBalancerBaseTest):
32
+    """Test the flavor object API."""
33
+
34
+    @classmethod
35
+    def resource_setup(cls):
36
+        """Setup resources needed by the tests."""
37
+        super(FlavorAPITest, cls).resource_setup()
38
+
39
+        # We have to do this here as the api_version and clients are not
40
+        # setup in time to use a decorator or the skip_checks mixin
41
+        if not cls.lb_admin_flavor_profile_client.is_version_supported(
42
+                cls.api_version, '2.6'):
43
+            return
44
+
45
+        # Create a shared flavor profile
46
+        flavor_profile_name = data_utils.rand_name(
47
+            "lb_admin_flavorprofile-setup")
48
+        flavor_data = {const.LOADBALANCER_TOPOLOGY: const.SINGLE}
49
+        flavor_data_json = jsonutils.dumps(flavor_data)
50
+
51
+        flavor_profile_kwargs = {
52
+            const.NAME: flavor_profile_name,
53
+            const.PROVIDER_NAME: CONF.load_balancer.provider,
54
+            const.FLAVOR_DATA: flavor_data_json
55
+        }
56
+
57
+        cls.flavor_profile = (
58
+            cls.lb_admin_flavor_profile_client.create_flavor_profile(
59
+                **flavor_profile_kwargs))
60
+        cls.addClassResourceCleanup(
61
+            cls.lb_admin_flavor_profile_client.cleanup_flavor_profile,
62
+            cls.flavor_profile[const.ID])
63
+        cls.flavor_profile_id = cls.flavor_profile[const.ID]
64
+
65
+    @decorators.idempotent_id('7e8f39ce-53e0-4364-8778-6da9b9a59e5a')
66
+    def test_flavor_create(self):
67
+        """Tests flavor create and basic show APIs.
68
+
69
+        * Tests that users without the loadbalancer admin role cannot
70
+          create a flavor.
71
+        * Create a fully populated flavor.
72
+        * Validate the response reflects the requested values.
73
+        """
74
+        # We have to do this here as the api_version and clients are not
75
+        # setup in time to use a decorator or the skip_checks mixin
76
+        if not self.lb_admin_flavor_client.is_version_supported(
77
+                self.api_version, '2.6'):
78
+            raise self.skipException('Flavors are only available on '
79
+                                     'Octavia API version 2.6 or newer.')
80
+        flavor_name = data_utils.rand_name("lb_admin_flavor-create")
81
+        flavor_description = data_utils.arbitrary_string(size=255)
82
+
83
+        flavor_kwargs = {
84
+            const.NAME: flavor_name,
85
+            const.DESCRIPTION: flavor_description,
86
+            const.ENABLED: True,
87
+            const.FLAVOR_PROFILE_ID: self.flavor_profile_id}
88
+
89
+        # Test that a user without the load balancer admin role cannot
90
+        # create a flavor
91
+        if CONF.load_balancer.RBAC_test_type == const.ADVANCED:
92
+            self.assertRaises(exceptions.Forbidden,
93
+                              self.os_primary.flavor_client.create_flavor,
94
+                              **flavor_kwargs)
95
+
96
+        # Happy path
97
+        flavor = self.lb_admin_flavor_client.create_flavor(**flavor_kwargs)
98
+        self.addCleanup(self.lb_admin_flavor_client.cleanup_a_flavor,
99
+                        flavor[const.ID])
100
+
101
+        UUID(flavor[const.ID])
102
+        self.assertEqual(flavor_name, flavor[const.NAME])
103
+        self.assertEqual(flavor_description, flavor[const.DESCRIPTION])
104
+        self.assertTrue(flavor[const.ENABLED])
105
+        self.assertEqual(self.flavor_profile_id,
106
+                         flavor[const.FLAVOR_PROFILE_ID])
107
+
108
+    @decorators.idempotent_id('3ef040ee-fe7e-457b-a56f-8b152f7afa3b')
109
+    def test_flavor_list(self):
110
+        """Tests flavor list API and field filtering.
111
+
112
+        * Create three flavors.
113
+        * Validates that non-admin accounts cannot list the flavors.
114
+        * List the flavors using the default sort order.
115
+        * List the flavors using descending sort order.
116
+        * List the flavors using ascending sort order.
117
+        * List the flavors returning one field at a time.
118
+        * List the flavors returning two fields.
119
+        * List the flavors filtering to one of the three.
120
+        * List the flavors filtered, one field, and sorted.
121
+        """
122
+        # We have to do this here as the api_version and clients are not
123
+        # setup in time to use a decorator or the skip_checks mixin
124
+        if not self.lb_admin_flavor_client.is_version_supported(
125
+                self.api_version, '2.6'):
126
+            raise self.skipException('Flavors are only available on '
127
+                                     'Octavia API version 2.6 or newer.')
128
+
129
+        # Create flavor 1
130
+        flavor1_name = data_utils.rand_name("lb_admin_flavor-list-1")
131
+        flavor1_description = 'A'
132
+
133
+        flavor1_kwargs = {
134
+            const.NAME: flavor1_name,
135
+            const.DESCRIPTION: flavor1_description,
136
+            const.ENABLED: True,
137
+            const.FLAVOR_PROFILE_ID: self.flavor_profile_id}
138
+
139
+        flavor1 = (self.lb_admin_flavor_client.create_flavor(**flavor1_kwargs))
140
+        self.addCleanup(
141
+            self.lb_admin_flavor_client.cleanup_a_flavor, flavor1[const.ID])
142
+
143
+        # Create flavor 2
144
+        flavor2_name = data_utils.rand_name("lb_admin_flavor-list-2")
145
+        flavor2_description = 'B'
146
+
147
+        flavor2_kwargs = {
148
+            const.NAME: flavor2_name,
149
+            const.DESCRIPTION: flavor2_description,
150
+            const.ENABLED: False,
151
+            const.FLAVOR_PROFILE_ID: self.flavor_profile_id}
152
+
153
+        flavor2 = (self.lb_admin_flavor_client.create_flavor(**flavor2_kwargs))
154
+        self.addCleanup(
155
+            self.lb_admin_flavor_client.cleanup_a_flavor, flavor2[const.ID])
156
+
157
+        # Create flavor 3
158
+        flavor3_name = data_utils.rand_name("lb_admin_flavor-list-3")
159
+        flavor3_description = 'C'
160
+
161
+        flavor3_kwargs = {
162
+            const.NAME: flavor3_name,
163
+            const.DESCRIPTION: flavor3_description,
164
+            const.ENABLED: True,
165
+            const.FLAVOR_PROFILE_ID: self.flavor_profile_id}
166
+
167
+        flavor3 = (self.lb_admin_flavor_client.create_flavor(**flavor3_kwargs))
168
+        self.addCleanup(
169
+            self.lb_admin_flavor_client.cleanup_a_flavor, flavor3[const.ID])
170
+
171
+        # default sort order (by ID) reference list
172
+        ref_id_list_asc = [flavor1[const.ID], flavor2[const.ID],
173
+                           flavor3[const.ID]]
174
+        ref_id_list_dsc = copy.deepcopy(ref_id_list_asc)
175
+        ref_id_list_asc.sort()
176
+        ref_id_list_dsc.sort(reverse=True)
177
+
178
+        # Test that a user without the load balancer role cannot
179
+        # list flavors.
180
+        if CONF.load_balancer.RBAC_test_type == const.ADVANCED:
181
+            self.assertRaises(
182
+                exceptions.Forbidden,
183
+                self.os_primary.flavor_client.list_flavors)
184
+
185
+        # Check the default sort order (by ID)
186
+        flavors = self.mem_flavor_client.list_flavors()
187
+        # Remove flavors not used in this test
188
+        flavors = [flav for flav in flavors
189
+                   if 'lb_admin_flavor-list' in flav[const.NAME]]
190
+        self.assertEqual(3, len(flavors))
191
+        self.assertEqual(ref_id_list_asc[0], flavors[0][const.ID])
192
+        self.assertEqual(ref_id_list_asc[1], flavors[1][const.ID])
193
+        self.assertEqual(ref_id_list_asc[2], flavors[2][const.ID])
194
+
195
+        # Check the descending sort order by name
196
+        flavors = self.lb_admin_flavor_client.list_flavors(
197
+            query_params='{sort}={name}:{order}'.format(
198
+                sort=const.SORT, name=const.NAME, order=const.DESC))
199
+        # Remove flavors not used in this test
200
+        flavors = [flav for flav in flavors
201
+                   if 'lb_admin_flavor-list' in flav[const.NAME]]
202
+        self.assertEqual(3, len(flavors))
203
+        self.assertEqual(flavor3_name, flavors[0][const.NAME])
204
+        self.assertEqual(flavor2_name, flavors[1][const.NAME])
205
+        self.assertEqual(flavor1_name, flavors[2][const.NAME])
206
+
207
+        # Check the ascending sort order by name
208
+        flavors = self.mem_flavor_client.list_flavors(
209
+            query_params='{sort}={name}:{order}'.format(
210
+                sort=const.SORT, name=const.NAME, order=const.ASC))
211
+        # Remove flavors not used in this test
212
+        flavors = [flav for flav in flavors
213
+                   if 'lb_admin_flavor-list' in flav[const.NAME]]
214
+        self.assertEqual(3, len(flavors))
215
+        self.assertEqual(flavor1_name, flavors[0][const.NAME])
216
+        self.assertEqual(flavor2_name, flavors[1][const.NAME])
217
+        self.assertEqual(flavor3_name, flavors[2][const.NAME])
218
+
219
+        ref_flavors = [flavor1, flavor2, flavor3]
220
+        sorted_flavors = sorted(ref_flavors, key=itemgetter(const.ID))
221
+        sorted_enabled_flavors = [flav for flav in sorted_flavors
222
+                                  if flav[const.ENABLED]]
223
+
224
+        # Test fields
225
+        for field in const.SHOW_FLAVOR_FIELDS:
226
+            flavors = self.mem_flavor_client.list_flavors(
227
+                query_params='{fields}={field}&{fields}={name}'.format(
228
+                    fields=const.FIELDS, field=field, name=const.NAME))
229
+            # Remove flavors not used in this test
230
+            flavors = [flav for flav in flavors
231
+                       if 'lb_admin_flavor-list' in flav[const.NAME]]
232
+            self.assertEqual(3, len(flavors))
233
+            self.assertEqual(sorted_flavors[0][field], flavors[0][field])
234
+            self.assertEqual(sorted_flavors[1][field], flavors[1][field])
235
+            self.assertEqual(sorted_flavors[2][field], flavors[2][field])
236
+
237
+        # Test filtering
238
+        flavor = self.mem_flavor_client.list_flavors(
239
+            query_params='{name}={flav_name}'.format(
240
+                name=const.NAME, flav_name=flavor2[const.NAME]))
241
+        self.assertEqual(1, len(flavor))
242
+        self.assertEqual(flavor2[const.ID], flavor[0][const.ID])
243
+
244
+        # Test combined params
245
+        flavors = self.mem_flavor_client.list_flavors(
246
+            query_params='{enabled}={enable}&{fields}={name}&'
247
+                         '{sort}={ID}:{desc}'.format(
248
+                             enabled=const.ENABLED,
249
+                             enable=True,
250
+                             fields=const.FIELDS, name=const.NAME,
251
+                             sort=const.SORT, ID=const.ID,
252
+                             desc=const.DESC))
253
+        # Remove flavors not used in this test
254
+        flavors = [flav for flav in flavors
255
+                   if 'lb_admin_flavor-list' in flav[const.NAME]]
256
+        self.assertEqual(2, len(flavors))
257
+        self.assertEqual(1, len(flavors[0]))
258
+        self.assertEqual(sorted_enabled_flavors[1][const.NAME],
259
+                         flavors[0][const.NAME])
260
+        self.assertEqual(sorted_enabled_flavors[0][const.NAME],
261
+                         flavors[1][const.NAME])
262
+
263
+    @decorators.idempotent_id('7492a862-4011-4924-8e81-70763f479cf8')
264
+    def test_flavor_show(self):
265
+        """Tests flavor show API.
266
+
267
+        * Create a fully populated flavor.
268
+        * Validates that non-lb-admin accounts cannot see the flavor.
269
+        * Show flavor details.
270
+        * Validate the show reflects the requested values.
271
+        """
272
+        # We have to do this here as the api_version and clients are not
273
+        # setup in time to use a decorator or the skip_checks mixin
274
+        if not self.lb_admin_flavor_client.is_version_supported(
275
+                self.api_version, '2.6'):
276
+            raise self.skipException('Flavors are only available on '
277
+                                     'Octavia API version 2.6 or newer.')
278
+        flavor_name = data_utils.rand_name("lb_admin_flavor-show")
279
+        flavor_description = data_utils.arbitrary_string(size=255)
280
+
281
+        flavor_kwargs = {
282
+            const.NAME: flavor_name,
283
+            const.DESCRIPTION: flavor_description,
284
+            const.ENABLED: True,
285
+            const.FLAVOR_PROFILE_ID: self.flavor_profile_id}
286
+
287
+        # Happy path
288
+        flavor = self.lb_admin_flavor_client.create_flavor(**flavor_kwargs)
289
+        self.addCleanup(self.lb_admin_flavor_client.cleanup_a_flavor,
290
+                        flavor[const.ID])
291
+
292
+        # Test that a user without the load balancer role cannot
293
+        # show flavor details.
294
+        if CONF.load_balancer.RBAC_test_type == const.ADVANCED:
295
+            self.assertRaises(
296
+                exceptions.Forbidden,
297
+                self.os_primary.flavor_client.show_flavor,
298
+                flavor[const.ID])
299
+
300
+        result = self.mem_flavor_client.show_flavor(flavor[const.ID])
301
+
302
+        self.assertEqual(flavor[const.ID], result[const.ID])
303
+        self.assertEqual(flavor_name, result[const.NAME])
304
+        self.assertEqual(flavor_description, result[const.DESCRIPTION])
305
+        self.assertTrue(result[const.ENABLED])
306
+        self.assertEqual(self.flavor_profile_id,
307
+                         result[const.FLAVOR_PROFILE_ID])
308
+
309
+    @decorators.idempotent_id('3d9e2820-a68e-4db9-bf94-53cbcff2dc15')
310
+    def test_flavor_update(self):
311
+        """Tests flavor update API.
312
+
313
+        * Create a fully populated flavor.
314
+        * Show flavor details.
315
+        * Validate the show reflects the initial values.
316
+        * Validates that non-admin accounts cannot update the flavor.
317
+        * Update the flavor details.
318
+        * Show flavor details.
319
+        * Validate the show reflects the updated values.
320
+        """
321
+        # We have to do this here as the api_version and clients are not
322
+        # setup in time to use a decorator or the skip_checks mixin
323
+        if not self.lb_admin_flavor_client.is_version_supported(
324
+                self.api_version, '2.6'):
325
+            raise self.skipException('Flavors are only available on '
326
+                                     'Octavia API version 2.6 or newer.')
327
+        flavor_name = data_utils.rand_name("lb_admin_flavor-update")
328
+        flavor_description = data_utils.arbitrary_string(size=255)
329
+
330
+        flavor_kwargs = {
331
+            const.NAME: flavor_name,
332
+            const.DESCRIPTION: flavor_description,
333
+            const.ENABLED: True,
334
+            const.FLAVOR_PROFILE_ID: self.flavor_profile_id}
335
+
336
+        # Happy path
337
+        flavor = self.lb_admin_flavor_client.create_flavor(**flavor_kwargs)
338
+        self.addCleanup(self.lb_admin_flavor_client.cleanup_a_flavor,
339
+                        flavor[const.ID])
340
+
341
+        flavor_name2 = data_utils.rand_name("lb_admin_flavor-update-2")
342
+        flavor_description2 = data_utils.arbitrary_string(size=255)
343
+        flavor_updated_kwargs = {
344
+            const.NAME: flavor_name2,
345
+            const.DESCRIPTION: flavor_description2,
346
+            const.ENABLED: False}
347
+
348
+        # Test that a user without the load balancer role cannot
349
+        # show flavor details.
350
+        if CONF.load_balancer.RBAC_test_type == const.ADVANCED:
351
+            self.assertRaises(
352
+                exceptions.Forbidden,
353
+                self.os_primary.flavor_client.update_flavor,
354
+                flavor[const.ID], **flavor_updated_kwargs)
355
+
356
+        updated_flavor = self.lb_admin_flavor_client.update_flavor(
357
+            flavor[const.ID], **flavor_updated_kwargs)
358
+
359
+        self.assertEqual(flavor[const.ID], updated_flavor[const.ID])
360
+        self.assertEqual(flavor_name2, updated_flavor[const.NAME])
361
+        self.assertEqual(flavor_description2,
362
+                         updated_flavor[const.DESCRIPTION])
363
+        self.assertEqual(flavor[const.FLAVOR_PROFILE_ID],
364
+                         updated_flavor[const.FLAVOR_PROFILE_ID])
365
+        self.assertFalse(updated_flavor[const.ENABLED])
366
+
367
+        result = self.mem_flavor_client.show_flavor(flavor[const.ID])
368
+
369
+        self.assertEqual(flavor[const.ID], result[const.ID])
370
+        self.assertEqual(flavor_name2, result[const.NAME])
371
+        self.assertEqual(flavor_description2,
372
+                         result[const.DESCRIPTION])
373
+        self.assertEqual(flavor[const.FLAVOR_PROFILE_ID],
374
+                         result[const.FLAVOR_PROFILE_ID])
375
+        self.assertFalse(result[const.ENABLED])
376
+
377
+    @decorators.idempotent_id('dfe9173a-26f3-4bba-9e69-d2b817ff2b86')
378
+    def test_flavor_delete(self):
379
+        """Tests flavor create and delete APIs.
380
+
381
+        * Creates a flavor.
382
+        * Validates that other accounts cannot delete the flavor.
383
+        * Deletes the flavor.
384
+        * Validates the flavor no longer exists.
385
+        """
386
+        # We have to do this here as the api_version and clients are not
387
+        # setup in time to use a decorator or the skip_checks mixin
388
+        if not self.lb_admin_flavor_client.is_version_supported(
389
+                self.api_version, '2.6'):
390
+            raise self.skipException('Flavors are only available on '
391
+                                     'Octavia API version 2.6 or newer.')
392
+        flavor_name = data_utils.rand_name("lb_admin_flavor-delete")
393
+        flavor_description = data_utils.arbitrary_string(size=255)
394
+
395
+        flavor_kwargs = {
396
+            const.NAME: flavor_name,
397
+            const.DESCRIPTION: flavor_description,
398
+            const.ENABLED: True,
399
+            const.FLAVOR_PROFILE_ID: self.flavor_profile_id}
400
+
401
+        # Happy path
402
+        flavor = self.lb_admin_flavor_client.create_flavor(**flavor_kwargs)
403
+        self.addCleanup(self.lb_admin_flavor_client.cleanup_a_flavor,
404
+                        flavor[const.ID])
405
+
406
+        # Test that a user without the load balancer admin role cannot
407
+        # delete a flavor.
408
+        if CONF.load_balancer.RBAC_test_type == const.ADVANCED:
409
+            self.assertRaises(
410
+                exceptions.Forbidden,
411
+                self.os_primary.flavor_client.delete_flavor,
412
+                flavor[const.ID])
413
+
414
+        # Happy path
415
+        self.lb_admin_flavor_client.delete_flavor(flavor[const.ID])
416
+
417
+        self.assertRaises(exceptions.NotFound,
418
+                          self.lb_admin_flavor_client.show_flavor,
419
+                          flavor[const.ID])

+ 2
- 0
octavia_tempest_plugin/tests/test_base.py View File

@@ -124,6 +124,8 @@ class LoadBalancerBaseTest(test.BaseTestCase):
124 124
         cls.mem_amphora_client = cls.os_roles_lb_member.amphora_client
125 125
         cls.lb_admin_flavor_profile_client = (
126 126
             cls.os_roles_lb_admin.flavor_profile_client)
127
+        cls.lb_admin_flavor_client = cls.os_roles_lb_admin.flavor_client
128
+        cls.mem_flavor_client = cls.os_roles_lb_member.flavor_client
127 129
 
128 130
     @classmethod
129 131
     def resource_setup(cls):

Loading…
Cancel
Save