forked from LaconicNetwork/kompose
Fix placement parser panic (#1121)
This commit is contained in:
@@ -386,7 +386,10 @@ func TestCheckLabelsPorts(t *testing.T) {
|
||||
func TestCheckPlacementCustomLabels(t *testing.T) {
|
||||
|
||||
placement := types.Placement{
|
||||
Constraints: []string{"node.labels.something == anything"},
|
||||
Constraints: []string{
|
||||
"node.labels.something == anything",
|
||||
"node.labels.monitor != xxx",
|
||||
},
|
||||
}
|
||||
output := loadV3Placement(placement.Constraints)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user