1
0
mirror of https://github.com/moby/moby.git synced 2025-07-29 07:21:35 +03:00

Replace service ps cli tests with service inspect API test.

Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
Daniel Nephin
2017-06-14 14:32:15 -07:00
parent 98a4613017
commit 6cd6d8646a
4 changed files with 183 additions and 89 deletions

View File

@ -69,9 +69,7 @@ func (s *DockerSwarmSuite) TestAPISwarmServicesCreate(c *check.C) {
c.Assert(err, checker.IsNil)
defer cli.Close()
options := types.ServiceInspectOptions{
InsertDefaults: true,
}
options := types.ServiceInspectOptions{InsertDefaults: true}
// insertDefaults inserts UpdateConfig when service is fetched by ID
resp, _, err := cli.ServiceInspectWithRaw(context.Background(), id, options)