Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
joshlopes committed Nov 10, 2022
1 parent 8513f51 commit a04d26a
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions cli/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,17 +190,25 @@ func (s *SuiteConfig) TestLabelsConfig(c *C) {
},
ExpectedConfig: Config{
ExecJobs: map[string]*ExecJobConfig{
"job1": &ExecJobConfig{ExecJob: core.ExecJob{BareJob: core.BareJob{
Schedule: "schedule1",
Command: "command1",
}}},
"job2": &ExecJobConfig{ExecJob: core.ExecJob{
BareJob: core.BareJob{
Schedule: "schedule2",
Command: "command2",
"job1": &ExecJobConfig{
ExecJob: core.ExecJob{
BareJob: core.BareJob{
Schedule: "schedule1",
Command: "command1",
},
},
Container: "other",
}},
FromDockerLabel: true,
},
"job2": &ExecJobConfig{
ExecJob: core.ExecJob{
BareJob: core.BareJob{
Schedule: "schedule2",
Command: "command2",
},
Container: "other",
},
FromDockerLabel: true,
},
},
},
Comment: "Exec jobs from non-service container, saves container name to be able to exect to",
Expand All @@ -221,7 +229,8 @@ func (s *SuiteConfig) TestLabelsConfig(c *C) {
Schedule: "schedule1",
Command: "command1",
}},
OverlapConfig: middlewares.OverlapConfig{NoOverlap: true},
OverlapConfig: middlewares.OverlapConfig{NoOverlap: true},
FromDockerLabel: true,
},
},
},
Expand Down

0 comments on commit a04d26a

Please sign in to comment.