mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
23 lines
346 B
Go
23 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")
|
||
|
}
|
||
|
}
|