Skip to content

Commit

Permalink
Rebase and use NewTracer
Browse files Browse the repository at this point in the history
Signed-off-by: Pushpalanka Jayawardhana <pushpalanka.jayawardhana@zalando.de>
  • Loading branch information
Pushpalanka committed Feb 6, 2025
1 parent 0ac2e72 commit f76b2e0
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -685,8 +685,6 @@ func TestAuthorizeRequestInputContract(t *testing.T) {
opa.runtime().config.labels.environment == "test"
input.parsed_body.key == "value"
}
headers := input.attributes.request.http.headers
`,
}),
)
Expand Down Expand Up @@ -728,7 +726,7 @@ func TestAuthorizeRequestInputContract(t *testing.T) {
openpolicyagent.WithConfigTemplate(config),
openpolicyagent.WithEnvoyMetadataBytes(envoyMetaDataConfig))

opaFactory := openpolicyagent.NewOpenPolicyAgentRegistry(openpolicyagent.WithTracer(&tracingtest.Tracer{}))
opaFactory := openpolicyagent.NewOpenPolicyAgentRegistry(openpolicyagent.WithTracer(tracingtest.NewTracer()))
ftSpec := NewOpaAuthorizeRequestSpec(opaFactory, opts...)
fr.Register(ftSpec)
ftSpec = NewOpaAuthorizeRequestWithBodySpec(opaFactory, opts...)
Expand Down

0 comments on commit f76b2e0

Please sign in to comment.