Skip to content

Conversation

mark-vieira
Copy link
Contributor

Backports the following commits to 7.17:

…elastic#95095)

This commit adds the ability to initialize YAML rest test suites against
a subset of available test cases. Previously, the only way to do this is
via the `tests.rest.suite` system property, but that can only be set at
the test _task_ level. Configuring this at the test _class_ level means
that we can support having multiple test suite classes that execute
subsets of tests within a project. That allows for things like
parallelization, or having different test cluster setups for different
YAML tests within the same project.

For example:

```java
    @ParametersFactory
    public static Iterable<Object[]> parameters() throws Exception {
        return ESClientYamlSuiteTestCase.createParameters(new String[] { "analysis-common", "indices.analyze" });
    }
```

The above example would mean that only tests in the `analysis-common`
and `indices.analyze` directories would be included in this suite.

cc @jdconrad 

Closes elastic#95089
@mark-vieira mark-vieira added :Delivery/Tooling Developer tooliing and automation >non-issue auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Delivery Meta label for Delivery team labels Apr 7, 2023
@elasticsearchmachine elasticsearchmachine merged commit 68905df into elastic:7.17 Apr 7, 2023
@mark-vieira mark-vieira deleted the backport/7.17/pr-95095 branch April 7, 2023 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Delivery/Tooling Developer tooliing and automation >non-issue Team:Delivery Meta label for Delivery team v7.17.10
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants