-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(engine): add ZeebeTestEngine implementation
Adds a new module, `engine`, which provides a `ZeebeTestEngine` implementation backed by either a container or a cluster. The implementations define idle/busy state based on the rate of records exported (idle being no records within a certain period, and busy being at least one record within a certain period). It also allows for a grace period to be defined, meaning one can omit calls to `ZeebeTestEngine#waitForIdleState(Duration)` (with some caveats). The main entry point of the module is the interface `ContainerEngine`, which extends both `Startable` and `ZeebeTestEngine`. By extending `Startable`, we can let the Testcontainers extension manage the lifecycle of our containers/engine. Additionally, the concrete implementations implement `TestLifecycleAware`, which allows us to do pre/post test tasks, such as initializing the `BpmnAssert` record source, and printing out the log on failure.
- Loading branch information
Showing
29 changed files
with
2,121 additions
and
55 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
Oops, something went wrong.