| 1 | package oss_test |
| 2 | |
| 3 | import ( |
| 4 | "os" |
| 5 | |
| 6 | "github.com/denverdino/aliyungo/oss" |
| 7 | ) |
| 8 | |
| 9 | // |
| 10 | //There are two ways to run unit tests here: |
| 11 | // 1. Set your AccessKeyId and AccessKeySecret in env |
| 12 | // simply use the command below: |
| 13 | // "AccessKeyId=YourAccessKeyId AccessKeySecret=YourAccessKeySecret go test" |
| 14 | // |
| 15 | // 2. Replace "MY_ACCESS_KEY_ID" & "MY_ACCESS_KEY_SECRET" with your own access key & secret and run "go test" |
| 16 | // |
| 17 | |
| 18 | var ( |
| 19 | TestAccessKeyId = os.Getenv("AccessKeyId") |
| 20 | TestAccessKeySecret = os.Getenv("AccessKeySecret") |
| 21 | TestSecurityToken = os.Getenv("SecurityToken") |
| 22 | TestRegion = oss.Region(os.Getenv("RegionId")) |
| 23 | ) |