]> git-server-git.apps.pok.os.sepia.ceph.com Git - s3-tests.git/commitdiff
Merge pull request #33 from andrewgaul/multi-delete
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 27 Feb 2015 18:35:45 +0000 (10:35 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 27 Feb 2015 18:35:45 +0000 (10:35 -0800)
Ensure multi-delete removes keys

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
1  2 
s3tests/functional/test_s3.py

index 18c84953dd5435eaae0508b740c206d814e4cde0,6680965efc7e4c395614889e2e7e62e9b007e6ce..0f8a58383898f037b25e529b36624fb717d00e78
@@@ -877,19 -862,8 +879,20 @@@ def test_multi_object_delete()
          result = bucket.delete_keys(stored_keys)
          eq(len(result.deleted), 2)
          eq(len(result.errors), 0)
+         eq(len(bucket.get_all_keys()), 0)
  
 +@attr(resource='object')
 +@attr(method='put')
 +@attr(operation='write key')
 +@attr(assertion='correct etag')
 +def test_object_write_check_etag():
 +    bucket = get_new_bucket()
 +    key = bucket.new_key('foo')
 +    res = _make_request('PUT', bucket, key, body='bar', authenticated=True)
 +    eq(res.status, 200)
 +    eq(res.reason, 'OK')
 +    eq(res.getheader("ETag"), '"37b51d194a7513e45b56f6524f2d51f2"')
 +
  @attr(resource='object')
  @attr(method='all')
  @attr(operation='complete object life cycle')