Module Expr Str ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias alias ImportFrom alias Expr Call NameLoad Str ImportFrom alias Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr Dict ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad Str Dict Assign NameStore Call NameLoad keyword ListLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword ListLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword ListLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad Str Dict Assign NameStore Call NameLoad keyword ListLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad keyword ListLoad NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad body With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad With Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Dict Str NameLoad body Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad Dict Str Str Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str Str NameLoad NameLoad Dict Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Str Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list Call NameLoad NameLoad NameLoad If CompareEq NameLoad Str body ImportFrom alias Expr Call NameLoad NameLoad keyword NameLoad
N/A N/A 
    :codeauthor: :email:`Jayesh Kariya <jayeshk@saltstack.com>`
 __future__ absolute_import salttesting skipIf TestCase salttesting.mock NO_MOCK NO_MOCK_REASON MagicMock patch salttesting.helpers ensure_in_syspath N/A N/A ensure_in_syspath ../../ salt.states lvs_service N/A N/A lvs_service __salt__ N/A N/A N/A lvs_service __opts__ N/A LvsServiceTestCase N/A TestCase N/A N/A 
    Test cases for salt.states.lvs_service
     test_present N/A N/A self N/A N/A N/A 
        Test to ensure that the named service is present.
         N/A name lvsrs N/A ret N/A name result comment changes name True N/A N/A mock_check N/A MagicMock side_effect N/A True True True False True False True False False False False N/A mock_edit N/A MagicMock side_effect N/A True False N/A mock_add N/A MagicMock side_effect N/A True False N/A N/A N/A patch dict N/A lvs_service __salt__ N/A lvs.check_service lvs.edit_service lvs.add_service mock_check mock_edit mock_add N/A N/A N/A N/A patch dict N/A lvs_service __opts__ N/A test True N/A N/A comt LVS Service lvsrs is present N/A N/A N/A ret update N/A comment comt N/A N/A N/A self assertDictEqual N/A N/A lvs_service present name ret N/A comt LVS Service lvsrs is present but some options should update N/A N/A N/A ret update N/A comment result comt None N/A N/A N/A self assertDictEqual N/A N/A lvs_service present name ret N/A N/A N/A patch dict N/A lvs_service __opts__ N/A test False N/A N/A comt LVS Service lvsrs has been updated N/A N/A N/A ret update N/A comment result changes comt True N/A lvsrs Update N/A N/A N/A self assertDictEqual N/A N/A lvs_service present name ret N/A comt LVS Service lvsrs update failed N/A N/A N/A ret update N/A comment result changes comt False N/A N/A N/A N/A self assertDictEqual N/A N/A lvs_service present name ret N/A N/A N/A patch dict N/A lvs_service __opts__ N/A test True N/A N/A comt LVS Service lvsrs is not present and needs to be created N/A N/A N/A ret update N/A comment result comt None N/A N/A N/A self assertDictEqual N/A N/A lvs_service present name ret N/A N/A N/A patch dict N/A lvs_service __opts__ N/A test False N/A N/A comt LVS Service lvsrs has been created N/A N/A N/A ret update N/A comment result changes comt True N/A lvsrs Present N/A N/A N/A self assertDictEqual N/A N/A lvs_service present name ret N/A comt LVS Service lvsrs create failed(False) N/A N/A N/A ret update N/A comment result changes comt False N/A N/A N/A N/A self assertDictEqual N/A N/A lvs_service present name ret N/A test_absent N/A N/A self N/A N/A N/A 
        Test to ensure the LVS Real Server in specified service is absent.
         N/A name lvsrs N/A ret N/A name result comment changes name None N/A N/A mock_check N/A MagicMock side_effect N/A True True True False N/A mock_delete N/A MagicMock side_effect N/A True False N/A N/A N/A patch dict N/A lvs_service __salt__ N/A lvs.check_service lvs.delete_service mock_check mock_delete N/A N/A N/A N/A patch dict N/A lvs_service __opts__ N/A test True N/A N/A comt LVS Service lvsrs is present and needs to be removed N/A N/A N/A ret update N/A comment comt N/A N/A N/A self assertDictEqual N/A N/A lvs_service absent name ret N/A N/A N/A patch dict N/A lvs_service __opts__ N/A test False N/A N/A comt LVS Service lvsrs has been removed N/A N/A N/A ret update N/A comment result changes comt True N/A lvsrs Absent N/A N/A N/A self assertDictEqual N/A N/A lvs_service absent name ret N/A comt LVS Service lvsrs removed failed(False) N/A N/A N/A ret update N/A comment result changes comt False N/A N/A N/A N/A self assertDictEqual N/A N/A lvs_service absent name ret N/A comt LVS Service lvsrs is not present, so it cannot be removed N/A N/A N/A ret update N/A comment result comt True N/A N/A N/A self assertDictEqual N/A N/A lvs_service absent name ret N/A N/A N/A skipIf NO_MOCK NO_MOCK_REASON N/A N/A __name__ __main__ N/A integration run_tests N/A N/A run_tests LvsServiceTestCase needs_daemon False