Skip to content

Commit

Permalink
remove gcp logic
Browse files Browse the repository at this point in the history
  • Loading branch information
elliesterner committed Jul 20, 2023
1 parent 2a521e7 commit a4942cf
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions benchmarktests/target_auth_gcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,15 +174,6 @@ func (g *GCPAuth) Setup(mountName string, topLevelConfig *TopLevelTargetConfig)
return nil, fmt.Errorf("error parsing gcp auth config from struct: %v", err)
}

// Check that JWT TTL is not shorter than benchmark test duration
parsedTTL, err := time.ParseDuration(targetConfig.GCPTestRoleConfig.MaxJWTExp)
if err != nil {
return nil, fmt.Errorf("error parsing JWT TTL from configuration: %v", err)
}
if parsedTTL < topLevelConfig.Duration {
return nil, fmt.Errorf("GCP role max_jwt_exp (%v) cannot be shorter than benchmark test duration (%v)", parsedTTL, topLevelConfig.Duration)
}

// Write GCP config
setupLogger.Trace(writingLogMessage("gcp auth config"))
_, err = topLevelConfig.Client.Logical().Write("auth/"+authPath+"/config", GCPAuthConfig)
Expand Down

0 comments on commit a4942cf

Please sign in to comment.