瀏覽代碼

fix integration test

wenzuochao 6 年之前
父節點
當前提交
ae22c4bc89
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 2 2
      integration/base.go
  2. 1 1
      integration/cr_test.go

+ 2 - 2
integration/base.go

@@ -24,8 +24,8 @@ var role_doc = `{
 
 var (
 	travisValue = strings.Split(os.Getenv("TRAVIS_JOB_NUMBER"), ".")
-	username    = "testuser" + travisValue[len(travisValue)-1]
-	rolename    = "testrole" + travisValue[len(travisValue)-1]
+	username    = "test-go-user" + travisValue[len(travisValue)-1]
+	rolename    = "test-go-role" + travisValue[len(travisValue)-1]
 	rolearn     = fmt.Sprintf("acs:ram::%s:role/%s", os.Getenv("USER_ID"), rolename)
 )
 

+ 1 - 1
integration/cr_test.go

@@ -10,7 +10,7 @@ import (
 	"testing"
 )
 
-var crTestKey = "crtestkey"
+var crTestKey = "crtestkey" + travisValue[len(travisValue)-1]
 
 func Test_CR_CreateNamespace(t *testing.T) {
 	client, err := cr.NewClientWithAccessKey(os.Getenv("REGION_ID"), os.Getenv("ACCESS_KEY_ID"), os.Getenv("ACCESS_KEY_SECRET"))