MCPcopy
hub / github.com/getsops/sops / createTestMasterKey

Function createTestMasterKey

kms/keysource_test.go:627–633  ·  view source on GitHub ↗

createTestMasterKey creates a MasterKey with the provided ARN and a dummy credentials.StaticCredentialsProvider.

(arn string)

Source from the content-addressed store, hash-verified

625// createTestMasterKey creates a MasterKey with the provided ARN and a dummy
626// credentials.StaticCredentialsProvider.
627func createTestMasterKey(arn string) MasterKey {
628 return MasterKey{
629 Arn: arn,
630 credentialsProvider: credentials.NewStaticCredentialsProvider("id", "secret", ""),
631 baseEndpoint: testKMSServerURL,
632 }
633}
634
635// createTestKMSClient creates a new client with the
636// aws.EndpointResolverWithOptions set to epResolver.

Callers 5

TestMainFunction · 0.85
TestMasterKey_EncryptFunction · 0.85
TestMasterKey_DecryptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected