Created
September 16, 2016 10:31
-
-
Save bloodeagle40234/b9c3677fddd7deecb7efcc96a42b5025 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test/unit/proxy/controllers/test_obj.py b/test/unit/proxy/controllers/test_obj.py | |
index aba3888..22d035f 100755 | |
--- a/test/unit/proxy/controllers/test_obj.py | |
+++ b/test/unit/proxy/controllers/test_obj.py | |
@@ -2227,7 +2227,7 @@ class TestECObjController(BaseObjectControllerMixin, unittest.TestCase): | |
policy = policy or self.policy | |
segment_size = policy.ec_segment_size | |
test_body = test_body or ( | |
- 'test' * segment_size)[:-random.randint(0, 1000)] | |
+ 'test' * segment_size)[:0] | |
timestamp = timestamp or Timestamp(time.time()) | |
etag = md5(test_body).hexdigest() | |
ec_archive_bodies = self._make_ec_archive_bodies(test_body, | |
test_GET_with_only_handoffs (test.unit.proxy.controllers.test_obj.TestECObjController) ... FAIL | |
====================================================================== | |
FAIL: test_GET_with_only_handoffs (test.unit.proxy.controllers.test_obj.TestECObjController) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 2427, in test_GET_with_only_handoffs | |
self.assertEqual(resp.status_int, 200) | |
AssertionError: 404 != 200 | |
-------------------- >> begin captured stdout << --------------------- | |
proxy-server ERROR: ERROR with Object server 10.0.0.14:1014/sda re: Trying to GET /v1/a/c/o: | |
Traceback (most recent call last): | |
File "/opt/stack/swift/swift/proxy/controllers/base.py", line 1121, in _make_node_request | |
possible_source = conn.getresponse() | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 1409, in getresponse | |
self.resp = get_response(self.req) | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 2328, in get_response | |
err)) | |
Exception: Frag index 0 not defined: node index 14, frags [0] | |
list index out of range | |
proxy-server ERROR: ERROR with Object server 10.0.0.15:1015/sda re: Trying to GET /v1/a/c/o: | |
Traceback (most recent call last): | |
File "/opt/stack/swift/swift/proxy/controllers/base.py", line 1121, in _make_node_request | |
possible_source = conn.getresponse() | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 1409, in getresponse | |
self.resp = get_response(self.req) | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 2328, in get_response | |
err)) | |
Exception: Frag index 1 not defined: node index 15, frags [1] | |
list index out of range | |
proxy-server ERROR: ERROR with Object server 10.0.0.16:1016/sda re: Trying to GET /v1/a/c/o: | |
Traceback (most recent call last): | |
File "/opt/stack/swift/swift/proxy/controllers/base.py", line 1121, in _make_node_request | |
possible_source = conn.getresponse() | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 1409, in getresponse | |
self.resp = get_response(self.req) | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 2328, in get_response | |
err)) | |
Exception: Frag index 2 not defined: node index 16, frags [2] | |
list index out of range | |
proxy-server ERROR: ERROR with Object server 10.0.0.17:1017/sda re: Trying to GET /v1/a/c/o: | |
Traceback (most recent call last): | |
File "/opt/stack/swift/swift/proxy/controllers/base.py", line 1121, in _make_node_request | |
possible_source = conn.getresponse() | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 1409, in getresponse | |
self.resp = get_response(self.req) | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 2328, in get_response | |
err)) | |
Exception: Frag index 3 not defined: node index 17, frags [3] | |
list index out of range | |
proxy-server ERROR: ERROR with Object server 10.0.0.18:1018/sda re: Trying to GET /v1/a/c/o: | |
Traceback (most recent call last): | |
File "/opt/stack/swift/swift/proxy/controllers/base.py", line 1121, in _make_node_request | |
possible_source = conn.getresponse() | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 1409, in getresponse | |
self.resp = get_response(self.req) | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 2328, in get_response | |
err)) | |
Exception: Frag index 4 not defined: node index 18, frags [4] | |
list index out of range | |
proxy-server ERROR: ERROR with Object server 10.0.0.19:1019/sda re: Trying to GET /v1/a/c/o: | |
Traceback (most recent call last): | |
File "/opt/stack/swift/swift/proxy/controllers/base.py", line 1121, in _make_node_request | |
possible_source = conn.getresponse() | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 1409, in getresponse | |
self.resp = get_response(self.req) | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 2328, in get_response | |
err)) | |
Exception: Frag index 5 not defined: node index 19, frags [5] | |
list index out of range | |
proxy-server ERROR: ERROR with Object server 10.0.0.20:1020/sda re: Trying to GET /v1/a/c/o: | |
Traceback (most recent call last): | |
File "/opt/stack/swift/swift/proxy/controllers/base.py", line 1121, in _make_node_request | |
possible_source = conn.getresponse() | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 1409, in getresponse | |
self.resp = get_response(self.req) | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 2328, in get_response | |
err)) | |
Exception: Frag index 6 not defined: node index 20, frags [6] | |
list index out of range | |
proxy-server ERROR: ERROR with Object server 10.0.0.21:1021/sda re: Trying to GET /v1/a/c/o: | |
Traceback (most recent call last): | |
File "/opt/stack/swift/swift/proxy/controllers/base.py", line 1121, in _make_node_request | |
possible_source = conn.getresponse() | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 1409, in getresponse | |
self.resp = get_response(self.req) | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 2328, in get_response | |
err)) | |
Exception: Frag index 7 not defined: node index 21, frags [7] | |
list index out of range | |
proxy-server ERROR: ERROR with Object server 10.0.0.22:1022/sda re: Trying to GET /v1/a/c/o: | |
Traceback (most recent call last): | |
File "/opt/stack/swift/swift/proxy/controllers/base.py", line 1121, in _make_node_request | |
possible_source = conn.getresponse() | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 1409, in getresponse | |
self.resp = get_response(self.req) | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 2328, in get_response | |
err)) | |
Exception: Frag index 8 not defined: node index 22, frags [8] | |
list index out of range | |
proxy-server ERROR: ERROR with Object server 10.0.0.23:1023/sda re: Trying to GET /v1/a/c/o: | |
Traceback (most recent call last): | |
File "/opt/stack/swift/swift/proxy/controllers/base.py", line 1121, in _make_node_request | |
possible_source = conn.getresponse() | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 1409, in getresponse | |
self.resp = get_response(self.req) | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 2328, in get_response | |
err)) | |
Exception: Frag index 9 not defined: node index 23, frags [9] | |
list index out of range | |
proxy-server ERROR: ERROR with Object server 10.0.0.24:1024/sda re: Trying to GET /v1/a/c/o: | |
Traceback (most recent call last): | |
File "/opt/stack/swift/swift/proxy/controllers/base.py", line 1121, in _make_node_request | |
possible_source = conn.getresponse() | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 1409, in getresponse | |
self.resp = get_response(self.req) | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 2328, in get_response | |
err)) | |
Exception: Frag index 10 not defined: node index 24, frags [10] | |
list index out of range | |
proxy-server ERROR: ERROR with Object server 10.0.0.25:1025/sda re: Trying to GET /v1/a/c/o: | |
Traceback (most recent call last): | |
File "/opt/stack/swift/swift/proxy/controllers/base.py", line 1121, in _make_node_request | |
possible_source = conn.getresponse() | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 1409, in getresponse | |
self.resp = get_response(self.req) | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 2328, in get_response | |
err)) | |
Exception: Frag index 11 not defined: node index 25, frags [11] | |
list index out of range | |
proxy-server ERROR: ERROR with Object server 10.0.0.26:1026/sda re: Trying to GET /v1/a/c/o: | |
Traceback (most recent call last): | |
File "/opt/stack/swift/swift/proxy/controllers/base.py", line 1121, in _make_node_request | |
possible_source = conn.getresponse() | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 1409, in getresponse | |
self.resp = get_response(self.req) | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 2328, in get_response | |
err)) | |
Exception: Frag index 12 not defined: node index 26, frags [12] | |
list index out of range | |
proxy-server ERROR: ERROR with Object server 10.0.0.27:1027/sda re: Trying to GET /v1/a/c/o: | |
Traceback (most recent call last): | |
File "/opt/stack/swift/swift/proxy/controllers/base.py", line 1121, in _make_node_request | |
possible_source = conn.getresponse() | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 1409, in getresponse | |
self.resp = get_response(self.req) | |
File "/opt/stack/swift/test/unit/proxy/controllers/test_obj.py", line 2328, in get_response | |
err)) | |
Exception: Frag index 13 not defined: node index 27, frags [13] | |
list index out of range | |
--------------------- >> end captured stdout << ---------------------- | |
'404 != 200' = '%s != %s' % (safe_repr(404), safe_repr(200)) | |
'404 != 200' = self._formatMessage('404 != 200', '404 != 200') | |
>> raise self.failureException('404 != 200') | |
---------------------------------------------------------------------- | |
Ran 1 test in 0.222s | |
FAILED (failures=1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment