def ipaclient(self): """Lazily creates IPA client. """ if self._ipaclient: return self._ipaclient self._ipaclient = ipaclient.IPAClient(certs=self.ipa_certs, domain=self.ipa_domain) return self._ipaclient
def setUp(self): treadmill_aws.ipaclient.get_ipa_server_from_dns.return_value = \ 'ipa-server.mydomain.x' self.ipaclient = ipaclient.IPAClient('certs', 'domain')
def setUp(self): ipaclient.get_ipa_server_from_dns = mock.MagicMock( return_value='ipa1.foo.com.') self.test_client = ipaclient.IPAClient(certs='/foo', domain='foo.com') self.test_client._post = mock.MagicMock()
def setUp(self): treadmill_aws.ipaclient.get_ipa_urls_from_dns.return_value = \ 'https://ipa-server.mydomain.x/ipa' self.ipaclient = ipaclient.IPAClient('certs', 'domain')