MCPcopy Index your code
hub / github.com/getsops/sops / TestCredentials_ApplyToMasterKey

Function TestCredentials_ApplyToMasterKey

hckms/keysource_test.go:225–235  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

223}
224
225func TestCredentials_ApplyToMasterKey(t *testing.T) {
226 basicCred := auth.NewBasicCredentialsBuilder().
227 WithAk("test-ak").
228 WithSk("test-sk").
229 Build()
230 cred := NewCredentials(basicCred)
231 key, err := NewMasterKey(testKeyID1)
232 assert.NoError(t, err)
233 cred.ApplyToMasterKey(key)
234 assert.Equal(t, cred.credential, key.credentials)
235}

Callers

nothing calls this directly

Calls 3

ApplyToMasterKeyMethod · 0.95
NewCredentialsFunction · 0.85
NewMasterKeyFunction · 0.70

Tested by

no test coverage detected