add config and secret to service in inspect test

Signed-off-by: Essam A. Hassan <es.hassan187@gmail.com>
This commit is contained in:
Essam A. Hassan 2018-04-16 01:39:01 +02:00
parent 3ae2d4b24c
commit 2b1f27ea5e
1 changed files with 12 additions and 0 deletions

View File

@ -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{
{