Austin Vazquez
909e32b27d
client: refactor plugin api client functions to define options/results structs
...
Co-authored-by: Claude <noreply@anthropic.com >
Signed-off-by: Austin Vazquez <austin.vazquez@docker.com >
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-10-22 13:45:03 +02:00
Sebastiaan van Stijn
ebc92e015a
client: PluginInspectWithRaw: refactor and rename to PluginInspect
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-10-21 23:14:08 +02:00
Cory Snider
7ea066c8d1
client: add Filters type
...
Add a new type to use for building filter predicates for API requests,
replacing "./api/types/filters".Args in the client. Remove the now
unused api/types/filters package.
Signed-off-by: Cory Snider <csnider@mirantis.com >
2025-10-08 12:06:31 -04:00
Sebastiaan van Stijn
d3e45f8743
testutil: move back to internal
...
This package was originally internal, but was moved out when BuildKit
used it for its integration tests. That's no longer the case, so we
can make it internal again.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-09-08 10:08:30 +02:00
Sebastiaan van Stijn
c13266d2c0
api/types: move plugin types to api/types/plugin
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2025-08-05 15:42:57 +02:00
Derek McGowan
f74e5d48b3
Create github.com/moby/moby/v2 module
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2025-07-31 10:13:29 -07:00
Derek McGowan
ee24dcec3d
Move swarm runtime plugin storage type to internal
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2025-07-28 18:18:39 -07:00
Cory Snider
b93ad81898
api/types: move plugin client options into client
...
These types are only consumed by the client, not the daemon.
Signed-off-by: Cory Snider <csnider@mirantis.com >
2025-07-25 19:51:58 +02:00
Derek McGowan
afd6487b2e
Create github.com/moby/moby/api module
...
Signed-off-by: Derek McGowan <derek@mcg.dev >
2025-07-21 09:30:05 -07:00
Brian Goff
e8dc902781
Wire up tests to support otel tracing
...
Integration tests will now configure clients to propagate traces as well
as create spans for all tests.
Some extra changes were needed (or desired for trace propagation) in the
test helpers to pass through tracing spans via context.
Signed-off-by: Brian Goff <cpuguy83@gmail.com >
2023-09-07 18:38:22 +00:00
Djordje Lukic
84a4f37cf7
test: use info from the version endpoint for arch checks
...
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com >
2023-08-31 09:36:48 +02:00
Eng Zer Jun
c55a4ac779
refactor: move from io/ioutil to io and os package
...
The io/ioutil package has been deprecated in Go 1.16. This commit
replaces the existing io/ioutil functions with their new definitions in
io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com >
2021-08-27 14:56:57 +08:00
Sebastiaan van Stijn
9f0b3f5609
bump gotest.tools v3.0.1 for compatibility with Go 1.14
...
full diff: https://github.com/gotestyourself/gotest.tools/compare/v2.3.0...v3.0.1
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2020-02-11 00:06:42 +01:00
Sebastiaan van Stijn
554d9cec25
testutil: update WithExperimental signature to be a daemon.Option
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2019-09-30 17:38:24 +02:00
Justen Martin
548623b758
Use unique names in integration/service/plugin_test.go
...
Signed-off-by: Justen Martin <jmart@the-coder.com >
2019-09-11 19:09:54 -05:00
Sam Whited
b37c214e3c
testutil: make testing packages public
...
This was done with something along the lines of:
```
mv internal/test testutil
pushd testutil/; grep -IRl "package test" | xargs -I '{}' sed -i -e 's|package test|package testutil|g' {}; popd
mv internal/testutil/*.go testutil/ && rm -rf internal/
grep -IRl "github.com\/docker\/docker\/internal\/test" | xargs -I '{}' sed -i -e 's|github.com/docker/docker/internal/test|github.com/docker/docker/test|g' {}
goimports .
```
I also modified the basic plugin path in testutil/fixtures/plugin.
Signed-off-by: Sam Whited <sam@samwhited.com >
2019-09-11 07:47:23 -05:00
Sune Keller
fca5ee3bd5
Support environment vars in Swarm plugins services
...
Allow specifying environment variables when installing an engine plugin
as a Swarm service. Invalid environment variable entries (without an
equals (`=`) char) will be ignored.
Signed-off-by: Sune Keller <absukl@almbrand.dk >
2019-04-07 09:48:19 +02:00
Brian Goff
e063099f91
Completely remove d.NewClient from testing tools
...
Favor `d.NewClientT` instead.
Signed-off-by: Brian Goff <cpuguy83@gmail.com >
2019-02-07 16:07:02 -08:00
Sebastiaan van Stijn
2b7d34977e
Use constant for task runtime value
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2018-07-17 20:41:25 +02:00
Vincent Demeester
3845728524
Update tests to use gotest.tools 👼
...
Signed-off-by: Vincent Demeester <vincent@sbr.pm >
2018-06-13 09:04:30 +02:00
Vincent Demeester
ef2c2040c2
Skip some test on remote daemon for e2e run(s)
...
We really need to run those on the CI too at some point.
Signed-off-by: Vincent Demeester <vincent@sbr.pm >
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-04-26 16:25:52 +00:00
Vincent Demeester
aa0db6f9e1
Migrate TestAPISwarmServicesPlugin to integration
...
Also starts to create more "poll/check" function to `internal/test/daemon`.
Signed-off-by: Vincent Demeester <vincent@sbr.pm >
2018-04-18 16:18:53 +02:00