| 1 | package common |
| 2 | |
| 3 | import "os" |
| 4 | |
| 5 | var ( |
| 6 | TestAccessKeyId = os.Getenv("AccessKeyId") |
| 7 | TestAccessKeySecret = os.Getenv("AccessKeySecret") |
| 8 | TestSecurityToken = os.Getenv("SecurityToken") |
| 9 | TestRegionId = os.Getenv("RegionId") |
| 10 | TestServiceCode = os.Getenv("ServiceCode") |
| 11 | ) |
| 12 | var testDebugClient *LocationClient |
| 13 | |
| 14 | func NewTestClientForDebug() *LocationClient { |
| 15 | if testDebugClient == nil { |
| 16 | testDebugClient = NewLocationClient(TestAccessKeyId, TestAccessKeySecret, TestSecurityToken) |
| 17 | testDebugClient.SetDebug(true) |
| 18 | } |
| 19 | return testDebugClient |
| 20 | } |