@@ -3429,10 +3429,8 @@ def test_notification_rules(b2_tool, bucket_name):
34293429 if 'writeBucketNotifications' not in auth_dict ['allowed' ]['capabilities' ]:
34303430 pytest .skip ('Test account does not have writeBucketNotifications capability' )
34313431
3432- private_preview_pattern = re .compile (r'FeaturePreviewWarning' )
34333432 assert b2_tool .should_succeed_json (
3434- ["bucket" , "notification-rule" , "list" , f"b2://{ bucket_name } " , "--json" ],
3435- expected_stderr_pattern = private_preview_pattern
3433+ ["bucket" , "notification-rule" , "list" , f"b2://{ bucket_name } " , "--json" ]
34363434 ) == []
34373435
34383436 notification_rule = {
@@ -3461,8 +3459,7 @@ def test_notification_rules(b2_tool, bucket_name):
34613459 "https://example.com/webhook" ,
34623460 "--event-type" ,
34633461 "b2:ObjectCreated:*" ,
3464- ],
3465- expected_stderr_pattern = private_preview_pattern
3462+ ]
34663463 )
34673464 expected_rules = [{** notification_rule , "isSuspended" : False , "suspensionReason" : "" }]
34683465 assert_dict_equal_ignore_extra (created_rule , expected_rules [0 ])
@@ -3480,8 +3477,7 @@ def test_notification_rules(b2_tool, bucket_name):
34803477 "--disable" ,
34813478 "--sign-secret" ,
34823479 secret ,
3483- ],
3484- expected_stderr_pattern = private_preview_pattern
3480+ ]
34853481 )
34863482 expected_rules [0 ].update ({"objectNamePrefix" : "prefix" , "isEnabled" : False })
34873483 expected_rules [0 ]["targetConfiguration" ]["hmacSha256SigningSecret" ] = secret
@@ -3490,18 +3486,15 @@ def test_notification_rules(b2_tool, bucket_name):
34903486 # read updated rules
34913487 assert_dict_equal_ignore_extra (
34923488 b2_tool .should_succeed_json (
3493- ["bucket" , "notification-rule" , "list" , f"b2://{ bucket_name } " , "--json" ],
3494- expected_stderr_pattern = private_preview_pattern
3489+ ["bucket" , "notification-rule" , "list" , f"b2://{ bucket_name } " , "--json" ]
34953490 ),
34963491 expected_rules ,
34973492 )
34983493
34993494 # delete rule by name
35003495 assert b2_tool .should_succeed (
3501- ["bucket" , "notification-rule" , "delete" , f"b2://{ bucket_name } " , "test-rule" ],
3502- expected_stderr_pattern = private_preview_pattern
3496+ ["bucket" , "notification-rule" , "delete" , f"b2://{ bucket_name } " , "test-rule" ]
35033497 ) == f"Rule 'test-rule' has been deleted from b2://{ bucket_name } /\n "
35043498 assert b2_tool .should_succeed_json (
3505- ["bucket" , "notification-rule" , "list" , f"b2://{ bucket_name } " , "--json" ],
3506- expected_stderr_pattern = private_preview_pattern
3499+ ["bucket" , "notification-rule" , "list" , f"b2://{ bucket_name } " , "--json" ]
35073500 ) == []
0 commit comments