Skip to content

Allow unittests to run against an external cluster #5832

@s1monw

Description

@s1monw

Today we run our unittests against an internal cluster but we already have support for ImmutableCluster that is used by tests that done't need to modify the cluster. Yet, those tests can easily run against an external cluster. as a first simple step we can just use some Junit magic to make this work ie. we add support for an annotation like @NeedsJVMLocalCluster or @NeedsMutableCluster and given the cluster we use to run the tests we can just exclude those tests.
A pure external cluster can then run on all tests that don't have either of these annotations. In a second step we can add a MutableExternalCluster impl that can start external processes and tear them down as needed given the test is not annotated with @NeedsJVMLocalCluster

Metadata

Metadata

Assignees

No one assigned

    Labels

    >testIssues or PRs that are addressing/adding tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions