Skip to content

Commit 90ca373

Browse files
KoditkarVedantndeloof
authored andcommitted
Update breaking test cases ✅
Signed-off-by: Vedant Koditkar <[email protected]>
1 parent fb3f9e2 commit 90ca373

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

pkg/compose/ls_test.go

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,33 @@ func TestContainersToStacks(t *testing.T) {
3030
{
3131
ID: "service1",
3232
State: "running",
33-
Labels: map[string]string{api.ProjectLabel: "project1"},
33+
Labels: map[string]string{api.ProjectLabel: "project1", api.ConfigFilesLabel: "/home/docker-compose.yaml"},
3434
},
3535
{
3636
ID: "service2",
3737
State: "running",
38-
Labels: map[string]string{api.ProjectLabel: "project1"},
38+
Labels: map[string]string{api.ProjectLabel: "project1", api.ConfigFilesLabel: "/home/docker-compose.yaml"},
3939
},
4040
{
4141
ID: "service3",
4242
State: "running",
43-
Labels: map[string]string{api.ProjectLabel: "project2"},
43+
Labels: map[string]string{api.ProjectLabel: "project2", api.ConfigFilesLabel: "/home/project2-docker-compose.yaml"},
4444
},
4545
}
4646
stacks, err := containersToStacks(containers)
4747
assert.NilError(t, err)
4848
assert.DeepEqual(t, stacks, []api.Stack{
4949
{
50-
ID: "project1",
51-
Name: "project1",
52-
Status: "running(2)",
50+
ID: "project1",
51+
Name: "project1",
52+
Status: "running(2)",
53+
ConfigFiles: "/home/docker-compose.yaml",
5354
},
5455
{
55-
ID: "project2",
56-
Name: "project2",
57-
Status: "running(1)",
56+
ID: "project2",
57+
Name: "project2",
58+
Status: "running(1)",
59+
ConfigFiles: "/home/project2-docker-compose.yaml",
5860
},
5961
})
6062
}

0 commit comments

Comments
 (0)