mirror of
https://github.com/netbirdio/netbird.git
synced 2025-01-06 22:18:52 +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
|
||||
inputUser *okta.User
|
||||
expectedUserData *UserData
|
||||
assertErrFunc assert.ErrorAssertionFunc
|
||||
}
|
||||
|
||||
testCases := []parseOktaUserTest{
|
||||
@ -30,11 +29,7 @@ func TestParseOktaUser(t *testing.T) {
|
||||
Email: "test@example.com",
|
||||
Name: "John Doe",
|
||||
ID: "123",
|
||||
AppMetadata: AppMetadata{
|
||||
WTAccountID: "456",
|
||||
},
|
||||
},
|
||||
assertErrFunc: assert.NoError,
|
||||
},
|
||||
{
|
||||
name: "invalid okta user",
|
||||
@ -48,7 +43,5 @@ func TestParseOktaUser(t *testing.T) {
|
||||
userData := parseOktaUser(tt.inputUser)
|
||||
assert.Equal(t, tt.expectedUserData, userData, "user data should match")
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user