Debian Codegraph @

dns/config_test.go

raw symbols SCIP
1 package dns
2
3 //Modify with your Access Key Id and Access Key Secret
4 const (
5 TestAccessKeyId = "MY_ACCESS_KEY_ID"
6 TestAccessKeySecret = "MY_ACCESS_KEY_SECRET"
7 TestDomainName = "aisafe.win"
8 TestDomainGroupName = "testgroup"
9 TestChanegGroupName = "testchangegroup"
10 )
11
12 var testClient *Client
13
14 func NewTestClient() *Client {
15 if testClient == nil {
16 testClient = NewClient(TestAccessKeyId, TestAccessKeySecret)
17 }
18 return testClient
19 }
20
21 // change DNSDefaultEndpoint to "http://alidns.aliyuncs.com"
22 func NewTestClientNew() *Client {
23 if testClient == nil {
24 testClient = NewClientNew(TestAccessKeyId, TestAccessKeySecret)
25 }
26 return testClient
27 }
28
29 var testDebugClient *Client
30
31 func NewTestClientForDebug() *Client {
32 if testDebugClient == nil {
33 testDebugClient = NewClient(TestAccessKeyId, TestAccessKeySecret)
34 testDebugClient.SetDebug(true)
35 }
36 return testDebugClient
37 }