masakari/masakari/tests/unit
jayashri bidwe de2f4d637d Allow updating host name only if it exists in nova
Presently, you can update host name with any non-existing host name.
It doesn't check whether this host exists or not in nova. This patch
fixes this issue by checking whether the host name exists in nova or
not before updating it. If it doesn't exists, it will raise 400 error.

APIImpact
BadRequest(400) is returned if host doesn't exists in nova instead of
200 during host update.

Closes-Bug: #1814656

Change-Id: Ibd113f2328deae0f1114544436631bdc434eff92
2019-02-08 10:11:46 +05:30
..
api Return 400 if notification payload is incorrect 2019-01-21 14:10:48 +05:30
cmd Add framework for masakari-status upgrade check 2018-11-08 13:19:06 +00:00
compute Allow updating host name only if it exists in nova 2019-02-08 10:11:46 +05:30
db Add db purge support 2018-04-18 13:03:06 +05:30
engine Add hooks for recovery method customization plugins 2018-08-02 13:13:00 +05:30
ha Allow updating host name only if it exists in nova 2019-02-08 10:11:46 +05:30
monkey_patch_example Add testing for WSGI Framework 2016-08-26 14:07:20 +05:30
objects iso8601.is8601.Utc No Longer Exists 2017-09-07 10:36:39 +09:00
__init__.py Remove reference of Nova 2016-09-28 09:41:06 +05:30
conf_fixture.py Add testing for WSGI Framework 2016-08-26 14:07:20 +05:30
fake_notifier.py Add testing for WSGI Framework 2016-08-26 14:07:20 +05:30
fake_policy.py Register and Document policy in code 2018-07-27 12:15:14 +05:30
fakes.py change nova.services.disable use service_uuid 2019-01-16 17:42:50 +08:00
matchers.py Add testing for WSGI Framework 2016-08-26 14:07:20 +05:30
policy_fixture.py Register and Document policy in code 2018-07-27 12:15:14 +05:30
test_api_validation.py Tolerate jsonschema==2.6.0 2017-02-16 11:17:15 +05:30
test_conf.py Add testing for WSGI Framework 2016-08-26 14:07:20 +05:30
test_context.py Fix Context test cases 2018-06-19 14:34:59 +05:30
test_exception.py Remove support for py34 2017-07-11 15:33:14 +07:00
test_hacking.py Register and Document policy in code 2018-07-27 12:15:14 +05:30
test_masakari_manage.py Add db purge support 2018-04-18 13:03:06 +05:30
test_policy.py Register and Document policy in code 2018-07-27 12:15:14 +05:30
test_rpc.py Set access_policy for messaging's dispatcher 2017-02-09 12:17:15 +05:30
test_safeutils.py Add testing for WSGI Framework 2016-08-26 14:07:20 +05:30
test_service.py Enable mutable config in Masakari 2018-05-11 16:10:46 +05:30
test_utils.py Use method validate_integer from oslo.utils 2018-03-29 10:02:18 +05:30
test_versions.py Add masakari-engine support 2016-10-05 14:53:26 +05:30
test_wsgi.py Add testing for WSGI Framework 2016-08-26 14:07:20 +05:30
utils.py Add testing for WSGI Framework 2016-08-26 14:07:20 +05:30