Fixed bug in S3 put_bucket_tagging. Closes #1181.
This commit is contained in:
parent
d692219927
commit
7167e09ca5
2 changed files with 20 additions and 2 deletions
|
|
@ -1441,6 +1441,19 @@ def test_boto3_put_bucket_tagging():
|
|||
bucket_name = "mybucket"
|
||||
s3.create_bucket(Bucket=bucket_name)
|
||||
|
||||
# With 1 tag:
|
||||
resp = s3.put_bucket_tagging(Bucket=bucket_name,
|
||||
Tagging={
|
||||
"TagSet": [
|
||||
{
|
||||
"Key": "TagOne",
|
||||
"Value": "ValueOne"
|
||||
}
|
||||
]
|
||||
})
|
||||
resp['ResponseMetadata']['HTTPStatusCode'].should.equal(200)
|
||||
|
||||
# With multiple tags:
|
||||
resp = s3.put_bucket_tagging(Bucket=bucket_name,
|
||||
Tagging={
|
||||
"TagSet": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue