Skip to content

Commit

Permalink
add api of delete_bucket_referer
Browse files Browse the repository at this point in the history
  • Loading branch information
jayzhenghan committed Sep 16, 2020
1 parent 6776c0e commit adbe339
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qcloud_cos/cos_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2799,7 +2799,7 @@ def get_bucket_referer(self, Bucket, **kwargs):
return data

def delete_bucket_referer(self, Bucket, **kwargs):
"""获取bucket防盗链规则
"""删除bucket防盗链规则
:param Bucket(string): 存储桶名称.
:param kwargs(dict): 设置请求headers.
Expand Down
6 changes: 3 additions & 3 deletions ut/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ def _test_put_get_delete_bucket_origin():


def test_put_get_delete_bucket_referer():
"""测试设置获取bucket防盗链规则"""
"""测试设置获取删除bucket防盗链规则"""
referer_config = {
'Status': 'Enabled',
'RefererType': 'White-List',
Expand All @@ -1100,11 +1100,11 @@ def test_put_get_delete_bucket_referer():
Bucket=test_bucket,
)
response = client.delete_bucket_referer(
Bucket=test_bucker,
Bucket=test_bucket,
)
time.sleep(4)
response = client.get_bucker_referer(
Bucket=test_bucker,
Bucket=test_bucket,
)
assert len(response)==0

Expand Down

0 comments on commit adbe339

Please sign in to comment.