Skip to content

Commit

Permalink
Add environments field for test object
Browse files Browse the repository at this point in the history
Signed-off-by: Renuka Fernando <[email protected]>
  • Loading branch information
renuka-fernando committed Feb 18, 2024
1 parent ef35627 commit d72f32f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions adapter/internal/discovery/xds/payloadfmt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func TestGetFilteredKeyManagerConfig(t *testing.T) {
"consumer_key_claim": "azp",
"certificate_type": "JWKS",
"token_endpoint": "https://api.asgardeo.io/t/renukafernando/oauth2/token",
"environments": []string{"Production"},
}
expectedKmConfigMap := map[string]interface{}{
"claim_mappings": []string{},
Expand All @@ -55,6 +56,7 @@ func TestGetFilteredKeyManagerConfig(t *testing.T) {
"scopes_claim": "scope",
"consumer_key_claim": "azp",
"certificate_type": "JWKS",
"environments": []string{"Production"},
}

filteredConfig := getFilteredKeyManagerConfig(kmConfigMap)
Expand Down

0 comments on commit d72f32f

Please sign in to comment.