Here are the examples of the python api tempest.lib.ex.BadRequest taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
199 Examples
3
Example 1
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_update_health_monitor_empty_expected_codes
Function: test_update_health_monitor_empty_expected_codes
@test.attr(type='negative')
def test_update_health_monitor_empty_expected_codes(self):
hm = self._create_health_monitor(**self.create_basic_hm_kwargs)
self.assertRaises(ex.BadRequest,
self._update_health_monitor,
hm.get('id'), expected_codes='')
3
Example 2
Project: neutron-lbaas Source File: test_listeners_non_admin.py
Function: test_create_listener_invalid_protocol
Function: test_create_listener_invalid_protocol
@test.attr(type='negative')
def test_create_listener_invalid_protocol(self):
"""Test create listener with an invalid protocol"""
self.assertRaises(ex.BadRequest,
self._create_listener,
loadbalancer_id=self.load_balancer_id,
protocol_port=self.port,
protocol="UDP")
self._check_status_tree(load_balancer_id=self.load_balancer_id,
listener_ids=[self.listener_id])
3
Example 3
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_empty_max_url_path
Function: test_create_health_monitor_empty_max_url_path
@test.attr(type='negative')
def test_create_health_monitor_empty_max_url_path(self):
"""Test create health monitor with empty url_path"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, max_retries=10, timeout=5,
pool_id=self.pool.get('id'), url_path='')
3
Example 4
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_update_health_monitor_empty_timeout
Function: test_update_health_monitor_empty_timeout
@test.attr(type='negative')
def test_update_health_monitor_empty_timeout(self):
hm = self._create_health_monitor(**self.create_basic_hm_kwargs)
self.assertRaises(ex.BadRequest,
self._update_health_monitor,
hm.get('id'), timeout='')
3
Example 5
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_update_health_monitor_invalid_delay
Function: test_update_health_monitor_invalid_delay
@test.attr(type='negative')
def test_update_health_monitor_invalid_delay(self):
hm = self._create_health_monitor(**self.create_basic_hm_kwargs)
self.assertRaises(ex.BadRequest,
self._update_health_monitor,
hm.get('id'), delay='blah')
3
Example 6
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_empty_max_retries
Function: test_create_health_monitor_empty_max_retries
@test.attr(type='negative')
def test_create_health_monitor_empty_max_retries(self):
"""Test create health monitor with empty max_retries"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, max_retries='', timeout=5,
pool_id=self.pool.get('id'))
3
Example 7
Project: neutron-lbaas Source File: test_listeners_non_admin.py
Function: test_create_listener_missing_field_loadbalancer
Function: test_create_listener_missing_field_loadbalancer
@test.attr(type='negative')
def test_create_listener_missing_field_loadbalancer(self):
"""Test create listener with a missing required field loadbalancer"""
self.assertRaises(ex.BadRequest,
self._create_listener,
protocol_port=self.port,
protocol=self.protocol)
self._check_status_tree(load_balancer_id=self.load_balancer_id,
listener_ids=[self.listener_id])
3
Example 8
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_invalid_pool_id
Function: test_create_health_monitor_invalid_pool_id
@test.attr(type='negative')
def test_create_health_monitor_invalid_pool_id(self):
"""Test create health monitor with invalid pool id"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, max_retries=10, timeout=5,
pool_id='blah')
3
Example 9
Project: neutron-lbaas Source File: test_listeners_non_admin.py
Function: test_create_listener_invalid_tenant_id
Function: test_create_listener_invalid_tenant_id
@test.attr(type='negative')
def test_create_listener_invalid_tenant_id(self):
"""Test create listener with an invalid tenant id"""
self.assertRaises(ex.BadRequest,
self._create_listener,
loadbalancer_id=self.load_balancer_id,
protocol_port=self.port,
protocol=self.protocol,
tenant_id="&^%123")
self._check_status_tree(load_balancer_id=self.load_balancer_id,
listener_ids=[self.listener_id])
3
Example 10
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_invalid_expected_codes
Function: test_create_health_monitor_invalid_expected_codes
@test.attr(type='negative')
def test_create_health_monitor_invalid_expected_codes(self):
"""Test if a non_admin user can create a health monitor with invalid
expected_codes
"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, max_retries=10, timeout=5,
pool_id=self.pool.get('id'), expected_codes='blah'
)
3
Example 11
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_update_health_monitor_empty_admin_state_up
Function: test_update_health_monitor_empty_admin_state_up
@test.attr(type='negative')
def test_update_health_monitor_empty_admin_state_up(self):
hm = self._create_health_monitor(**self.create_basic_hm_kwargs)
self.assertRaises(ex.BadRequest,
self._update_health_monitor,
hm.get('id'), admin_state_up='')
3
Example 12
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_update_health_monitor_invalid_max_retries
Function: test_update_health_monitor_invalid_max_retries
@test.attr(type='negative')
def test_update_health_monitor_invalid_max_retries(self):
hm = self._create_health_monitor(**self.create_basic_hm_kwargs)
self.assertRaises(ex.BadRequest,
self._update_health_monitor,
hm.get('id'), max_retries='blah')
3
Example 13
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_empty_delay
Function: test_create_health_monitor_empty_delay
@test.attr(type='negative')
def test_create_health_monitor_empty_delay(self):
"""Test create health monitor with empty delay"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay='', max_retries=10, timeout=5,
pool_id=self.pool.get('id'))
3
Example 14
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_update_health_monitor_empty_empty_http_method
Function: test_update_health_monitor_empty_empty_http_method
@test.attr(type='negative')
def test_update_health_monitor_empty_empty_http_method(self):
hm = self._create_health_monitor(**self.create_basic_hm_kwargs)
self.assertRaises(ex.BadRequest,
self._update_health_monitor,
hm.get('id'), http_method='')
3
Example 15
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_invalid_max_retries
Function: test_create_health_monitor_invalid_max_retries
@test.attr(type='negative')
def test_create_health_monitor_invalid_max_retries(self):
"""Test create health monitor with invalid max_retries"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, max_retries='blah', timeout=5,
pool_id=self.pool.get('id'))
3
Example 16
Project: neutron-lbaas Source File: test_health_monitor_admin.py
Function: test_create_health_monitor_empty_tenant_id_field
Function: test_create_health_monitor_empty_tenant_id_field
@test.attr(type='negative')
def test_create_health_monitor_empty_tenant_id_field(self):
"""
Test with admin user creating health monitor with an empty tenant id
field should fail.
"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, max_retries=10,
timeout=5,
pool_id=self.pool.get('id'),
tenant_id="")
3
Example 17
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_empty_max_admin_state_up
Function: test_create_health_monitor_empty_max_admin_state_up
@test.attr(type='negative')
def test_create_health_monitor_empty_max_admin_state_up(self):
"""Test create health monitor with empty admin_state_up"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, max_retries=10, timeout=5,
pool_id=self.pool.get('id'), admin_state_up='')
3
Example 18
Project: neutron-lbaas Source File: test_listeners_non_admin.py
Function: test_create_listener_missing_field_protocol_port
Function: test_create_listener_missing_field_protocol_port
@test.attr(type='negative')
def test_create_listener_missing_field_protocol_port(self):
"""Test create listener with a missing required field protocol_port"""
self.assertRaises(ex.BadRequest,
self._create_listener,
loadbalancer_id=self.load_balancer_id,
protocol=self.protocol)
self._check_status_tree(load_balancer_id=self.load_balancer_id,
listener_ids=[self.listener_id])
3
Example 19
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_missing_required_field_pool_id
Function: test_create_health_monitor_missing_required_field_pool_id
@test.attr(type='smoke')
def test_create_health_monitor_missing_required_field_pool_id(self):
"""Test if a non_admin user can create a health monitor with pool_id
missing
"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, max_retries=10, timeout=5)
3
Example 20
Project: neutron-lbaas Source File: test_listeners_non_admin.py
Function: test_create_listener_invalid_admin_state_up
Function: test_create_listener_invalid_admin_state_up
@test.attr(type='negative')
def test_create_listener_invalid_admin_state_up(self):
"""Test update listener with an invalid admin_state_up"""
self.assertRaises(ex.BadRequest,
self._create_listener,
protocol_port=self.port,
protocol=self.protocol,
admin_state_up="abc123")
self._check_status_tree(load_balancer_id=self.load_balancer_id,
listener_ids=[self.listener_id])
3
Example 21
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_update_health_monitor_invalid_attribute
Function: test_update_health_monitor_invalid_attribute
@test.attr(type='negative')
def test_update_health_monitor_invalid_attribute(self):
hm = self._create_health_monitor(**self.create_basic_hm_kwargs)
self.assertRaises(ex.BadRequest,
self._update_health_monitor,
hm.get('id'), max_retries='blue')
3
Example 22
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_update_health_monitor_invalid_admin_state_up
Function: test_update_health_monitor_invalid_admin_state_up
@test.attr(type='negative')
def test_update_health_monitor_invalid_admin_state_up(self):
hm = self._create_health_monitor(**self.create_basic_hm_kwargs)
self.assertRaises(ex.BadRequest,
self._update_health_monitor,
hm.get('id'), admin_state_up='blah')
3
Example 23
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_invalid_tenant_id
Function: test_create_health_monitor_invalid_tenant_id
@test.attr(type='negative')
def test_create_health_monitor_invalid_tenant_id(self):
"""Test create health monitor with invalid tenant_id"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
tenant_id='blah',
type='HTTP', delay=3, max_retries=10, timeout=5,
pool_id=self.pool.get('id'))
3
Example 24
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_update_health_monitor_invalid_timeout
Function: test_update_health_monitor_invalid_timeout
@test.attr(type='negative')
def test_update_health_monitor_invalid_timeout(self):
hm = self._create_health_monitor(**self.create_basic_hm_kwargs)
self.assertRaises(ex.BadRequest,
self._update_health_monitor,
hm.get('id'), timeout='blah')
3
Example 25
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_invalid_url_path
Function: test_create_health_monitor_invalid_url_path
@test.attr(type='negative')
def test_create_health_monitor_invalid_url_path(self):
"""Test if a non_admin user can create a health monitor with invalid
url_path
"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, max_retries=10, timeout=5,
pool_id=self.pool.get('id'), url_path='blah'
)
3
Example 26
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_update_health_monitor_invalid_expected_codes
Function: test_update_health_monitor_invalid_expected_codes
@test.attr(type='negative')
def test_update_health_monitor_invalid_expected_codes(self):
hm = self._create_health_monitor(**self.create_basic_hm_kwargs)
self.assertRaises(ex.BadRequest,
self._update_health_monitor,
hm.get('id'), expected_codes='blah')
3
Example 27
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_update_health_monitor_invalid_http_method
Function: test_update_health_monitor_invalid_http_method
@test.attr(type='negative')
def test_update_health_monitor_invalid_http_method(self):
hm = self._create_health_monitor(**self.create_basic_hm_kwargs)
self.assertRaises(ex.BadRequest,
self._update_health_monitor,
hm.get('id'), http_method='blah')
3
Example 28
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_empty_type
Function: test_create_health_monitor_empty_type
@test.attr(type='negative')
def test_create_health_monitor_empty_type(self):
"""Test create health monitor with empty type"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='', delay=3, max_retries=10, timeout=5,
pool_id=self.pool.get('id'))
3
Example 29
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_update_health_monitor_empty_delay
Function: test_update_health_monitor_empty_delay
@test.attr(type='negative')
def test_update_health_monitor_empty_delay(self):
hm = self._create_health_monitor(**self.create_basic_hm_kwargs)
self.assertRaises(ex.BadRequest,
self._update_health_monitor,
hm.get('id'), empty_delay='')
3
Example 30
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_invalid_delay
Function: test_create_health_monitor_invalid_delay
@test.attr(type='negative')
def test_create_health_monitor_invalid_delay(self):
"""Test create health monitor with invalid delay"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay='blah', max_retries=10, timeout=5,
pool_id=self.pool.get('id'))
3
Example 31
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_update_health_monitor_empty_max_retries
Function: test_update_health_monitor_empty_max_retries
@test.attr(type='negative')
def test_update_health_monitor_empty_max_retries(self):
hm = self._create_health_monitor(**self.create_basic_hm_kwargs)
self.assertRaises(ex.BadRequest,
self._update_health_monitor,
hm.get('id'), max_retries='')
3
Example 32
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_empty_timeout
Function: test_create_health_monitor_empty_timeout
@test.attr(type='negative')
def test_create_health_monitor_empty_timeout(self):
"""Test create health monitor with empty timeout"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, max_retries=10, timeout='',
pool_id=self.pool.get('id'))
3
Example 33
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_update_health_monitor_empty_url_path
Function: test_update_health_monitor_empty_url_path
@test.attr(type='negative')
def test_update_health_monitor_empty_url_path(self):
hm = self._create_health_monitor(**self.create_basic_hm_kwargs)
self.assertRaises(ex.BadRequest,
self._update_health_monitor,
hm.get('id'), http_method='')
3
Example 34
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_missing_required_field_max_retries
Function: test_create_health_monitor_missing_required_field_max_retries
@test.attr(type='smoke')
def test_create_health_monitor_missing_required_field_max_retries(self):
"""Test if a non_admin user can create a health monitor with max_retries
missing
"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, timeout=5,
pool_id=self.pool.get('id'))
3
Example 35
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_update_health_monitor_extra_attribute
Function: test_update_health_monitor_extra_attribute
@test.attr(type='smoke')
def test_update_health_monitor_extra_attribute(self):
hm = self._create_health_monitor(**self.create_basic_hm_kwargs)
self.assertRaises(ex.BadRequest,
self._update_health_monitor,
hm.get('id'), protocol='UDP')
3
Example 36
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_empty_max_pool_id
Function: test_create_health_monitor_empty_max_pool_id
@test.attr(type='negative')
def test_create_health_monitor_empty_max_pool_id(self):
"""Test create health monitor with empty pool_id"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, max_retries=10, timeout=5,
pool_id='')
3
Example 37
Project: neutron-lbaas Source File: test_listeners_admin.py
Function: test_create_listener_empty_tenant_id
Function: test_create_listener_empty_tenant_id
@test.attr(type='negative')
def test_create_listener_empty_tenant_id(self):
"""Test create listener with an empty tenant id should fail"""
create_new_listener_kwargs = self.create_listener_kwargs
create_new_listener_kwargs['protocol_port'] = 8081
create_new_listener_kwargs['tenant_id'] = ""
self.assertRaises(ex.BadRequest,
self._create_listener,
**create_new_listener_kwargs)
self._check_status_tree(
load_balancer_id=self.load_balancer_id,
listener_ids=[self.listener_id])
3
Example 38
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_invalid_timeout
Function: test_create_health_monitor_invalid_timeout
@test.attr(type='negative')
def test_create_health_monitor_invalid_timeout(self):
"""Test create health monitor with invalid timeout"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, max_retries=10, timeout='blah',
pool_id=self.pool.get('id'))
3
Example 39
Project: neutron-lbaas Source File: test_listeners_non_admin.py
Function: test_create_listener_missing_field_protocol
Function: test_create_listener_missing_field_protocol
@test.attr(type='negative')
def test_create_listener_missing_field_protocol(self):
"""Test create listener with a missing required field protocol"""
self.assertRaises(ex.BadRequest,
self._create_listener,
loadbalancer_id=self.load_balancer_id,
protocol_port=self.port)
self._check_status_tree(load_balancer_id=self.load_balancer_id,
listener_ids=[self.listener_id])
3
Example 40
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_empty_max_http_method
Function: test_create_health_monitor_empty_max_http_method
@test.attr(type='negative')
def test_create_health_monitor_empty_max_http_method(self):
"""Test create health monitor with empty http_method"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, max_retries=10, timeout=5,
pool_id=self.pool.get('id'), http_method='')
3
Example 41
Project: neutron-lbaas Source File: test_listeners_non_admin.py
Function: test_create_listener_invalid_load_balancer_id
Function: test_create_listener_invalid_load_balancer_id
@test.attr(type='negative')
def test_create_listener_invalid_load_balancer_id(self):
"""Test create listener with an invalid load_balancer_id"""
self.assertRaises(ex.BadRequest,
self._create_listener,
loadbalancer_id="234*",
protocol_port=self.port,
protocol=self.protocol)
self._check_status_tree(load_balancer_id=self.load_balancer_id,
listener_ids=[self.listener_id])
3
Example 42
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_missing_required_field_delay
Function: test_create_health_monitor_missing_required_field_delay
@test.attr(type='smoke')
def test_create_health_monitor_missing_required_field_delay(self):
"""Test if a non_admin user can create a health monitor with delay
missing
"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', max_retries=10, timeout=5,
pool_id=self.pool.get('id'))
3
Example 43
Project: neutron-lbaas Source File: test_listeners_non_admin.py
Function: test_create_listener_invalid_protocol_port
Function: test_create_listener_invalid_protocol_port
@test.attr(type='negative')
def test_create_listener_invalid_protocol_port(self):
"""Test create listener with an invalid protocol_port"""
self.assertRaises(ex.BadRequest,
self._create_listener,
loadbalancer_id=self.load_balancer_id,
protocol_port="9999999",
protocol=self.protocol)
self._check_status_tree(load_balancer_id=self.load_balancer_id,
listener_ids=[self.listener_id])
3
Example 44
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_empty_expected_codes
Function: test_create_health_monitor_empty_expected_codes
@test.attr(type='negative')
def test_create_health_monitor_empty_expected_codes(self):
"""Test create health monitor with empty expected_codes"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, max_retries=10, timeout=5,
pool_id=self.pool.get('id'), expected_codes='')
3
Example 45
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_invalid_admin_state_up
Function: test_create_health_monitor_invalid_admin_state_up
@test.attr(type='negative')
def test_create_health_monitor_invalid_admin_state_up(self):
"""Test if a non_admin user can create a health monitor with invalid
admin_state_up
"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, max_retries=10, timeout=5,
pool_id=self.pool.get('id'), admin_state_up='blah'
)
3
Example 46
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_missing_required_field_type
Function: test_create_health_monitor_missing_required_field_type
@test.attr(type='smoke')
def test_create_health_monitor_missing_required_field_type(self):
"""Test if a non_admin user can create a health monitor with type
missing
"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
delay=3, max_retries=10, timeout=5,
pool_id=self.pool.get('id'))
3
Example 47
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_missing_required_field_timeout
Function: test_create_health_monitor_missing_required_field_timeout
@test.attr(type='smoke')
def test_create_health_monitor_missing_required_field_timeout(self):
"""Test if a non_admin user can create a health monitor with timeout
missing
"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, max_retries=10,
pool_id=self.pool.get('id'))
3
Example 48
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_invalid_type
Function: test_create_health_monitor_invalid_type
@test.attr(type='negative')
def test_create_health_monitor_invalid_type(self):
"""Test create health monitor with invalid type"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='blah', delay=3, max_retries=10, timeout=5,
pool_id=self.pool.get('id'))
3
Example 49
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_create_health_monitor_invalid_http_method
Function: test_create_health_monitor_invalid_http_method
@test.attr(type='negative')
def test_create_health_monitor_invalid_http_method(self):
"""Test if a non_admin user can create a health monitor with invalid
http_method
"""
self.assertRaises(ex.BadRequest, self._create_health_monitor,
type='HTTP', delay=3, max_retries=10, timeout=5,
pool_id=self.pool.get('id'), http_method='blah')
3
Example 50
Project: neutron-lbaas Source File: test_health_monitors_non_admin.py
Function: test_update_health_monitor_invalid_url_path
Function: test_update_health_monitor_invalid_url_path
@test.attr(type='negative')
def test_update_health_monitor_invalid_url_path(self):
hm = self._create_health_monitor(**self.create_basic_hm_kwargs)
self.assertRaises(ex.BadRequest,
self._update_health_monitor,
hm.get('id'), url_path='blah')