mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-27 17:25:20 -04:00
monorepo
Co-authored-by: Malte Poll <mp@edgeless.systems> Co-authored-by: katexochen <katexochen@users.noreply.github.com> Co-authored-by: Daniel Weiße <dw@edgeless.systems> Co-authored-by: Thomas Tendyck <tt@edgeless.systems> Co-authored-by: Benedict Schlueter <bs@edgeless.systems> Co-authored-by: leongross <leon.gross@rub.de> Co-authored-by: Moritz Eckert <m1gh7ym0@gmail.com>
This commit is contained in:
commit
2d8fcd9bf4
362 changed files with 50980 additions and 0 deletions
38
kms/test/integration_test.go
Normal file
38
kms/test/integration_test.go
Normal file
|
@ -0,0 +1,38 @@
|
|||
//go:build integration
|
||||
// +build integration
|
||||
|
||||
package test
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"math/rand"
|
||||
"os"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
var (
|
||||
runAwsStorage = flag.Bool("awsStorage", false, "set to run AWS S3 Bucket Storage test")
|
||||
runAwsKms = flag.Bool("awsKms", false, "set to run AWS KMS test")
|
||||
azConnectionString = flag.String("azStorageConn", "", "connection string for Azure storage account. Required for Azure storage test.")
|
||||
runAzStorage = flag.Bool("azStorage", false, "set to run Azure Storage test")
|
||||
runAzKms = flag.Bool("azKms", false, "set to run Azure KMS test")
|
||||
runAzHsm = flag.Bool("azHsm", false, "set to run Azure HSM test")
|
||||
runGcpKms = flag.Bool("gcpKms", false, "set to run Google KMS test")
|
||||
runGcpStorage = flag.Bool("gcpStorage", false, "set to run Google Storage test")
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
rand.Seed(time.Now().Unix())
|
||||
flag.Parse()
|
||||
os.Exit(m.Run())
|
||||
}
|
||||
|
||||
func addSuffix(s string) string {
|
||||
letters := []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
||||
b := make([]rune, 5)
|
||||
for i := range b {
|
||||
b[i] = letters[rand.Intn(len(letters))]
|
||||
}
|
||||
return s + "-" + string(b)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue