@@ -47,7 +47,8 @@ var _ = Describe("Installing bundles with new object types", Label("ObjectTypes"
4747 TeardownNamespace (generatedNamespace .GetName ())
4848 })
4949
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
5152 const (
5253 packageName = "busybox"
5354 channelName = "alpha"
@@ -141,6 +142,7 @@ var _ = Describe("Installing bundles with new object types", Label("ObjectTypes"
141142 pdbName = "busybox-pdb"
142143 priorityClassName = "super-priority"
143144 vpaName = "busybox-vpa"
145+ networkPolicyName = "busybox-networkpolicy"
144146 )
145147
146148 var resource = schema.GroupVersionResource {
@@ -164,6 +166,11 @@ var _ = Describe("Installing bundles with new object types", Label("ObjectTypes"
164166 _ , err := kubeClient .KubernetesInterface ().PolicyV1 ().PodDisruptionBudgets (generatedNamespace .GetName ()).Get (context .Background (), pdbName , metav1.GetOptions {})
165167 return err
166168 }).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" )
167174 })
168175
169176 AfterEach (func () {
0 commit comments