From 90ca37344f796a68b646b115710e115f0128cbdc Mon Sep 17 00:00:00 2001 From: Vedant Koditkar Date: Mon, 14 Feb 2022 20:30:26 +0530 Subject: [PATCH] =?UTF-8?q?Update=20breaking=20test=20cases=20=E2=9C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Vedant Koditkar --- pkg/compose/ls_test.go | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/pkg/compose/ls_test.go b/pkg/compose/ls_test.go index bc46071fd..279fb2d67 100644 --- a/pkg/compose/ls_test.go +++ b/pkg/compose/ls_test.go @@ -30,31 +30,33 @@ func TestContainersToStacks(t *testing.T) { { ID: "service1", State: "running", - Labels: map[string]string{api.ProjectLabel: "project1"}, + Labels: map[string]string{api.ProjectLabel: "project1", api.ConfigFilesLabel: "/home/docker-compose.yaml"}, }, { ID: "service2", State: "running", - Labels: map[string]string{api.ProjectLabel: "project1"}, + Labels: map[string]string{api.ProjectLabel: "project1", api.ConfigFilesLabel: "/home/docker-compose.yaml"}, }, { ID: "service3", State: "running", - Labels: map[string]string{api.ProjectLabel: "project2"}, + Labels: map[string]string{api.ProjectLabel: "project2", api.ConfigFilesLabel: "/home/project2-docker-compose.yaml"}, }, } stacks, err := containersToStacks(containers) assert.NilError(t, err) assert.DeepEqual(t, stacks, []api.Stack{ { - ID: "project1", - Name: "project1", - Status: "running(2)", + ID: "project1", + Name: "project1", + Status: "running(2)", + ConfigFiles: "/home/docker-compose.yaml", }, { - ID: "project2", - Name: "project2", - Status: "running(1)", + ID: "project2", + Name: "project2", + Status: "running(1)", + ConfigFiles: "/home/project2-docker-compose.yaml", }, }) }