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

client: TestNewClientWithOpsFromEnv(): use sub-tests #44182

Merged

Conversation

thaJeztah
Copy link
Member

Had this stashed as part of some other changes, so thought I'd push as a PR; with this patch:

=== RUN   TestNewClientWithOpsFromEnv/invalid_cert_path
=== RUN   TestNewClientWithOpsFromEnv/default_api_version_with_cert_path
=== RUN   TestNewClientWithOpsFromEnv/default_api_version_with_cert_path_and_tls_verify
=== RUN   TestNewClientWithOpsFromEnv/default_api_version_with_cert_path_and_host
=== RUN   TestNewClientWithOpsFromEnv/invalid_docker_host
=== RUN   TestNewClientWithOpsFromEnv/invalid_docker_host,_with_good_format
=== RUN   TestNewClientWithOpsFromEnv/override_api_version
--- PASS: TestNewClientWithOpsFromEnv (0.00s)
    --- PASS: TestNewClientWithOpsFromEnv/default_api_version (0.00s)
    --- PASS: TestNewClientWithOpsFromEnv/invalid_cert_path (0.00s)
    --- PASS: TestNewClientWithOpsFromEnv/default_api_version_with_cert_path (0.00s)
    --- PASS: TestNewClientWithOpsFromEnv/default_api_version_with_cert_path_and_tls_verify (0.00s)
    --- PASS: TestNewClientWithOpsFromEnv/default_api_version_with_cert_path_and_host (0.00s)
    --- PASS: TestNewClientWithOpsFromEnv/invalid_docker_host (0.00s)
    --- PASS: TestNewClientWithOpsFromEnv/invalid_docker_host,_with_good_format (0.00s)
    --- PASS: TestNewClientWithOpsFromEnv/override_api_version (0.00s)

PASS

Signed-off-by: Sebastiaan van Stijn github@gone.nl

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Had this stashed as part of some other changes, so thought I'd push
as a PR; with this patch:

    === RUN   TestNewClientWithOpsFromEnv/invalid_cert_path
    === RUN   TestNewClientWithOpsFromEnv/default_api_version_with_cert_path
    === RUN   TestNewClientWithOpsFromEnv/default_api_version_with_cert_path_and_tls_verify
    === RUN   TestNewClientWithOpsFromEnv/default_api_version_with_cert_path_and_host
    === RUN   TestNewClientWithOpsFromEnv/invalid_docker_host
    === RUN   TestNewClientWithOpsFromEnv/invalid_docker_host,_with_good_format
    === RUN   TestNewClientWithOpsFromEnv/override_api_version
    --- PASS: TestNewClientWithOpsFromEnv (0.00s)
        --- PASS: TestNewClientWithOpsFromEnv/default_api_version (0.00s)
        --- PASS: TestNewClientWithOpsFromEnv/invalid_cert_path (0.00s)
        --- PASS: TestNewClientWithOpsFromEnv/default_api_version_with_cert_path (0.00s)
        --- PASS: TestNewClientWithOpsFromEnv/default_api_version_with_cert_path_and_tls_verify (0.00s)
        --- PASS: TestNewClientWithOpsFromEnv/default_api_version_with_cert_path_and_host (0.00s)
        --- PASS: TestNewClientWithOpsFromEnv/invalid_docker_host (0.00s)
        --- PASS: TestNewClientWithOpsFromEnv/invalid_docker_host,_with_good_format (0.00s)
        --- PASS: TestNewClientWithOpsFromEnv/override_api_version (0.00s)
PASS

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added status/2-code-review area/testing kind/refactor PR's that refactor, or clean-up code labels Sep 22, 2022
@thaJeztah thaJeztah added this to the v-next milestone Sep 22, 2022
@thaJeztah
Copy link
Member Author

Thx! Let me bring this one in 👍

@thaJeztah thaJeztah merged commit 2a7908c into moby:master Dec 27, 2022
@thaJeztah thaJeztah deleted the subtests_TestNewClientWithOpsFromEnv branch December 27, 2022 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/testing kind/refactor PR's that refactor, or clean-up code status/2-code-review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants