Skip to content

Commit 9b2dc3d

Browse files
test invalid strategy
1 parent d34f5e4 commit 9b2dc3d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

internal/convert_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,13 @@ func TestConvertActiveClusterSelectionPolicy(t *testing.T) {
138138
},
139139
wantErr: true,
140140
},
141+
{
142+
name: "invalid strategy",
143+
policy: &ActiveClusterSelectionPolicy{
144+
Strategy: ActiveClusterSelectionStrategy(-1),
145+
},
146+
wantErr: true,
147+
},
141148
}
142149

143150
for _, test := range tests {

0 commit comments

Comments
 (0)