From 2b1f27ea5e8a777f8fa4d75ed97b4998e985428b Mon Sep 17 00:00:00 2001 From: "Essam A. Hassan" Date: Mon, 16 Apr 2018 01:39:01 +0200 Subject: [PATCH] add config and secret to service in inspect test Signed-off-by: Essam A. Hassan --- cli/command/service/inspect_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cli/command/service/inspect_test.go b/cli/command/service/inspect_test.go index 7339dc968f..16088b0811 100644 --- a/cli/command/service/inspect_test.go +++ b/cli/command/service/inspect_test.go @@ -44,6 +44,18 @@ func formatServiceInspect(t *testing.T, format formatter.Format, now time.Time) TaskTemplate: swarm.TaskSpec{ ContainerSpec: &swarm.ContainerSpec{ Image: "foo/bar@sha256:this_is_a_test", + Configs: []*swarm.ConfigReference{ + { + ConfigID: "mtc3i44r1awdoziy2iceg73z8", + ConfigName: "configtest.conf", + }, + }, + Secrets: []*swarm.SecretReference{ + { + SecretID: "3hv39ehbbb4hdozo7spod9ftn", + SecretName: "secrettest.conf", + }, + }, }, Networks: []swarm.NetworkAttachmentConfig{ {