Skip to content

[28.x] e2e/testutils: fix incorrect use of PluginConfigInterface#6333

Merged
austinvazquez merged 1 commit intodocker:28.xfrom
thaJeztah:28.x_fix_plugin_tests
Aug 20, 2025
Merged

[28.x] e2e/testutils: fix incorrect use of PluginConfigInterface#6333
austinvazquez merged 1 commit intodocker:28.xfrom
thaJeztah:28.x_fix_plugin_tests

Conversation

@thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Aug 20, 2025

This code was using the type incorrectly; current versions of the API MarshalText ignore this mistake, but the moby/moby/api module produces an error:

=== Failed
=== FAIL: e2e/global TestPromptExitCode/plugin_install (0.28s)
    cli_test.go:203: assertion failed: error is not nil: json: error calling MarshalText for type plugin.CapabilityID: capability "docker.dummy/1.0" cannot contain a dot

=== FAIL: e2e/global TestPromptExitCode/plugin_upgrade (0.26s)
    cli_test.go:203: assertion failed: error is not nil: json: error calling MarshalText for type plugin.CapabilityID: capability "docker.dummy/1.0" cannot contain a dot

- What I did

- How I did it

- How to verify it

- Human readable description for the release notes

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

This code was using the type incorrectly; current versions of the
API MarshalText ignore this mistake, but the moby/moby/api module
produces an error:

    === Failed
    === FAIL: e2e/global TestPromptExitCode/plugin_install (0.28s)
        cli_test.go:203: assertion failed: error is not nil: json: error calling MarshalText for type plugin.CapabilityID: capability "docker.dummy/1.0" cannot contain a dot

    === FAIL: e2e/global TestPromptExitCode/plugin_upgrade (0.26s)
        cli_test.go:203: assertion failed: error is not nil: json: error calling MarshalText for type plugin.CapabilityID: capability "docker.dummy/1.0" cannot contain a dot

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@codecov-commenter
Copy link

codecov-commenter commented Aug 20, 2025

Codecov Report

❌ Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
e2e/testutils/plugins.go 0.00% 5 Missing ⚠️

📢 Thoughts on this report? Let us know!

@austinvazquez austinvazquez merged commit aa44c43 into docker:28.x Aug 20, 2025
115 of 116 checks passed
@thaJeztah thaJeztah deleted the 28.x_fix_plugin_tests branch August 21, 2025 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants