unit.go 570 B

12345678910111213141516171819202122
  1. // Package unit performs initialization and validation for unit tests
  2. package unit
  3. import (
  4. "github.com/aws/aws-sdk-go/aws/credentials"
  5. "github.com/aws/aws-sdk-go/aws/defaults"
  6. )
  7. // Imported is a marker to ensure that this package's init() function gets
  8. // executed.
  9. //
  10. // To use this package, import it and add:
  11. //
  12. // var _ = unit.Imported
  13. const Imported = true
  14. func init() {
  15. // mock region and credentials
  16. defaults.DefaultConfig.Credentials =
  17. credentials.NewStaticCredentials("AKID", "SECRET", "SESSION")
  18. defaults.DefaultConfig.WithRegion("mock-region")
  19. }