Skip to content

Commit

Permalink
Merge pull request etcd-io#17403 from ahrtr/cleanup_20240208
Browse files Browse the repository at this point in the history
Remove the unused AuthTokenTTL parameter from integration test
  • Loading branch information
ahrtr committed Feb 12, 2024
2 parents 42f0cb9 + 5b2a9e2 commit ea89e3f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions tests/framework/integration/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,7 @@ type ClusterConfig struct {

DiscoveryURL string

AuthToken string
AuthTokenTTL uint
AuthToken string

QuotaBackendBytes int64
BackendBatchInterval time.Duration
Expand Down Expand Up @@ -268,7 +267,6 @@ func (c *Cluster) mustNewMember(t testutil.TB) *Member {
Name: fmt.Sprintf("m%v", memberNumber),
MemberNumber: memberNumber,
AuthToken: c.Cfg.AuthToken,
AuthTokenTTL: c.Cfg.AuthTokenTTL,
PeerTLS: c.Cfg.PeerTLS,
ClientTLS: c.Cfg.ClientTLS,
QuotaBackendBytes: c.Cfg.QuotaBackendBytes,
Expand Down Expand Up @@ -598,7 +596,6 @@ type MemberConfig struct {
PeerTLS *transport.TLSInfo
ClientTLS *transport.TLSInfo
AuthToken string
AuthTokenTTL uint
QuotaBackendBytes int64
BackendBatchInterval time.Duration
MaxTxnOps uint
Expand Down Expand Up @@ -697,9 +694,6 @@ func MustNewMember(t testutil.TB, mcfg MemberConfig) *Member {
if mcfg.AuthToken != "" {
m.AuthToken = mcfg.AuthToken
}
if mcfg.AuthTokenTTL != 0 {
m.TokenTTL = mcfg.AuthTokenTTL
}

m.BcryptCost = uint(bcrypt.MinCost) // use min bcrypt cost to speedy up integration testing

Expand Down

0 comments on commit ea89e3f

Please sign in to comment.