-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CORE-16234: For persistence api add endpoint and change naming of exi…
…sting endpoint (#4774) For the RPC Epic the Persistence api will require two endpoints. One endpoint is already merged which relates to ledger-related persistence. This PR will be making a suggested change to the naming of that endpoint for clarity, and will also add the second endpoint required. When this work is merged we will have the endpoints: /ledger - for ledger persistence /persistence - for entity persistence
- Loading branch information
Showing
20 changed files
with
406 additions
and
233 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...ice-impl/src/integrationTest/kotlin/net/corda/entityprocessor/impl/tests/helpers/Utils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package net.corda.entityprocessor.impl.tests.helpers | ||
|
||
import net.corda.data.flow.event.FlowEvent | ||
import net.corda.data.flow.event.external.ExternalEventResponse | ||
import net.corda.messaging.api.records.Record | ||
import org.junit.jupiter.api.Assertions | ||
|
||
fun assertEventResponseWithoutError(record: Record<*, *>) { | ||
Assertions.assertNull(((record.value as FlowEvent).payload as ExternalEventResponse).error) | ||
} | ||
|
||
fun assertEventResponseWithError(record: Record<*, *>) { | ||
Assertions.assertNotNull(((record.value as FlowEvent).payload as ExternalEventResponse).error) | ||
} |
27 changes: 0 additions & 27 deletions
27
...cessor-service-impl/src/main/kotlin/net/corda/entityprocessor/impl/EntityProcessorImpl.kt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.