Debian Codegraph @

rds/config_test.go

raw symbols SCIP
1 package rds
2
3 import (
4 "os"
5
6 "github.com/denverdino/aliyungo/common"
7 )
8
9 //Modify with your Access Key Id and Access Key Secret
10
11 var (
12 TestAccessKeyId = os.Getenv("AccessKeyId")
13 TestAccessKeySecret = os.Getenv("AccessKeySecret")
14 TestSecurityToken = os.Getenv("SecurityToken")
15 TestRegionID = common.Region(os.Getenv("RegionId"))
16
17 ZoneId = "MY_TEST_ZONE_ID"
18 VPCId = "MY_TEST_VPC_ID"
19 VSwitchId = "MY_TEST_VSWITCH_ID"
20 DBInstanceId = "MY_TEST_INSTANCE_ID"
21 DBName = "MY_TEST_DB_NAME"
22 AccountPassword = "MY_TEST_ACCOUNT_PWD"
23 AccountName = "MY_TEST_ACCOUNT_NAME"
24 EngineVersion = "MY_TEST_ENGINE_VERSION"
25 DBInstanceClass = "MY_TEST_DB_CLASS"
26 DBInstanceUpgradeId = "MY_TEST_INSTANCE_TO_UPGRADE"
27 DBInstanceUpgradeClass = "MY_TEST_DB_CLASS_TO_UPGRADE"
28 TestIAmRich = false
29 )
30
31 var testClient *Client
32
33 func NewTestClient() *Client {
34 if testClient == nil {
35 testClient = NewClient(TestAccessKeyId, TestAccessKeySecret)
36 }
37 return testClient
38 }
39
40 var testDebugClient *Client
41
42 func NewTestClientForDebug() *Client {
43 if testDebugClient == nil {
44 testDebugClient = NewClient(TestAccessKeyId, TestAccessKeySecret)
45 testDebugClient.SetDebug(true)
46 }
47 return testDebugClient
48 }