mirror of
https://github.com/rclone/rclone.git
synced 2024-12-13 10:45:16 +01:00
14 lines
442 B
Go
14 lines
442 B
Go
|
// Package unit performs initialization and validation for unit tests
|
||
|
package unit
|
||
|
|
||
|
import (
|
||
|
"github.com/aws/aws-sdk-go/aws"
|
||
|
"github.com/aws/aws-sdk-go/aws/credentials"
|
||
|
"github.com/aws/aws-sdk-go/aws/session"
|
||
|
)
|
||
|
|
||
|
// Session is a shared session for unit tests to use.
|
||
|
var Session = session.Must(session.NewSession(aws.NewConfig().
|
||
|
WithCredentials(credentials.NewStaticCredentials("AKID", "SECRET", "SESSION")).
|
||
|
WithRegion("mock-region")))
|