@@ -47,7 +47,8 @@ var _ = Describe("Installing bundles with new object types", Label("ObjectTypes"
47
47
TeardownNamespace (generatedNamespace .GetName ())
48
48
})
49
49
50
- When ("a bundle with a pdb, priorityclass, and VPA object is installed" , func () {
50
+ When ("a bundle that includes supported resources is installed" , func () {
51
+ // Supported resources installed are a NetworkPolicy, pdb, priorityclass, and VPA object
51
52
const (
52
53
packageName = "busybox"
53
54
channelName = "alpha"
@@ -141,6 +142,7 @@ var _ = Describe("Installing bundles with new object types", Label("ObjectTypes"
141
142
pdbName = "busybox-pdb"
142
143
priorityClassName = "super-priority"
143
144
vpaName = "busybox-vpa"
145
+ networkPolicyName = "busybox-networkpolicy"
144
146
)
145
147
146
148
var resource = schema.GroupVersionResource {
@@ -164,6 +166,11 @@ var _ = Describe("Installing bundles with new object types", Label("ObjectTypes"
164
166
_ , err := kubeClient .KubernetesInterface ().PolicyV1 ().PodDisruptionBudgets (generatedNamespace .GetName ()).Get (context .Background (), pdbName , metav1.GetOptions {})
165
167
return err
166
168
}).Should (Succeed (), "expected no error getting pdb object associated with CSV" )
169
+
170
+ Eventually (func () error {
171
+ _ , err := kubeClient .KubernetesInterface ().NetworkingV1 ().NetworkPolicies (generatedNamespace .GetName ()).Get (context .Background (), networkPolicyName , metav1.GetOptions {})
172
+ return err
173
+ }).Should (Succeed (), "expected no error finding networkpolicy object associated with CSV" )
167
174
})
168
175
169
176
AfterEach (func () {
0 commit comments