Esempio n. 1
0
    def __init__(self, zone, user='******', target_user='******', *args,
                 **kwargs):
        super(TransferRequestFixture, self).__init__(user, *args, **kwargs)
        self.zone = zone
        self.target_client = DesignateCLI.as_user(target_user)

        # the client has a bug such that it requires --target-project-id.
        # when this bug is fixed, please remove this
        self.kwargs['target_project_id'] = self.target_client.project_id
    def __init__(self,
                 zone,
                 user='******',
                 target_user='******',
                 *args,
                 **kwargs):
        super(TransferRequestFixture, self).__init__(user, *args, **kwargs)
        self.zone = zone
        self.target_client = DesignateCLI.as_user(target_user)

        # the client has a bug such that it requires --target-project-id.
        # when this bug is fixed, please remove this
        self.kwargs['target_project_id'] = self.target_client.project_id
    def setUp(self):
        super(TestZoneTransferAccept, self).setUp()
        self.ensure_tld_exists('com')
        fixture = self.useFixture(ZoneFixture(
            name=random_zone_name(),
            email='*****@*****.**',
        ))
        self.zone = fixture.zone

        self.target_client = DesignateCLI.as_user('alt')
        fixture = self.useFixture(TransferRequestFixture(
            zone=self.zone,
            user='******',
            target_user='******',
            target_project_id=self.target_client.project_id,
        ))
        self.transfer_request = fixture.transfer_request
Esempio n. 4
0
 def __init__(self, user='******', *args, **kwargs):
     """args/kwargs are forwarded to a create method on DesignateCLI"""
     super(BaseFixture, self).__init__()
     self.args = args
     self.kwargs = kwargs
     self.client = DesignateCLI.as_user(user)
 def __init__(self, user='******', *args, **kwargs):
     """args/kwargs are forwarded to a create method on DesignateCLI"""
     super(BaseFixture, self).__init__()
     self.args = args
     self.kwargs = kwargs
     self.client = DesignateCLI.as_user(user)