mirror of
https://github.com/docker/compose.git
synced 2025-07-05 12:54:27 +02:00
Update breaking test cases ✅
Signed-off-by: Vedant Koditkar <vedant.koditkar@outlook.com>
This commit is contained in:
parent
fb3f9e270f
commit
90ca37344f
@ -30,17 +30,17 @@ 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)
|
||||
@ -50,11 +50,13 @@ func TestContainersToStacks(t *testing.T) {
|
||||
ID: "project1",
|
||||
Name: "project1",
|
||||
Status: "running(2)",
|
||||
ConfigFiles: "/home/docker-compose.yaml",
|
||||
},
|
||||
{
|
||||
ID: "project2",
|
||||
Name: "project2",
|
||||
Status: "running(1)",
|
||||
ConfigFiles: "/home/project2-docker-compose.yaml",
|
||||
},
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user