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

Ruby Client: failing tests likely require fixtures updates

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Client (Ruby)
    • None
    • Deltacloud commit version: 6a0bf40c23916c5a6f9befd4dd6d7829bf10b480
      Mock provider fixtures

    Description

      Below is the failing client test output:

      [rlandy@localhost tests]$ ruby keys_test.rb
      Run options: --seed 20794

      1. Running tests:

      .EEE.

      Finished tests in 2.267868s, 2.2047 tests/s, 5.7323 assertions/s.

      1) Error:
      test_0003_should raise error if you create a key with the same name as an existing key(Operations on Keys):
      DeltaCloud::HTTPError::NotFound: 404

      DeltaCloud::HTTPError::ClientError: Resource not found

      ././../lib/./errors.rb:77:in `on'
      ././../lib/./errors.rb:122:in `server_error'
      ././../lib/./errors.rb:72:in `instance_eval'
      ././../lib/./errors.rb:72:in `initialize'
      ././../lib/./errors.rb:117:in `new'
      ././../lib/./errors.rb:117:in `server_error'
      ././../lib/deltacloud.rb:374:in `response_error'
      ././../lib/deltacloud.rb:403:in `request'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in `call'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in `process_result'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `transmit'
      /usr/lib/ruby/1.8/net/http.rb:543:in `start'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/resource.rb:54:in `get'
      ././../lib/deltacloud.rb:402:in `send'
      ././../lib/deltacloud.rb:402:in `request'
      ././../lib/deltacloud.rb:144:in `key'
      keys_test.rb:36:in `create_key_if_necessary'
      keys_test.rb:72:in `test_0003_should raise error if you create a key with the same name as an existing key'
      ././../lib/deltacloud.rb:83:in `initialize'
      ././../lib/deltacloud.rb:42:in `new'
      ././../lib/deltacloud.rb:42:in `new'
      keys_test.rb:70:in `test_0003_should raise error if you create a key with the same name as an existing key'

      2) Error:
      test_0002_should allow retrieval of an existing named key(Operations on Keys):
      DeltaCloud::HTTPError::NotFound: 404

      DeltaCloud::HTTPError::ClientError: Resource not found

      ././../lib/./errors.rb:77:in `on'
      ././../lib/./errors.rb:122:in `server_error'
      ././../lib/./errors.rb:72:in `instance_eval'
      ././../lib/./errors.rb:72:in `initialize'
      ././../lib/./errors.rb:117:in `new'
      ././../lib/./errors.rb:117:in `server_error'
      ././../lib/deltacloud.rb:374:in `response_error'
      ././../lib/deltacloud.rb:403:in `request'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in `call'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in `process_result'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `transmit'
      /usr/lib/ruby/1.8/net/http.rb:543:in `start'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/resource.rb:54:in `get'
      ././../lib/deltacloud.rb:402:in `send'
      ././../lib/deltacloud.rb:402:in `request'
      ././../lib/deltacloud.rb:144:in `key'
      keys_test.rb:36:in `create_key_if_necessary'
      keys_test.rb:63:in `test_0002_should allow retrieval of an existing named key'
      ././../lib/deltacloud.rb:83:in `initialize'
      ././../lib/deltacloud.rb:42:in `new'
      ././../lib/deltacloud.rb:42:in `new'
      keys_test.rb:61:in `test_0002_should allow retrieval of an existing named key'

      3) Error:
      test_0004_should allow successful destruction of an existing key(Operations on Keys):
      DeltaCloud::HTTPError::NotFound: 404

      DeltaCloud::HTTPError::ClientError: Resource not found

      ././../lib/./errors.rb:77:in `on'
      ././../lib/./errors.rb:122:in `server_error'
      ././../lib/./errors.rb:72:in `instance_eval'
      ././../lib/./errors.rb:72:in `initialize'
      ././../lib/./errors.rb:117:in `new'
      ././../lib/./errors.rb:117:in `server_error'
      ././../lib/deltacloud.rb:374:in `response_error'
      ././../lib/deltacloud.rb:403:in `request'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in `call'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in `process_result'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `transmit'
      /usr/lib/ruby/1.8/net/http.rb:543:in `start'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/resource.rb:54:in `get'
      ././../lib/deltacloud.rb:402:in `send'
      ././../lib/deltacloud.rb:402:in `request'
      ././../lib/deltacloud.rb:144:in `key'
      keys_test.rb:36:in `create_key_if_necessary'
      keys_test.rb:82:in `test_0004_should allow successful destruction of an existing key'
      ././../lib/deltacloud.rb:83:in `initialize'
      ././../lib/deltacloud.rb:42:in `new'
      ././../lib/deltacloud.rb:42:in `new'
      keys_test.rb:80:in `test_0004_should allow successful destruction of an existing key'

      5 tests, 13 assertions, 0 failures, 3 errors, 0 skips
      [rlandy@localhost tests]$

      ----------------------------------------------

      [rlandy@localhost tests]$ ruby buckets_test.rb
      Run options: --seed 10086

      1. Running tests:

      .......E.

      Finished tests in 8.374897s, 1.0746 tests/s, 6.3284 assertions/s.

      1) Error:
      test_0002_should allow deletion of an existing bucket(Operations on buckets):
      DeltaCloud::HTTPError::NotFound: 404

      DeltaCloud::HTTPError::ClientError: Resource not found

      ././../lib/./errors.rb:77:in `on'
      ././../lib/./errors.rb:122:in `server_error'
      ././../lib/./errors.rb:72:in `instance_eval'
      ././../lib/./errors.rb:72:in `initialize'
      ././../lib/./errors.rb:117:in `new'
      ././../lib/./errors.rb:117:in `server_error'
      ././../lib/deltacloud.rb:374:in `response_error'
      ././../lib/deltacloud.rb:403:in `request'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in `call'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in `process_result'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `transmit'
      /usr/lib/ruby/1.8/net/http.rb:543:in `start'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
      /usr/lib/ruby/gems/1.8/gems/rest-client-1.6.7/lib/restclient/resource.rb:54:in `get'
      ././../lib/deltacloud.rb:402:in `send'
      ././../lib/deltacloud.rb:402:in `request'
      ././../lib/deltacloud.rb:144:in `bucket'
      buckets_test.rb:66:in `test_0002_should allow deletion of an existing bucket'
      ././../lib/deltacloud.rb:83:in `initialize'
      ././../lib/deltacloud.rb:42:in `new'
      ././../lib/deltacloud.rb:42:in `new'
      buckets_test.rb:65:in `test_0002_should allow deletion of an existing bucket'

      9 tests, 53 assertions, 0 failures, 1 errors, 0 skips
      [rlandy@localhost tests]$

      Likely mock fixtures need to be updated - the keys test also looks to have an error

      Attachments

        Activity

          People

            mfojtik Michal Fojtik
            rlandy Ronelle Landy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: