(t *testing.T)
| 181 | } |
| 182 | |
| 183 | func TestMasterKey_NeedsRotation(t *testing.T) { |
| 184 | key := newMasterKey("", "", "") |
| 185 | assert.False(t, key.NeedsRotation()) |
| 186 | |
| 187 | key.CreationDate = key.CreationDate.Add(-(azkvTTL + time.Second)) |
| 188 | assert.True(t, key.NeedsRotation()) |
| 189 | } |
| 190 | |
| 191 | func TestMasterKey_ToString(t *testing.T) { |
| 192 | key := newMasterKey("https://test.vault.azure.net", "key-name", "key-version") |
nothing calls this directly
no test coverage detected