File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -30,31 +30,33 @@ func TestContainersToStacks(t *testing.T) {
30
30
{
31
31
ID : "service1" ,
32
32
State : "running" ,
33
- Labels : map [string ]string {api .ProjectLabel : "project1" },
33
+ Labels : map [string ]string {api .ProjectLabel : "project1" , api . ConfigFilesLabel : "/home/docker-compose.yaml" },
34
34
},
35
35
{
36
36
ID : "service2" ,
37
37
State : "running" ,
38
- Labels : map [string ]string {api .ProjectLabel : "project1" },
38
+ Labels : map [string ]string {api .ProjectLabel : "project1" , api . ConfigFilesLabel : "/home/docker-compose.yaml" },
39
39
},
40
40
{
41
41
ID : "service3" ,
42
42
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" },
44
44
},
45
45
}
46
46
stacks , err := containersToStacks (containers )
47
47
assert .NilError (t , err )
48
48
assert .DeepEqual (t , stacks , []api.Stack {
49
49
{
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" ,
53
54
},
54
55
{
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" ,
58
60
},
59
61
})
60
62
}
You can’t perform that action at this time.
0 commit comments