Uploaded image for project: 'DeltaCloud'
  1. DeltaCloud
  2. DTACLOUD-498

mock driver doesn't update bucket size when a blob is created

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Server
    • None

    Description

      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>

      Attachments

        Activity

          People

            marios Marios Andreou
            jprovazn Jan Provaznik
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: