예제 #1
0
    def test_worker_activated(self):
        """
        Test to activate 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_activated(name, "app1"), ret)
예제 #2
0
def test_worker_activated(list_not_str):
    """
    Test to activate 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_activated(name, "app1") == ret
예제 #3
0
    def test_worker_activated(self):
        '''
        Test to activate 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_activated(name, 'app1'), ret)
예제 #4
0
파일: modjk_test.py 프로젝트: zeus911/ops
    def test_worker_activated(self):
        '''
        Test to activate 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_activated(name, 'app1'), ret)
예제 #5
0
파일: modjk_test.py 프로젝트: DaveQB/salt
    def test_worker_activated(self):
        '''
        Test to activate 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_activated(name, 'app1'), ret)
예제 #6
0
    def test_worker_activated(self):
        '''
        Test to activate 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_activated(name, 'app1'), ret)