mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
update auth test interface
Signed-off-by: Chao Chen <chaochn@amazon.com>
This commit is contained in:
@@ -1457,9 +1457,9 @@ func (c *Cluster) ClusterClient(t testing.TB, opts ...framecfg.ClientOption) (cl
|
||||
|
||||
func WithAuth(userName, password string) framecfg.ClientOption {
|
||||
return func(c any) {
|
||||
client := c.(*clientv3.Client)
|
||||
client.Username = userName
|
||||
client.Password = password
|
||||
cfg := c.(*clientv3.Config)
|
||||
cfg.Username = userName
|
||||
cfg.Password = password
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user