MCPcopy Create free account
hub / github.com/coder/coder / validationOptions

Method validationOptions

coderd/azureidentity/azureidentity_test.go:218–226  ·  view source on GitHub ↗

validationOptions returns azureidentity.Options that trust only this chain's Root CA.

()

Source from the content-addressed store, hash-verified

216// validationOptions returns azureidentity.Options that trust only this
217// chain's Root CA.
218func (tc *testCertChain) validationOptions() azureidentity.Options {
219 roots := x509.NewCertPool()
220 roots.AddCert(tc.RootCert)
221 return azureidentity.Options{
222 Roots: roots,
223 Intermediates: []*x509.Certificate{tc.IntermediateCert},
224 Offline: true,
225 }
226}
227
228func TestValidate_TamperedContent(t *testing.T) {
229 t.Parallel()

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected