Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[release/8.0] [tests] EndToEnd - add test scenarios (#3113) #3377

Merged
merged 2 commits into from
Apr 4, 2024

Commits on Apr 3, 2024

  1. [tests] EndToEnd - add test scenarios (dotnet#3113)

    Test scenarios allow defining different groupings for tests to be run. This is useful for CI to run the tests in separate helix items.
    
    ```csharp
            TestResourceNames resourcesToInclude = TestScenario switch
            {
                "oracle" => TestResourceNames.oracledatabase,
                "cosmos" => TestResourceNames.cosmos,
                "scenario0" => TestResourceNames.kafka
                                  | TestResourceNames.mongodb
                                  | TestResourceNames.rabbitmq
                                  | TestResourceNames.redis
                                  | TestResourceNames.postgres
                                  | TestResourceNames.efnpgsql
                                  | TestResourceNames.mysql
                                  | TestResourceNames.efmysql
                                  | TestResourceNames.sqlserver,
                "" or null => TestResourceNames.All,
                _ => throw new ArgumentException($"Unknown test scenario '{TestScenario}'")
            };
    ```
    
    Once `eforacle` is added it can run with the `oracle` scenario.
    
    The default is to run all the tests.
    
    Also:
    - Enable `cosmos` E2E tests on helix
    - make `TestResourceNames` into a `[Flag]` enum so multiple can be expressed at the same time.
    - And support dumping docker container logs for resources where the resource name does not match the container name prefix. For example `efnpgsql` vs `postgres`.
    radical authored and joperezr committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    966a8ec View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. Configuration menu
    Copy the full SHA
    fd8a3b6 View commit details
    Browse the repository at this point in the history