Jan Provaznik created DTACLOUD-498: -------------------------------------- Summary: mock driver doesn't update bucket size when a blob is created Key: DTACLOUD-498 URL: https://issues.apache.org/jira/browse/DTACLOUD-498 Project: DeltaCloud Issue Type: Bug Components: Server Reporter: Jan Provaznik Priority: Minor
If I create a blob for a mock driver, then bucket size returns incorrect number of blobs. It's not a big deal but it's annoying because it can happen when running deltacloud client tests (if blob deletion fails). 127.000.000.001.45166-127.000.000.001.03001: GET /api/buckets/bucket1 HTTP/1.1 Accept: application/xml Accept-Encoding: gzip, deflate Authorization: Basic bW9ja3VzZXI6bW9ja3Bhc3N3b3Jk User-Agent: Ruby Host: localhost:3001 127.000.000.001.03001-127.000.000.001.45166: HTTP/1.1 200 OK Content-Type: application/xml X-Backend-Runtime: 0.002238750457763672 Server: Apache-Deltacloud/1.1.1 X-Deltacloud-Driver: mock Content-Length: 505 ETag: 51560b495bc803adcb213dae216911a7 Cache-Control: max-age=0, private, must-revalidate Date: Mon, 25 Feb 2013 13:25:36 GMT Connection: keep-alive <?xml version='1.0' encoding='utf-8' ?> <bucket href='http://localhost:3001/api/buckets/bucket1' id='bucket1'> <name>bucket1</name> <size>3</size> <blob href='http://localhost:3001/api/buckets/bucket1/blob1' id='blob1'></blob> <blob href='http://localhost:3001/api/buckets/bucket1/some_new_blob' id='some_new_blob'></blob> <blob href='http://localhost:3001/api/buckets/bucket1/blob2' id='blob2'></blob> <blob href='http://localhost:3001/api/buckets/bucket1/blob3' id='blob3'></blob> </bucket> -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira