We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeab5c7 commit eb81248Copy full SHA for eb81248
support/test.go
@@ -80,6 +80,13 @@ func WithConfig(t *testing.T, cfg *rest.Config) Test {
80
}
81
82
83
+func WithNamespaceName(name string) Option[*corev1.Namespace] {
84
+ return ErrorOption[*corev1.Namespace](func(ns *corev1.Namespace) error {
85
+ ns.Name = name
86
+ return nil
87
+ })
88
+}
89
+
90
type T struct {
91
*gomega.WithT
92
t *testing.T
0 commit comments