mirror of
https://github.com/docker/cli.git
synced 2026-09-25 17:02:07 -04:00
Add remove flags for service update
with unit tests Signed-off-by: Daniel Nephin <dnephin@docker.com> Upstream-commit: dc33fc1ff433fcc70efc22f5cea9b87c6ec64a3b Component: engine
This commit is contained in:
@@ -22,7 +22,7 @@ func (s *DockerSwarmSuite) TestServiceUpdatePort(c *check.C) {
|
||||
waitAndAssert(c, defaultReconciliationTimeout, d.checkActiveContainerCount, checker.Equals, 1)
|
||||
|
||||
// Update the service: changed the port mapping from 8080:8081 to 8082:8083.
|
||||
_, err = d.Cmd("service", "update", "-p", "8082:8083", serviceName)
|
||||
_, err = d.Cmd("service", "update", "-p", "8082:8083", "--remove-publish", "8081", serviceName)
|
||||
c.Assert(err, checker.IsNil)
|
||||
|
||||
// Inspect the service and verify port mapping
|
||||
|
||||
Reference in New Issue
Block a user