@@ -214,9 +214,14 @@ var _ = Describe("Template validator operand", func() {
214214 Entry ("[test_id:4912] deployment" , & deploymentRes ),
215215 Entry ("[test_id:TODO] network policy kube api and dns" , & networkPolicyKubeAPIAndDNSRes ),
216216 Entry ("[test_id:TODO] network policy webhook and metrics" , & networkPolicyWebhookAndMetricsRes ),
217- Entry ("[test_id:TODO] PodDisruptionBudget" , & podDisruptionBudgetRes ),
218217 )
219218
219+ It ("[test_id:TODO] PodDisruptionBudget" , decorators .Conformance , func () {
220+ strategy .SkipUnlessHighlyAvailableTopologyMode ()
221+ err := apiClient .Get (ctx , podDisruptionBudgetRes .GetKey (), podDisruptionBudgetRes .NewResource ())
222+ Expect (err ).ToNot (HaveOccurred ())
223+ })
224+
220225 DescribeTable ("should set app labels" , expectAppLabels ,
221226 Entry ("[test_id:5824]cluster role" , & clusterRoleRes ),
222227 Entry ("[test_id:5825]cluster role binding" , & clusterRoleBindingRes ),
@@ -228,8 +233,12 @@ var _ = Describe("Template validator operand", func() {
228233 Entry ("[test_id:5828]deployment" , & deploymentRes ),
229234 Entry ("[test_id:TODO]network policy kube api and dns" , & networkPolicyKubeAPIAndDNSRes ),
230235 Entry ("[test_id:TODO]network policy webhook and metrics" , & networkPolicyWebhookAndMetricsRes ),
231- Entry ("[test_id:TODO] PodDisruptionBudget" , & podDisruptionBudgetRes ),
232236 )
237+
238+ It ("[test_id:TODO] should set app labels on PodDisruptionBudget" , func () {
239+ strategy .SkipUnlessHighlyAvailableTopologyMode ()
240+ expectAppLabels (& podDisruptionBudgetRes )
241+ })
233242 })
234243
235244 Context ("resource deletion" , func () {
@@ -244,8 +253,12 @@ var _ = Describe("Template validator operand", func() {
244253 Entry ("[test_id:4924] deployment" , & deploymentRes ),
245254 Entry ("[test_id:TODO] network policy kube api and dns" , & networkPolicyKubeAPIAndDNSRes ),
246255 Entry ("[test_id:TODO] network policy webhook and metrics" , & networkPolicyWebhookAndMetricsRes ),
247- Entry ("[test_id:TODO] PodDisruptionBudget" , & podDisruptionBudgetRes ),
248256 )
257+
258+ It ("[test_id:TODO] PodDisruptionBudget recreate after delete" , decorators .Conformance , func () {
259+ strategy .SkipUnlessHighlyAvailableTopologyMode ()
260+ expectRecreateAfterDelete (& podDisruptionBudgetRes )
261+ })
249262 })
250263
251264 Context ("resource change" , func () {
@@ -259,9 +272,13 @@ var _ = Describe("Template validator operand", func() {
259272 Entry ("[test_id:4925] deployment" , & deploymentRes ),
260273 Entry ("[test_id:TODO] network policy kube api and dns" , & networkPolicyKubeAPIAndDNSRes ),
261274 Entry ("[test_id:TODO] network policy webhook and metrics" , & networkPolicyWebhookAndMetricsRes ),
262- Entry ("[test_id:TODO] PodDisruptionBudget" , & podDisruptionBudgetRes ),
263275 )
264276
277+ It ("[test_id:TODO] should restore modified PodDisruptionBudget" , decorators .Conformance , func () {
278+ strategy .SkipUnlessHighlyAvailableTopologyMode ()
279+ expectRestoreAfterUpdate (& podDisruptionBudgetRes )
280+ })
281+
265282 Context ("with pause" , func () {
266283 BeforeEach (func () {
267284 strategy .SkipSspUpdateTestsIfNeeded ()
@@ -281,8 +298,12 @@ var _ = Describe("Template validator operand", func() {
281298 Entry ("[test_id:5539] deployment" , & deploymentRes ),
282299 Entry ("[test_id:TODO] network policy kube api and dns" , & networkPolicyKubeAPIAndDNSRes ),
283300 Entry ("[test_id:TODO] network policy webhook and metrics" , & networkPolicyWebhookAndMetricsRes ),
284- Entry ("[test_id:TODO] PodDisruptionBudget" , & podDisruptionBudgetRes ),
285301 )
302+
303+ It ("[test_id:TODO] should restore modified PodDisruptionBudget with pause" , decorators .Conformance , func () {
304+ strategy .SkipUnlessHighlyAvailableTopologyMode ()
305+ expectRestoreAfterUpdateWithPause (& podDisruptionBudgetRes )
306+ })
286307 })
287308
288309 DescribeTable ("should restore modified app labels" , expectAppLabelsRestoreAfterUpdate ,
@@ -295,8 +316,12 @@ var _ = Describe("Template validator operand", func() {
295316 Entry ("[test_id:6209] deployment" , & deploymentRes ),
296317 Entry ("[test_id:TODO] network policy kube api and dns" , & networkPolicyKubeAPIAndDNSRes ),
297318 Entry ("[test_id:TODO] network policy webhook and metrics" , & networkPolicyWebhookAndMetricsRes ),
298- Entry ("[test_id:TODO] PodDisruptionBudget" , & podDisruptionBudgetRes ),
299319 )
320+
321+ It ("[test_id:TODO] should restore modified app labels on PodDisruptionBudget" , func () {
322+ strategy .SkipUnlessHighlyAvailableTopologyMode ()
323+ expectAppLabelsRestoreAfterUpdate (& podDisruptionBudgetRes )
324+ })
300325 })
301326
302327 It ("[test_id:4913] should successfully start template-validator pod" , decorators .Conformance , func () {
0 commit comments