From 5d2c366c500c663af14fb4c3828b556fdf1fe476 Mon Sep 17 00:00:00 2001 From: Sameer Shaik Date: Fri, 24 Apr 2026 17:16:49 +0530 Subject: [PATCH] Skip watchbucket and stopchannel tests in favour of OCN deprecation --- gslib/tests/test_notification.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/gslib/tests/test_notification.py b/gslib/tests/test_notification.py index c8f00422b2..e0b6bde0c4 100644 --- a/gslib/tests/test_notification.py +++ b/gslib/tests/test_notification.py @@ -71,8 +71,7 @@ def test_notification_splits_dash_m_value_correctly(self, class TestNotification(testcase.GsUtilIntegrationTestCase): """Integration tests for notification command.""" - @unittest.skipUnless(NOTIFICATION_URL, - 'Test requires notification URL configuration.') + @unittest.skip('Object Change Notification (OCN) is deprecated; new channel creation is blocked.') def test_watch_bucket(self): """Tests creating a notification channel on a bucket.""" bucket_uri = self.CreateBucket() @@ -91,8 +90,7 @@ def test_watch_bucket(self): self.assertIn('token: %s' % token, stderr) self.assertIn('identifier: %s' % identifier, stderr) - @unittest.skipUnless(NOTIFICATION_URL, - 'Test requires notification URL configuration.') + @unittest.skip('Object Change Notification (OCN) is deprecated; new channel creation is blocked.') def test_stop_channel(self): """Tests stopping a notification channel on a bucket.""" bucket_uri = self.CreateBucket() @@ -111,8 +109,7 @@ def test_stop_channel(self): self.RunGsUtil(['notification', 'stopchannel', channel_id, resource_id]) - @unittest.skipUnless(NOTIFICATION_URL, - 'Test requires notification URL configuration.') + @unittest.skip('Object Change Notification (OCN) is deprecated; new channel creation is blocked.') def test_list_one_channel(self): """Tests listing notification channel on a bucket.""" # TODO(b/132277269): Re-enable these once the service-side bug is fixed.