~ubuntu-branches/ubuntu/wily/neutron-lbaas/wily

« back to all changes in this revision

Viewing changes to neutron_lbaas/tests/tempest/v2/api/test_members.py

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2015-06-29 10:07:38 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20150629100738-yxyfnvo9xl2jhpp9
Tags: 2:7.0.0~b1-0ubuntu1
* New upstream milestone for OpenStack Liberty.
* Align (build)-depends with upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13
13
#    License for the specific language governing permissions and limitations
14
14
#    under the License.
 
15
 
 
16
from oslo_log import log as logging
 
17
from tempest_lib.common.utils import data_utils
 
18
from tempest_lib import exceptions as ex
 
19
 
 
20
from neutron_lbaas.tests.tempest.lib import config
 
21
from neutron_lbaas.tests.tempest.lib import test
15
22
from neutron_lbaas.tests.tempest.v2.api import base
16
23
 
17
 
from tempest.common.utils import data_utils
18
 
from tempest import config
19
 
from tempest import exceptions as ex
20
 
from tempest.openstack.common import log as logging
21
 
from tempest import test
22
 
 
23
24
CONF = config.CONF
24
25
 
25
26
LOG = logging.getLogger(__name__)
169
170
        self.assertRaises(ex.BadRequest, self._create_member,
170
171
                          self.pool_id, **member_opts)
171
172
 
172
 
    @test.skip_because(bug="1441512")
173
173
    @test.attr(type='negative')
174
174
    def test_create_member_invalid_tenant_id(self):
175
175
        """Test create member with invalid tenant_id"""
233
233
        self.assertRaises(ex.BadRequest, self._create_member,
234
234
                          self.pool_id, **member_opts)
235
235
 
236
 
    @test.skip_because(bug="1441512")
237
236
    @test.attr(type='negative')
238
237
    def test_create_member_empty_tenant_id(self):
239
238
        """Test create member with an empty tenant_id"""