mirror of https://github.com/docker/cli.git
add config and secret to service in inspect test
Signed-off-by: Essam A. Hassan <es.hassan187@gmail.com>
This commit is contained in:
parent
3ae2d4b24c
commit
2b1f27ea5e
|
@ -44,6 +44,18 @@ func formatServiceInspect(t *testing.T, format formatter.Format, now time.Time)
|
||||||
TaskTemplate: swarm.TaskSpec{
|
TaskTemplate: swarm.TaskSpec{
|
||||||
ContainerSpec: &swarm.ContainerSpec{
|
ContainerSpec: &swarm.ContainerSpec{
|
||||||
Image: "foo/bar@sha256:this_is_a_test",
|
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{
|
Networks: []swarm.NetworkAttachmentConfig{
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue