Permalink
Browse files

rgw: mark rgw tests that are expected to fail

  • Loading branch information...
1 parent 50a6275 commit 90b2bd7d9b3b10ad48576f450b0756d1053f26d0 @yehudasa yehudasa committed Nov 14, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/functional/tests.py
View
@@ -31,6 +31,7 @@
from test import get_config
from swift import Account, AuthenticationFailed, Connection, Container, \
File, ResponseError
+from nose.plugins.attrib import attr
config = get_config()
@@ -996,6 +997,7 @@ def testBlankMetadataName(self):
self.assertRaises(ResponseError, file.write_random)
self.assert_status(400)
+ @attr('fails_on_rgw')
def testMetadataNumberLimit(self):
number_limit = 90
@@ -1092,6 +1094,7 @@ def testRangedGets(self):
self.assert_(file.read(hdrs={'Range': r}) == data[0:1000])
+ @attr('fails_on_rgw')
def testFileSizeLimit(self):
limit = 5*2**30 + 2
tsecs = 3
@@ -1146,6 +1149,7 @@ def testBadHeaders(self):
file_length)
self.assert_status(200)
+ @attr('fails_on_rgw')
def testMetadataLengthLimits(self):
key_limit, value_limit = 128, 256
lengths = [[key_limit, value_limit], [key_limit, value_limit+1], \
@@ -1228,6 +1232,7 @@ def testHeadOnFileThatDoesNotExist(self):
self.assertRaises(ResponseError, file.info)
self.assert_status(404)
+ @attr('fails_on_rgw')
def testMetadataOnPost(self):
file = self.env.container.file(Utils.create_name())
file.write_random(self.env.file_size)
@@ -1285,6 +1290,7 @@ def testPostOnFileThatDoesNotExist(self):
self.assertRaises(ResponseError, file.sync_metadata)
self.assert_status(404)
+ @attr('fails_on_rgw')
def testMetadataOnPut(self):
for i in range(10):
metadata = {}

0 comments on commit 90b2bd7

Please sign in to comment.