@@ -71,8 +71,7 @@ def test_notification_splits_dash_m_value_correctly(self,
7171class TestNotification (testcase .GsUtilIntegrationTestCase ):
7272 """Integration tests for notification command."""
7373
74- @unittest .skipUnless (NOTIFICATION_URL ,
75- 'Test requires notification URL configuration.' )
74+ @unittest .skip ('Object Change Notification (OCN) is deprecated; new channel creation is blocked.' )
7675 def test_watch_bucket (self ):
7776 """Tests creating a notification channel on a bucket."""
7877 bucket_uri = self .CreateBucket ()
@@ -91,8 +90,7 @@ def test_watch_bucket(self):
9190 self .assertIn ('token: %s' % token , stderr )
9291 self .assertIn ('identifier: %s' % identifier , stderr )
9392
94- @unittest .skipUnless (NOTIFICATION_URL ,
95- 'Test requires notification URL configuration.' )
93+ @unittest .skip ('Object Change Notification (OCN) is deprecated; new channel creation is blocked.' )
9694 def test_stop_channel (self ):
9795 """Tests stopping a notification channel on a bucket."""
9896 bucket_uri = self .CreateBucket ()
@@ -111,8 +109,7 @@ def test_stop_channel(self):
111109
112110 self .RunGsUtil (['notification' , 'stopchannel' , channel_id , resource_id ])
113111
114- @unittest .skipUnless (NOTIFICATION_URL ,
115- 'Test requires notification URL configuration.' )
112+ @unittest .skip ('Object Change Notification (OCN) is deprecated; new channel creation is blocked.' )
116113 def test_list_one_channel (self ):
117114 """Tests listing notification channel on a bucket."""
118115 # TODO(b/132277269): Re-enable these once the service-side bug is fixed.
0 commit comments