Skip to content

Commit

Permalink
make intentinos tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
absolutelightning committed Oct 9, 2023
1 parent d05516b commit d323696
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion consul/resource_consul_config_entry_service_intentions.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,6 @@ func (s *serviceIntentions) Write(ce consulapi.ConfigEntry, d *schema.ResourceDa
for _, jwtProvider := range si.JWT.Providers {
jwtProviderMap := make(map[string]interface{})
jwtProviderMap["name"] = jwtProvider.Name
jwtProviderMap["verify_claims"] = make([]map[string]interface{}, 0)
verifyClaims := make([]map[string]interface{}, 0)
for _, vc := range jwtProvider.VerifyClaims {
vcMap := make(map[string]interface{})
Expand All @@ -490,6 +489,7 @@ func (s *serviceIntentions) Write(ce consulapi.ConfigEntry, d *schema.ResourceDa
vcMap["value"] = vc.Value
verifyClaims = append(verifyClaims, vcMap)
}
jwtProviderMap["verify_claims"] = verifyClaims
jwtProviders = append(jwtProviders, jwtProviderMap)
}
jwt[0]["providers"] = jwtProviders
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ resource "consul_config_entry" "jwt_provider" {
kind = "jwt-provider"
config_json = jsonencode({
ClockSkewSeconds = 30
Issuer = "test-issuer"
JSONWebKeySet = {
Remote = {
Expand Down

0 comments on commit d323696

Please sign in to comment.