コード例 #1
0
 def setUp(self):
     LiquidWebMockHttp.type = None
     LiquidWebDNSDriver.connectionCls.conn_class = LiquidWebMockHttp
     self.driver = LiquidWebDNSDriver(*DNS_PARAMS_LIQUIDWEB)
     self.test_zone = Zone(id='11',
                           type='master',
                           ttl=None,
                           domain='example.com',
                           extra={},
                           driver=self.driver)
     self.test_record = Record(id='13',
                               type=RecordType.A,
                               name='example.com',
                               zone=self.test_zone,
                               data='127.0.0.1',
                               driver=self,
                               extra={})
コード例 #2
0
ファイル: test_liquidweb.py プロジェクト: wandera/libcloud
 def setUp(self):
     LiquidWebMockHttp.type = None
     LiquidWebDNSDriver.connectionCls.conn_class = LiquidWebMockHttp
     self.driver = LiquidWebDNSDriver(*DNS_PARAMS_LIQUIDWEB)
     self.test_zone = Zone(
         id="11",
         type="master",
         ttl=None,
         domain="example.com",
         extra={},
         driver=self.driver,
     )
     self.test_record = Record(
         id="13",
         type=RecordType.A,
         name="example.com",
         zone=self.test_zone,
         data="127.0.0.1",
         driver=self,
         extra={},
     )