Add failing test for bucket versioning
This commit is contained in:
parent
01c47b671e
commit
19d12d3bc3
1 changed files with 10 additions and 0 deletions
|
|
@ -39,6 +39,16 @@ def test_s3_server_bucket_create():
|
|||
res.data.should.equal(b"test value")
|
||||
|
||||
|
||||
def test_s3_server_bucket_versioning():
|
||||
backend = server.create_backend_app("s3")
|
||||
test_client = backend.test_client()
|
||||
|
||||
# Just enough XML to enable versioning
|
||||
body = '<Status>Enabled</Status>'
|
||||
res = test_client.put('/?versioning', 'http://foobaz.localhost:5000', data=body)
|
||||
res.status_code.should.equal(200)
|
||||
|
||||
|
||||
def test_s3_server_post_to_bucket():
|
||||
backend = server.create_backend_app("s3")
|
||||
test_client = backend.test_client()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue