agent-exec transport 07766a247a517f1f0231fe241083b456/c332221e1735
This commit is contained in:
@@ -495,7 +495,14 @@ func (e *env) loginAlice(t *testing.T) *userClient {
|
||||
// alice 的方式 redeem 并设 rootPass。
|
||||
func (e *env) grantAliceProjectCreate(t *testing.T, rootCred string) {
|
||||
t.Helper()
|
||||
rootSecret := activationSecret(t, rootCred)
|
||||
raw, err := os.ReadFile(rootCred)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
rootSecret := strings.TrimSpace(string(raw))
|
||||
if rootSecret == "" {
|
||||
t.Fatal("bootstrap-admin credential file is empty")
|
||||
}
|
||||
jar, err := cookiejar.New(nil)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user