mirror of
https://github.com/mainflux/mainflux.git
synced 2025-04-29 13:49:28 +08:00
Fix naming in Authn API tests (#1275)
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
This commit is contained in:
parent
f6b1ae735c
commit
02db4066b1
@ -62,7 +62,7 @@ func TestIssue(t *testing.T) {
|
||||
}{
|
||||
{
|
||||
desc: "issue for user with valid token",
|
||||
id: email,
|
||||
id: id,
|
||||
email: email,
|
||||
kind: authn.UserKey,
|
||||
err: nil,
|
||||
@ -70,7 +70,7 @@ func TestIssue(t *testing.T) {
|
||||
},
|
||||
{
|
||||
desc: "issue recovery key",
|
||||
id: email,
|
||||
id: id,
|
||||
email: email,
|
||||
kind: authn.RecoveryKey,
|
||||
err: nil,
|
||||
@ -78,7 +78,7 @@ func TestIssue(t *testing.T) {
|
||||
},
|
||||
{
|
||||
desc: "issue API key unauthenticated",
|
||||
id: email,
|
||||
id: id,
|
||||
email: email,
|
||||
kind: authn.APIKey,
|
||||
err: nil,
|
||||
@ -86,7 +86,7 @@ func TestIssue(t *testing.T) {
|
||||
},
|
||||
{
|
||||
desc: "issue for invalid key type",
|
||||
id: email,
|
||||
id: id,
|
||||
email: email,
|
||||
kind: 32,
|
||||
err: status.Error(codes.InvalidArgument, "received invalid token request"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user