Skip to content

Commit eef190b

Browse files
committed
Update test to show default master wrapping key identifier
1 parent 21f5760 commit eef190b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

components/crypto/crypto-rest/src/test/kotlin/net/corda/crypto/rest/impl/KeyRotationRestResourceTest.kt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import net.corda.configuration.read.ConfigChangedEvent
88
import net.corda.configuration.read.ConfigurationReadService
99
import net.corda.crypto.config.impl.CryptoHSMConfig
1010
import net.corda.crypto.config.impl.HSM
11+
import net.corda.crypto.core.KeyRotationMetadataValues
1112
import net.corda.crypto.core.KeyRotationStatus
1213
import net.corda.crypto.core.MASTER_WRAPPING_KEY_ROTATION_IDENTIFIER
1314
import net.corda.crypto.rest.KeyRotationRestResource
@@ -99,7 +100,12 @@ class KeyRotationRestResourceTest {
99100
"random",
100101
"random".toByteArray(),
101102
0,
102-
Metadata(mapOf("status" to "In Progress"))
103+
Metadata(
104+
mapOf(
105+
KeyRotationMetadataValues.STATUS to "In Progress",
106+
KeyRotationMetadataValues.DEFAULT_MASTER_KEY_ALIAS to MASTER_WRAPPING_KEY_ROTATION_IDENTIFIER
107+
)
108+
)
103109
)
104110
)
105111
}

0 commit comments

Comments
 (0)