mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
044ea85279
Signed-off-by: Alexei Dodon <adodon@cisco.com>
22 lines
346 B
Go
22 lines
346 B
Go
package skip
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
)
|
|
|
|
func SkipS3(t *testing.T) {
|
|
t.Helper()
|
|
|
|
if os.Getenv("S3MOCK_ENDPOINT") == "" {
|
|
t.Skip("Skipping testing without AWS S3 mock server")
|
|
}
|
|
}
|
|
|
|
func SkipDynamo(t *testing.T) {
|
|
t.Helper()
|
|
|
|
if os.Getenv("DYNAMODBMOCK_ENDPOINT") == "" {
|
|
t.Skip("Skipping testing without AWS DynamoDB mock server")
|
|
}
|
|
}
|