fix: display loginname in machine client credentials (#5936)

This commit is contained in:
Tim Möhlmann
2023-05-26 16:04:45 +03:00
committed by GitHub
parent 6c90f088d2
commit d5eaa8fa16
3 changed files with 16 additions and 7 deletions

View File

@@ -137,7 +137,6 @@ func TestCommandSide_GenerateMachineSecret(t *testing.T) {
ResourceOwner: "org1",
},
secret: &GenerateMachineSecret{
ClientID: "user1",
ClientSecret: "a",
},
},
@@ -157,7 +156,6 @@ func TestCommandSide_GenerateMachineSecret(t *testing.T) {
}
if tt.res.err == nil {
assert.Equal(t, tt.res.want, got)
assert.Equal(t, tt.args.set.ClientID, tt.res.secret.ClientID)
assert.Equal(t, tt.args.set.ClientSecret, tt.res.secret.ClientSecret)
}
})