mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-07 22:49:35 +01:00
fix tests
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
parent
2cba987e1a
commit
d90eb49f37
@ -12,7 +12,6 @@ func TestParseOktaUser(t *testing.T) {
|
|||||||
name string
|
name string
|
||||||
inputUser *okta.User
|
inputUser *okta.User
|
||||||
expectedUserData *UserData
|
expectedUserData *UserData
|
||||||
assertErrFunc assert.ErrorAssertionFunc
|
|
||||||
}
|
}
|
||||||
|
|
||||||
testCases := []parseOktaUserTest{
|
testCases := []parseOktaUserTest{
|
||||||
@ -30,11 +29,7 @@ func TestParseOktaUser(t *testing.T) {
|
|||||||
Email: "test@example.com",
|
Email: "test@example.com",
|
||||||
Name: "John Doe",
|
Name: "John Doe",
|
||||||
ID: "123",
|
ID: "123",
|
||||||
AppMetadata: AppMetadata{
|
|
||||||
WTAccountID: "456",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
assertErrFunc: assert.NoError,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "invalid okta user",
|
name: "invalid okta user",
|
||||||
@ -48,7 +43,5 @@ func TestParseOktaUser(t *testing.T) {
|
|||||||
userData := parseOktaUser(tt.inputUser)
|
userData := parseOktaUser(tt.inputUser)
|
||||||
assert.Equal(t, tt.expectedUserData, userData, "user data should match")
|
assert.Equal(t, tt.expectedUserData, userData, "user data should match")
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user