MCPcopy Create free account
hub / github.com/docker/cli / TestToServiceMaxReplicasGlobalModeConflict

Function TestToServiceMaxReplicasGlobalModeConflict

cli/command/service/opts_test.go:355–362  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

353}
354
355func TestToServiceMaxReplicasGlobalModeConflict(t *testing.T) {
356 opt := serviceOptions{
357 mode: "global",
358 maxReplicas: 1,
359 }
360 _, err := opt.ToServiceMode()
361 assert.Error(t, err, "replicas-max-per-node can only be used with replicated or replicated-job mode")
362}
363
364func TestToServiceSysCtls(t *testing.T) {
365 o := newServiceOptions()

Callers

nothing calls this directly

Calls 2

ToServiceModeMethod · 0.95
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…