(t *testing.T)
| 124 | } |
| 125 | |
| 126 | func TestNewMasterKeyWithProfile(t *testing.T) { |
| 127 | var ( |
| 128 | dummyRole = "a-role" |
| 129 | dummyEncryptionContext = map[string]*string{ |
| 130 | "foo": aws.String("bar"), |
| 131 | } |
| 132 | dummyProfile = "a-profile" |
| 133 | ) |
| 134 | key := NewMasterKeyWithProfile(dummyARN, dummyRole, dummyEncryptionContext, dummyProfile) |
| 135 | assert.Equal(t, dummyARN, key.Arn) |
| 136 | assert.Equal(t, dummyRole, key.Role) |
| 137 | assert.Equal(t, dummyEncryptionContext, key.EncryptionContext) |
| 138 | assert.Equal(t, dummyProfile, key.AwsProfile) |
| 139 | assert.NotNil(t, key.CreationDate) |
| 140 | } |
| 141 | |
| 142 | func TestNewMasterKeyFromArn(t *testing.T) { |
| 143 | t.Run("arn", func(t *testing.T) { |
nothing calls this directly
no test coverage detected