ptrdom opened a new pull request, #526:
URL: https://github.com/apache/pekko-persistence-r2dbc/pull/526

   ### Motivation
   Pekko 2.0.0-M4 includes runtime plugin configuration for 
`DurableStateBehavior` (apache/pekko#3058), so `RuntimePluginConfigSpec` no 
longer needs to test the durable state plugin by constructing 
`R2dbcDurableStateStore` directly.
   
   ### Modification
   - The `DurableState` test helper now creates a `DurableStateBehavior` with 
`withDurableStateStorePluginId` and `withDurableStateStorePluginConfig`, like 
the existing `EventSourced` helper.
   - The durable state test spawns one actor per plugin with the same 
persistence id, saves through each, and reads the stored state back through 
`DurableStateStoreRegistry.durableStateStoreFor(pluginId, runtimeConfig)`.
   
   ### Result
   The durable state runtime plugin config is tested end-to-end through the 
typed API, matching the journal and snapshot store tests.
   
   ### Tests
   - `sbt -Dpekko.persistence.r2dbc.dialect=h2 core/testOnly 
org.apache.pekko.persistence.r2dbc.journal.RuntimePluginConfigSpec` on Scala 
2.13 and 3.3 - all passed
   - `sbt core/Test/scalafmtCheck` - success
   - PostgreSQL/YugabyteDB not run locally; covered by CI
   
   ### References
   Fixes #203
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to