示例#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
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
    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
    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)