Module Expr Str Import alias Import alias ImportFrom alias ImportFrom alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr decorator_list NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Dict AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Dict AttributeLoad NameLoad attr Dict Str Str Str Str Str Str Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad Str attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A N/A 
Copyright 2014 Rackspace

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

@summary: Unit tests for the load balancer "health monitor" request model.

CreateHealthMonitorRequestTest
UpdateHealthMonitorRequestTest
 N/A json N/A unittest cloudcafe.networking.lbaas.common.constants Constants cloudcafe.networking.lbaas.lbaas_api.health_monitor.request CreateHealthMonitor UpdateHealthMonitor HealthMonitorRequestTestBase N/A N/A unittest TestCase N/A setUpClass N/A N/A cls N/A N/A N/A N/A cls XML_HEADER N/A Constants XML_HEADER N/A N/A cls XML_NS N/A Constants XML_API_NAMESPACE N/A N/A cls type_ HTTP N/A N/A cls tenant_id 453105b9-1754-413f-aab1-55f1af620750 N/A N/A cls delay 20 N/A N/A cls timeout 10 N/A N/A cls max_retries 5 N/A N/A cls http_method GET N/A N/A cls url_path /check N/A N/A cls expected_codes 200-299 N/A N/A cls admin_state_up False N/A N/A cls create_health_monitor_obj N/A CreateHealthMonitor type_ N/A cls type_ tenant_id N/A cls tenant_id delay N/A cls delay timeout N/A cls timeout max_retries N/A cls max_retries http_method N/A cls http_method url_path N/A cls url_path expected_codes N/A cls expected_codes admin_state_up N/A cls admin_state_up N/A N/A cls updated_delay 30 N/A N/A cls updated_timeout 20 N/A N/A cls updated_max_retries 10 N/A N/A cls updated_http_method POST N/A N/A cls updated_url_path /health_check N/A N/A cls updated_expected_codes 200-220 N/A N/A cls updated_admin_state_up True N/A N/A cls update_health_monitor_obj N/A UpdateHealthMonitor delay N/A cls updated_delay timeout N/A cls updated_timeout max_retries N/A cls updated_max_retries http_method N/A cls updated_http_method url_path N/A cls updated_url_path expected_codes N/A cls updated_expected_codes admin_state_up N/A cls updated_admin_state_up N/A classmethod N/A CreateHealthMonitorRequestTest N/A HealthMonitorRequestTestBase N/A setUp N/A N/A self N/A N/A N/A N/A self ROOT_TAG N/A CreateHealthMonitor ROOT_TAG N/A test_create_health_monitor_json N/A N/A self N/A N/A N/A actual_json N/A N/A json loads N/A N/A N/A self create_health_monitor_obj serialize json N/A json_dict N/A N/A self ROOT_TAG N/A type tenant_id delay timeout max_retries http_method url_path expected_codes admin_state_up N/A self type_ N/A self tenant_id N/A self delay N/A self timeout N/A self max_retries N/A self http_method N/A self url_path N/A self expected_codes N/A self admin_state_up N/A expected_json N/A N/A json loads N/A N/A json dumps json_dict N/A N/A N/A self assertEqual expected_json actual_json N/A test_create_health_monitor_xml N/A N/A self N/A N/A N/A actual_xml N/A N/A N/A self create_health_monitor_obj serialize xml N/A expected_xml N/A N/A {xml_header}<{root_tag} admin_state_up="{admin_state_up}" delay="{delay}" expected_codes="{expected_codes}" http_method="{http_method}" max_retries="{max_retries}" tenant_id="{tenant_id}" timeout="{timeout}" type="{type_}" url_path="{url_path}" xmlns="{xmlns}" /> format xml_header N/A self XML_HEADER xmlns N/A self XML_NS root_tag N/A self ROOT_TAG type_ N/A self type_ tenant_id N/A self tenant_id delay N/A self delay timeout N/A self timeout max_retries N/A self max_retries http_method N/A self http_method url_path N/A self url_path expected_codes N/A self expected_codes admin_state_up N/A self admin_state_up N/A N/A N/A self assertEqual expected_xml actual_xml N/A N/A UpdateHealthMonitorRequestTest N/A HealthMonitorRequestTestBase N/A setUp N/A N/A self N/A N/A N/A N/A self ROOT_TAG N/A UpdateHealthMonitor ROOT_TAG N/A test_update_health_monitor_json N/A N/A self N/A N/A N/A actual_json N/A N/A json loads N/A N/A N/A self update_health_monitor_obj serialize json N/A json_dict N/A N/A self ROOT_TAG N/A delay timeout max_retries http_method url_path expected_codes admin_state_up N/A self updated_delay N/A self updated_timeout N/A self updated_max_retries N/A self updated_http_method N/A self updated_url_path N/A self updated_expected_codes N/A self updated_admin_state_up N/A expected_json N/A N/A json loads N/A N/A json dumps json_dict N/A N/A N/A self assertEqual expected_json actual_json N/A test_update_health_monitor_xml N/A N/A self N/A N/A N/A actual_xml N/A N/A N/A self update_health_monitor_obj serialize xml N/A expected_xml N/A N/A {xml_header}<{root_tag} admin_state_up="{admin_state_up}" delay="{delay}" expected_codes="{expected_codes}" http_method="{http_method}" max_retries="{max_retries}" timeout="{timeout}" url_path="{url_path}" xmlns="{xmlns}" /> format xml_header N/A self XML_HEADER xmlns N/A self XML_NS root_tag N/A self ROOT_TAG delay N/A self updated_delay timeout N/A self updated_timeout max_retries N/A self updated_max_retries http_method N/A self updated_http_method url_path N/A self updated_url_path expected_codes N/A self updated_expected_codes admin_state_up N/A self updated_admin_state_up N/A N/A N/A self assertEqual expected_xml actual_xml N/A N/A N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main