layer1: formalize namespace removal strategy
This commit is contained in:
@@ -145,3 +145,12 @@ func TestNamespaceEventFromObject(t *testing.T) {
|
||||
t.Fatalf("expected empty name for unsupported object")
|
||||
}
|
||||
}
|
||||
|
||||
func TestNamespaceRemovalStrategyValues(t *testing.T) {
|
||||
if NamespaceRemovalStrategyTrackOnly != "track-only" {
|
||||
t.Fatalf("unexpected track-only strategy value")
|
||||
}
|
||||
if NamespaceRemovalStrategyDispatchRemove != "dispatch-remove" {
|
||||
t.Fatalf("unexpected dispatch-remove strategy value")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user