(t *testing.T)
| 223 | } |
| 224 | |
| 225 | func 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 | } |
nothing calls this directly
no test coverage detected