Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
Signed-off-by: Mayursinh Sarvaiya <marvinduff97@gmail.com>
  • Loading branch information
Marvin9 committed Oct 11, 2023
1 parent 9779219 commit 9e4d016
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions util/dex/dex_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,9 @@ func Test_GenerateDexConfig(t *testing.T) {
}
clients, ok := dexCfg["staticClients"].([]interface{})
assert.True(t, ok)
assert.Equal(t, 3, len(clients))
assert.Equal(t, 4, len(clients))

customClient := clients[2].(map[string]interface{})
customClient := clients[3].(map[string]interface{})
assert.Equal(t, "argo-workflow", customClient["id"].(string))
assert.Equal(t, 1, len(customClient["redirectURIs"].([]interface{})))
})
Expand All @@ -315,9 +315,9 @@ func Test_GenerateDexConfig(t *testing.T) {
}
clients, ok := dexCfg["staticClients"].([]interface{})
assert.True(t, ok)
assert.Equal(t, 3, len(clients))
assert.Equal(t, 4, len(clients))

customClient := clients[2].(map[string]interface{})
customClient := clients[3].(map[string]interface{})
assert.Equal(t, "barfoo", customClient["secret"])
})
t.Run("Override dex oauth2 configuration", func(t *testing.T) {
Expand Down

0 comments on commit 9e4d016

Please sign in to comment.