Ejemplo n.º 1
0
    def __init__(self):
        self.client = VinylDNSClient("http://*****:*****@test.com',
                      description='this is a description',
                      members=[User(id='ok'),
                               User(id='support-user-id')],
                      admins=[User(id='ok'),
                              User(id='support-user-id')])

        self.group = self.client.create_group(group)

        zone = Zone(name='vinyldns.',
                    email='*****@*****.**',
                    admin_group_id=self.group.id)
        zone_change = self.client.connect_zone(zone)
        self.zone = zone_change.zone

        reverse_zone = Zone(name='2.0.192.in-addr.arpa.',
                            email='*****@*****.**',
                            admin_group_id=self.group.id)
        zone_change = self.client.connect_zone(reverse_zone)
        self.reverse_zone = zone_change.zone
        wait_until_zone_exists(self.client, self.reverse_zone.id)
Ejemplo n.º 2
0
    RecordSet(forward_zone.id,
              'sshfp-test',
              RecordType.SSHFP,
              200,
              records=[SSHFPData('algorithm', 'type', 'fingerprint')],
              owner_group_id='owner-group-id'),
}

record_set_values = record_sets.values()

sample_user = User('id', 'test200', 'Bobby', 'Bonilla', '*****@*****.**',
                   datetime.utcnow())
sample_group = Group('ok',
                     '*****@*****.**',
                     'description',
                     datetime.utcnow(),
                     members=[sample_user],
                     admins=[sample_user],
                     id='sample-group')
sample_group2 = Group('ok2',
                      '*****@*****.**',
                      'description',
                      datetime.utcnow(),
                      members=[sample_user],
                      admins=[sample_user],
                      id='sample-group2')


def gen_rs_change(record_set):
    return RecordSetChange(zone=forward_zone,
                           record_set=record_set,