def setUpClass(cls):

        global o1_id

        # Create two objects for test
        o1 = User()
        o1.global_id = 'user1'
        o1.global_pwd = 'pass1'
        o1.pops = ['1.ex.ch', '2.ex.ch']
        o1.save()

        o1_id = o1.id
    def setUpClass(cls):

        global o1_id

        # Create two objects for test
        o1 = User()
        o1.global_id = 'user1'
        o1.global_pwd = 'pass1'
        o1.pops=['1.ex.ch','2.ex.ch']
        o1.save()

        o1_id = o1.id
Exemplo n.º 3
0
    def setUpClass(cls):
        global pop, user

        pop = PoP()
        pop.address = '192.168.10.3'
        pop.admin_password = '******'
        pop.admin_username = '******'
        pop.location = 'France'
        pop.save()

        user = User()
        user.global_id = '12345'
        user.global_pwd = '54321'
        user.origin_pop = pop
        user.dns_url = 'dns.url'
        user.dns_token = 'dns.token'
        user.dns_id_domain = '1'
        user.domain_name = '12345.cdn.mobile-cloud-networking.eu'
        user.save()