コード例 #1
0
    def test_worker_stopped(self):
        """
        Test to stop all the workers in the modjk load balancer
        """
        name = "loadbalancer"

        ret = {"name": name, "result": False, "comment": "", "changes": {}}

        ret.update({"comment": LIST_NOT_STR})
        self.assertDictEqual(modjk.worker_stopped(name, "app1"), ret)
コード例 #2
0
ファイル: test_modjk.py プロジェクト: xuchunmei000/salt
def test_worker_stopped(list_not_str):
    """
    Test to stop all the workers in the modjk load balancer
    """
    name = "loadbalancer"

    ret = {"name": name, "result": False, "comment": "", "changes": {}}

    ret.update({"comment": list_not_str})
    assert modjk.worker_stopped(name, "app1") == ret
コード例 #3
0
ファイル: modjk_test.py プロジェクト: lvg01/salt.old
    def test_worker_stopped(self):
        '''
        Test to stop all the workers in the modjk load balancer
        '''
        name = 'loadbalancer'

        ret = {'name': name, 'result': False, 'comment': '', 'changes': {}}

        ret.update({'comment': LIST_NOT_STR})
        self.assertDictEqual(modjk.worker_stopped(name, 'app1'), ret)
コード例 #4
0
ファイル: modjk_test.py プロジェクト: zeus911/ops
    def test_worker_stopped(self):
        '''
        Test to stop all the workers in the modjk load balancer
        '''
        name = 'loadbalancer'

        ret = {'name': name, 'result': False, 'comment': '', 'changes': {}}

        comt = ("workers should be a list not a <type 'str'>")
        ret.update({'comment': comt})
        self.assertDictEqual(modjk.worker_stopped(name, 'app1'), ret)
コード例 #5
0
ファイル: modjk_test.py プロジェクト: DaveQB/salt
    def test_worker_stopped(self):
        '''
        Test to stop all the workers in the modjk load balancer
        '''
        name = 'loadbalancer'

        ret = {'name': name,
               'result': False,
               'comment': '',
               'changes': {}}

        ret.update({'comment': LIST_NOT_STR})
        self.assertDictEqual(modjk.worker_stopped(name, 'app1'), ret)
コード例 #6
0
ファイル: modjk_test.py プロジェクト: dmyerscough/salt
    def test_worker_stopped(self):
        '''
        Test to stop all the workers in the modjk load balancer
        '''
        name = 'loadbalancer'

        ret = {'name': name,
               'result': False,
               'comment': '',
               'changes': {}}

        comt = ("workers should be a list not a <type 'str'>")
        ret.update({'comment': comt})
        self.assertDictEqual(modjk.worker_stopped(name, 'app1'), ret)