[DRE-maint] Bug#870308: ruby-ridley FTBFS: test failures
Adrian Bunk
bunk at debian.org
Mon Jul 31 20:54:34 UTC 2017
Source: ruby-ridley
Version: 4.4.3-2
Severity: serious
Tags: buster sid
Some recent change in unstable makes ruby-ridley FTBFS:
https://tests.reproducible-builds.org/debian/history/ruby-ridley.html
https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/ruby-ridley.html
...
┌──────────────────────────────────────────────────────────────────────────────┐
│ Run tests for ruby2.3 from debian/ruby-tests.rake │
└──────────────────────────────────────────────────────────────────────────────┘
RUBYLIB=/build/1st/ruby-ridley-4.4.3/debian/ruby-ridley/usr/lib/ruby/vendor_ruby:. GEM_PATH=debian/ruby-ridley/usr/share/rubygems-integration/all:/var/lib/gems/2.3.0:/usr/lib/x86_64-linux-gnu/rubygems-integration/2.3.0:/usr/share/rubygems-integration/2.3.0:/usr/share/rubygems-integration/all ruby2.3 -S rake -f debian/ruby-tests.rake
/usr/bin/ruby2.3 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
..FFF..F*.......FFF.FFFFFFFF.F...F.FF...FF......FF..F.........FF..F..............FFF..F*...........WARNING: Using the `raise_error` matcher without providing a specific error or message risks false positives, since `raise_error` will match when Ruby raises a `NoMethodError`, `NameError` or `ArgumentError`, potentially allowing the expectation to pass without even executing the method you are intending to call. Actual error raised was #<Ridley::Errors::ValidationFailed: Option choice must be a kind of [Numeric]! You passed true.>. Instead consider providing a specific error class or message. This message can be suppressed by setting: `RSpec::Expectations.configuration.on_potential_false_positives = :nothing`. Called from /build/1st/ruby-ridley-4.4.3/spec/unit/ridley/chef/cookbook/metadata_spec.rb:47:in `block (3 levels) in <top (required)>'.
...............**.................................................................................................F.F..F.F**............................................................................*...........................**..***..............................................*..............**..*.........*..FFFF........................F.F.F.F....FFFF....
Pending: (Failures listed here are expected and do not affect your suite's status)
1) Client API operations deleting all clients deletes all clients from the remote
# Temporarily skipped with xit
# ./spec/acceptance/client_resource_spec.rb:68
2) User API operations deleting all users deletes all users from the remote
# Temporarily skipped with xit
# ./spec/acceptance/user_resource_spec.rb:68
3) Ridley::Chef::Cookbook::SyntaxCheck#validate_template asks #shell_out to check the files syntax
# Not yet implemented
# ./spec/unit/ridley/chef/cookbook/syntax_check_spec.rb:113
4) Ridley::Chef::Cookbook::SyntaxCheck#validate_ruby_file asks #shell_out to check the files syntax
# Not yet implemented
# ./spec/unit/ridley/chef/cookbook/syntax_check_spec.rb:117
5) Ridley::ClientObject#to_json
# No reason given
# ./spec/unit/ridley/chef_objects/client_object_spec.rb:5
6) Ridley::ClientObject#regenerate_key
# No reason given
# ./spec/unit/ridley/chef_objects/client_object_spec.rb:9
7) Ridley::SandboxObject#checksums
# No reason given
# ./spec/unit/ridley/chef_objects/sandbox_object_spec.rb:30
8) Ridley::Connection configurable retries attempts five (5) retries by default
# Temporarily skipped with xit
# ./spec/unit/ridley/connection_spec.rb:17
9) Ridley::Connection configurable retries given a configured count of two (2) retries attempts two (2) retries
# Temporarily skipped with xit
# ./spec/unit/ridley/connection_spec.rb:29
10) Ridley::Connection#stream creates a destination file on disk
# Temporarily skipped with xit
# ./spec/unit/ridley/connection_spec.rb:62
11) Ridley::Connection#stream returns true when the file was copied
# Temporarily skipped with xit
# ./spec/unit/ridley/connection_spec.rb:68
12) Ridley::Connection#stream contains the contents of the response body
# Temporarily skipped with xit
# ./spec/unit/ridley/connection_spec.rb:72
13) Ridley::Resource::delete_all sends a delete request for every object in the collection
# No reason given
# ./spec/unit/ridley/resource_spec.rb:137
14) Ridley::CookbookResource#update
# No reason given
# ./spec/unit/ridley/resources/cookbook_resource_spec.rb:151
15) Ridley::DataBagItemResource
# No reason given
# ./spec/unit/ridley/resources/data_bag_item_resource_spec.rb:6
16) Ridley::DataBagResource#find
# No reason given
# ./spec/unit/ridley/resources/data_bag_resource_spec.rb:21
17) Ridley::RoleResource
# No reason given
# ./spec/unit/ridley/resources/role_resource_spec.rb:6
Failures:
1) Client API operations creating a client returns a Ridley::ClientObject
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:87:in `create'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/client_resource_spec.rb:27:in `block (3 levels) in <top (required)>'
2) Client API operations creating a client adds a client to the chef server
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:87:in `create'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/client_resource_spec.rb:32:in `block (3 levels) in <top (required)>'
3) Client API operations creating a client has a value for #private_key
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:87:in `create'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/client_resource_spec.rb:37:in `block (3 levels) in <top (required)>'
4) Client API operations deleting all clients returns an array of Ridley::ClientObject objects
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPMethodNotAllowed:
Bad request method for '/clients/': DELETE
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:97:in `delete'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:105:in `map'
# ./lib/ridley/resource.rb:105:in `delete_all'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/client_resource_spec.rb:62:in `block (3 levels) in <top (required)>'
5) DataBag API operations listing data bag items when the data bag has no items returns an empty array
Failure/Error: expect(data_bag.item.all.size).to eq(0)
expected: 0
got: 1
(compared using ==)
# ./spec/acceptance/data_bag_item_resource_spec.rb:17:in `block (4 levels) in <top (required)>'
6) DataBag API operations listing data bag items when the data bag has items returns an array with each item
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resources/data_bag_item_resource.rb:45:in `create'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/chef_objects/data_bag_object.rb:25:in `method_missing'
# ./spec/acceptance/data_bag_item_resource_spec.rb:23:in `block (4 levels) in <top (required)>'
7) DataBag API operations creating a data bag item adds a data bag item to the collection of data bag items
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resources/data_bag_item_resource.rb:45:in `create'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/chef_objects/data_bag_object.rb:25:in `method_missing'
# ./spec/acceptance/data_bag_item_resource_spec.rb:35:in `block (3 levels) in <top (required)>'
8) DataBag API operations retrieving a data bag item returns the desired item in the data bag
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resources/data_bag_item_resource.rb:45:in `create'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/chef_objects/data_bag_object.rb:25:in `method_missing'
# ./spec/acceptance/data_bag_item_resource_spec.rb:60:in `block (3 levels) in <top (required)>'
9) DataBag API operations deleting a data bag item returns the deleted data bag item
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resources/data_bag_item_resource.rb:45:in `create'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/chef_objects/data_bag_object.rb:25:in `method_missing'
# ./spec/acceptance/data_bag_item_resource_spec.rb:74:in `block (3 levels) in <top (required)>'
10) DataBag API operations deleting a data bag item deletes the data bag item from the server
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resources/data_bag_item_resource.rb:45:in `create'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/chef_objects/data_bag_object.rb:25:in `method_missing'
# ./spec/acceptance/data_bag_item_resource_spec.rb:74:in `block (3 levels) in <top (required)>'
11) DataBag API operations deleting all data bag items in a data bag returns the array of deleted data bag items
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resources/data_bag_item_resource.rb:45:in `create'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/chef_objects/data_bag_object.rb:25:in `method_missing'
# ./spec/acceptance/data_bag_item_resource_spec.rb:92:in `block (3 levels) in <top (required)>'
12) DataBag API operations deleting all data bag items in a data bag removes all data bag items from the data bag
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resources/data_bag_item_resource.rb:45:in `create'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/chef_objects/data_bag_object.rb:25:in `method_missing'
# ./spec/acceptance/data_bag_item_resource_spec.rb:92:in `block (3 levels) in <top (required)>'
13) DataBag API operations updating a data bag item returns the updated data bag item
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resources/data_bag_item_resource.rb:45:in `create'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/chef_objects/data_bag_object.rb:25:in `method_missing'
# ./spec/acceptance/data_bag_item_resource_spec.rb:108:in `block (3 levels) in <top (required)>'
14) DataBag API operations saving a data bag item when the data bag item exists returns true if successful
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resources/data_bag_item_resource.rb:45:in `create'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/chef_objects/data_bag_object.rb:25:in `method_missing'
# ./spec/acceptance/data_bag_item_resource_spec.rb:119:in `block (4 levels) in <top (required)>'
# ./spec/acceptance/data_bag_item_resource_spec.rb:122:in `block (4 levels) in <top (required)>'
15) DataBag API operations saving a data bag item when the data bag item exists creates a new data bag item on the remote
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resources/data_bag_item_resource.rb:45:in `create'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/chef_objects/data_bag_object.rb:25:in `method_missing'
# ./spec/acceptance/data_bag_item_resource_spec.rb:119:in `block (4 levels) in <top (required)>'
# ./spec/acceptance/data_bag_item_resource_spec.rb:127:in `block (4 levels) in <top (required)>'
16) DataBag API operations saving a data bag item when the data bag item does not exist creates a new data bag item on the remote
Failure/Error: expect(data_bag.item.all.size).to eq(1)
expected: 1
got: 2
(compared using ==)
# ./spec/acceptance/data_bag_item_resource_spec.rb:147:in `block (4 levels) in <top (required)>'
17) DataBag API operations creating a data bag returns a Ridley::DataBagObject
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:87:in `create'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/data_bag_resource_spec.rb:34:in `block (3 levels) in <top (required)>'
18) Environment API operations creating an environment returns a valid Ridley::EnvironmentObject object
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:87:in `create'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/environment_resource_spec.rb:19:in `block (3 levels) in <top (required)>'
19) Environment API operations creating an environment adds an environment to the chef server
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:87:in `create'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/environment_resource_spec.rb:26:in `block (3 levels) in <top (required)>'
20) Environment API operations deleting all environments returns an array of Ridley::EnvironmentObject objects
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPMethodNotAllowed:
Bad request method for '/environments/': DELETE
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:97:in `delete'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resources/environment_resource.rb:34:in `map'
# ./lib/ridley/resources/environment_resource.rb:34:in `delete_all'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/environment_resource_spec.rb:58:in `block (3 levels) in <top (required)>'
21) Environment API operations deleting all environments deletes all environments but '_default' from the remote
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPMethodNotAllowed:
Bad request method for '/environments/': DELETE
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:97:in `delete'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resources/environment_resource.rb:34:in `map'
# ./lib/ridley/resources/environment_resource.rb:34:in `delete_all'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/environment_resource_spec.rb:62:in `block (3 levels) in <top (required)>'
22) Node API operations creating a node returns a new Ridley::NodeObject object
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:87:in `create'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/node_resource_spec.rb:22:in `block (3 levels) in <top (required)>'
23) Node API operations creating a node adds a new node to the server
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:87:in `create'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/node_resource_spec.rb:26:in `block (3 levels) in <top (required)>'
24) Node API operations deleting all nodes deletes all nodes from the remote server
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPMethodNotAllowed:
Bad request method for '/nodes/': DELETE
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:97:in `delete'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:105:in `map'
# ./lib/ridley/resource.rb:105:in `delete_all'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/node_resource_spec.rb:54:in `block (3 levels) in <top (required)>'
25) Role API operations creating a role returns a new Ridley::RoleObject
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:87:in `create'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/role_resource_spec.rb:22:in `block (3 levels) in <top (required)>'
26) Role API operations creating a role adds a new role to the server
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:87:in `create'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/role_resource_spec.rb:26:in `block (3 levels) in <top (required)>'
27) Role API operations deleting all roles deletes all nodes from the remote server
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPMethodNotAllowed:
Bad request method for '/roles/': DELETE
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:97:in `delete'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:105:in `map'
# ./lib/ridley/resource.rb:105:in `delete_all'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/role_resource_spec.rb:53:in `block (3 levels) in <top (required)>'
28) User API operations creating a user returns a Ridley::UserObject
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:87:in `create'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/user_resource_spec.rb:27:in `block (3 levels) in <top (required)>'
29) User API operations creating a user adds a user to the chef server
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:87:in `create'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/user_resource_spec.rb:32:in `block (3 levels) in <top (required)>'
30) User API operations creating a user has a value for #private_key
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPBadRequest:
{
"error": [
"Must specify \"name\" in JSON"
]
}
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:87:in `create'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/user_resource_spec.rb:37:in `block (3 levels) in <top (required)>'
31) User API operations deleting all users returns an array of Ridley::UserObject objects
Failure/Error: raise Errors::HTTPError.fabricate(env)
Ridley::Errors::HTTPMethodNotAllowed:
Bad request method for '/users/': DELETE
# ./lib/ridley/middleware/chef_response.rb:24:in `on_complete'
# ./lib/ridley/middleware/chef_auth.rb:74:in `call'
# ./lib/ridley/connection.rb:105:in `run_request'
# (celluloid):0:in `remote procedure call'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:132:in `raw_request'
# ./lib/ridley/resource.rb:123:in `request'
# ./lib/ridley/resource.rb:97:in `delete'
# (celluloid):0:in `remote procedure call'
# ./lib/ridley/resource.rb:105:in `map'
# ./lib/ridley/resource.rb:105:in `delete_all'
# (celluloid):0:in `remote procedure call'
# ./spec/acceptance/user_resource_spec.rb:62:in `block (3 levels) in <top (required)>'
32) Ridley::ChefObject#chef_id returns the value of the chef_id attribute
Failure/Error: expect(subject.chef_id).to eql("reset")
expected: "reset"
got: nil
(compared using eql?)
# ./spec/unit/ridley/chef_object_spec.rb:140:in `block (3 levels) in <top (required)>'
33) Ridley::ChefObject#reload sets the attributes of self to equal those of the updated object
Failure/Error: expect(subject.get_attribute(:one)).to eql("val")
expected: "val"
got: nil
(compared using eql?)
# ./spec/unit/ridley/chef_object_spec.rb:160:in `block (3 levels) in <top (required)>'
34) Ridley::ChefObject comparable given two objects with different values for their 'chef_id' is not equal
Failure/Error: expect(one).not_to be_eql(two)
expected `#<#<Class:0x007fad201a06b0> chef_id:, attributes:#<VariaModel::Attributes extra=nil name=nil other_extra=nil>>.eql?(#<#<Class:0x007fad201a06b0> chef_id:, attributes:#<VariaModel::Attributes extra=nil name=nil other_extra=nil>>)` to return false, got true
# ./spec/unit/ridley/chef_object_spec.rb:202:in `block (4 levels) in <top (required)>'
35) Ridley::ChefObject uniqueness given an array of objects with different values for their 'chef_id' returns all of the elements
Failure/Error: expect(nodes.uniq.size).to eq(2)
expected: 2
got: 1
(compared using ==)
# ./spec/unit/ridley/chef_object_spec.rb:243:in `block (4 levels) in <top (required)>'
36) Ridley::SandboxResource#create has an empty Hash of checksums
Failure/Error: expect(subject.create.checksums).to be_a(Hash)
expected nil to be a kind of Hash
# ./spec/unit/ridley/resources/sandbox_resource_spec.rb:33:in `block (3 levels) in <top (required)>'
37) Ridley::SandboxResource#create has a value for :uri
Failure/Error: expect(subject.create.uri).to eql(sandbox_uri)
expected: "https://api.opscode.com/organizations/vialstudios/sandboxes/bd091b150b0a4578b97771af6abf3e05"
got: nil
(compared using eql?)
# ./spec/unit/ridley/resources/sandbox_resource_spec.rb:38:in `block (3 levels) in <top (required)>'
38) Ridley::SandboxResource#create has a value for :sandbox_id
Failure/Error: expect(subject.create.sandbox_id).to eql(sandbox_id)
expected: "bd091b150b0a4578b97771af6abf3e05"
got: nil
(compared using eql?)
# ./spec/unit/ridley/resources/sandbox_resource_spec.rb:42:in `block (3 levels) in <top (required)>'
39) Ridley::SandboxResource#create when given an array of checksums has a Hash of checksums with each of the given checksum ids
Failure/Error: expect(subject.create(checksum_array).checksums.size).to eq(checksum_array.length)
NoMethodError:
undefined method `size' for nil:NilClass
# ./spec/unit/ridley/resources/sandbox_resource_spec.rb:57:in `block (4 levels) in <top (required)>'
40) Ridley::SearchResource#run when :node is the given index after the search has executed and results are returned Ridley::NodeObject instances contain the results
Failure/Error: expect(first_result.name).to eq("ridley-one")
expected: "ridley-one"
got: nil
(compared using ==)
# ./spec/unit/ridley/resources/search_resource_spec.rb:191:in `block (5 levels) in <top (required)>'
41) Ridley::SearchResource#run when :role is the given index after the search has executed and results are returned Ridley::RoleObject instances contain the results
Failure/Error: expect(first_result.name).to eq("ridley-role-one")
expected: "ridley-role-one"
got: nil
(compared using ==)
# ./spec/unit/ridley/resources/search_resource_spec.rb:229:in `block (5 levels) in <top (required)>'
42) Ridley::SearchResource#run when :environment is the given index after the search has executed and results are returned Ridley::EnvironmentObject instances contain the results
Failure/Error: expect(first_result.name).to eq("ridley-env-test")
expected: "ridley-env-test"
got: nil
(compared using ==)
# ./spec/unit/ridley/resources/search_resource_spec.rb:266:in `block (5 levels) in <top (required)>'
43) Ridley::SearchResource#run when :client is the given index after the search has executed and results are returned Ridley::ClientObject instances contain the results
Failure/Error: expect(first_result.name).to eq("ridley-client-test")
expected: "ridley-client-test"
got: nil
(compared using ==)
# ./spec/unit/ridley/resources/search_resource_spec.rb:304:in `block (5 levels) in <top (required)>'
44) Ridley::SandboxUploader#upload when the checksum needs uploading uploads each checksum to their target URL
Failure/Error: checksums[chk_id.to_sym]
NoMethodError:
undefined method `[]' for nil:NilClass
# ./lib/ridley/chef_objects/sandbox_object.rb:32:in `checksum'
# ./lib/ridley/sandbox_uploader.rb:58:in `upload'
# (celluloid):0:in `remote procedure call'
# ./spec/unit/ridley/sandbox_uploader_spec.rb:65:in `block (4 levels) in <top (required)>'
45) Ridley::SandboxUploader#upload when the checksum needs uploading raises an exception when the calcuated checksum does not match the expected checksum
Failure/Error: expect { subject.upload(sandbox, chk_id, different_path) }.to raise_error(Ridley::Errors::ChecksumMismatch)
expected Ridley::Errors::ChecksumMismatch, got #<NoMethodError: undefined method `[]' for nil:NilClass> with backtrace:
# ./lib/ridley/chef_objects/sandbox_object.rb:32:in `checksum'
# ./lib/ridley/sandbox_uploader.rb:58:in `upload'
# (celluloid):0:in `remote procedure call'
# ./spec/unit/ridley/sandbox_uploader_spec.rb:69:in `block (5 levels) in <top (required)>'
# ./spec/unit/ridley/sandbox_uploader_spec.rb:69:in `block (4 levels) in <top (required)>'
# ./spec/unit/ridley/sandbox_uploader_spec.rb:69:in `block (4 levels) in <top (required)>'
46) Ridley::SandboxUploader#upload when the checksum doesn't need uploading returns nil
Failure/Error: checksums[chk_id.to_sym]
NoMethodError:
undefined method `[]' for nil:NilClass
# ./lib/ridley/chef_objects/sandbox_object.rb:32:in `checksum'
# ./lib/ridley/sandbox_uploader.rb:58:in `upload'
# (celluloid):0:in `remote procedure call'
# ./spec/unit/ridley/sandbox_uploader_spec.rb:83:in `block (4 levels) in <top (required)>'
47) Ridley::SandboxUploader#upload when the connection is an open source server connection with a non-80 port does not strip the port from the target to upload to
Failure/Error: checksums[chk_id.to_sym]
NoMethodError:
undefined method `[]' for nil:NilClass
# ./lib/ridley/chef_objects/sandbox_object.rb:32:in `checksum'
# ./lib/ridley/sandbox_uploader.rb:58:in `upload'
# (celluloid):0:in `remote procedure call'
# ./spec/unit/ridley/sandbox_uploader_spec.rb:104:in `block (4 levels) in <top (required)>'
Deprecation Warnings:
RSpec::Core::Configuration#treat_symbols_as_metadata_keys_with_true_values= is deprecated, it is now set to true as default and setting it to false has no effect.
Using `stub` from rspec-mocks' old `:should` syntax without explicitly enabling the syntax is deprecated. Use the new `:expect` syntax or explicitly enable `:should` instead. Called from /usr/lib/ruby/vendor_ruby/celluloid/calls.rb:26:in `public_send'.
If you need more of the backtrace for any of these deprecations to
identify where to make the necessary changes, you can configure
`config.raise_errors_for_deprecations!`, and it will turn the
deprecation warnings into errors, giving you the full backtrace.
2 deprecation warnings total
Finished in 20.55 seconds (files took 1.84 seconds to load)
459 examples, 47 failures, 17 pending
Failed examples:
rspec ./spec/acceptance/client_resource_spec.rb:26 # Client API operations creating a client returns a Ridley::ClientObject
rspec ./spec/acceptance/client_resource_spec.rb:30 # Client API operations creating a client adds a client to the chef server
rspec ./spec/acceptance/client_resource_spec.rb:36 # Client API operations creating a client has a value for #private_key
rspec ./spec/acceptance/client_resource_spec.rb:61 # Client API operations deleting all clients returns an array of Ridley::ClientObject objects
rspec ./spec/acceptance/data_bag_item_resource_spec.rb:16 # DataBag API operations listing data bag items when the data bag has no items returns an empty array
rspec ./spec/acceptance/data_bag_item_resource_spec.rb:27 # DataBag API operations listing data bag items when the data bag has items returns an array with each item
rspec ./spec/acceptance/data_bag_item_resource_spec.rb:34 # DataBag API operations creating a data bag item adds a data bag item to the collection of data bag items
rspec ./spec/acceptance/data_bag_item_resource_spec.rb:50 # DataBag API operations retrieving a data bag item returns the desired item in the data bag
rspec ./spec/acceptance/data_bag_item_resource_spec.rb:76 # DataBag API operations deleting a data bag item returns the deleted data bag item
rspec ./spec/acceptance/data_bag_item_resource_spec.rb:83 # DataBag API operations deleting a data bag item deletes the data bag item from the server
rspec ./spec/acceptance/data_bag_item_resource_spec.rb:96 # DataBag API operations deleting all data bag items in a data bag returns the array of deleted data bag items
rspec ./spec/acceptance/data_bag_item_resource_spec.rb:100 # DataBag API operations deleting all data bag items in a data bag removes all data bag items from the data bag
rspec ./spec/acceptance/data_bag_item_resource_spec.rb:110 # DataBag API operations updating a data bag item returns the updated data bag item
rspec ./spec/acceptance/data_bag_item_resource_spec.rb:121 # DataBag API operations saving a data bag item when the data bag item exists returns true if successful
rspec ./spec/acceptance/data_bag_item_resource_spec.rb:126 # DataBag API operations saving a data bag item when the data bag item exists creates a new data bag item on the remote
rspec ./spec/acceptance/data_bag_item_resource_spec.rb:142 # DataBag API operations saving a data bag item when the data bag item does not exist creates a new data bag item on the remote
rspec ./spec/acceptance/data_bag_resource_spec.rb:33 # DataBag API operations creating a data bag returns a Ridley::DataBagObject
rspec ./spec/acceptance/environment_resource_spec.rb:18 # Environment API operations creating an environment returns a valid Ridley::EnvironmentObject object
rspec ./spec/acceptance/environment_resource_spec.rb:24 # Environment API operations creating an environment adds an environment to the chef server
rspec ./spec/acceptance/environment_resource_spec.rb:57 # Environment API operations deleting all environments returns an array of Ridley::EnvironmentObject objects
rspec ./spec/acceptance/environment_resource_spec.rb:61 # Environment API operations deleting all environments deletes all environments but '_default' from the remote
rspec ./spec/acceptance/node_resource_spec.rb:21 # Node API operations creating a node returns a new Ridley::NodeObject object
rspec ./spec/acceptance/node_resource_spec.rb:25 # Node API operations creating a node adds a new node to the server
rspec ./spec/acceptance/node_resource_spec.rb:53 # Node API operations deleting all nodes deletes all nodes from the remote server
rspec ./spec/acceptance/role_resource_spec.rb:21 # Role API operations creating a role returns a new Ridley::RoleObject
rspec ./spec/acceptance/role_resource_spec.rb:25 # Role API operations creating a role adds a new role to the server
rspec ./spec/acceptance/role_resource_spec.rb:52 # Role API operations deleting all roles deletes all nodes from the remote server
rspec ./spec/acceptance/user_resource_spec.rb:26 # User API operations creating a user returns a Ridley::UserObject
rspec ./spec/acceptance/user_resource_spec.rb:30 # User API operations creating a user adds a user to the chef server
rspec ./spec/acceptance/user_resource_spec.rb:36 # User API operations creating a user has a value for #private_key
rspec ./spec/acceptance/user_resource_spec.rb:61 # User API operations deleting all users returns an array of Ridley::UserObject objects
rspec ./spec/unit/ridley/chef_object_spec.rb:135 # Ridley::ChefObject#chef_id returns the value of the chef_id attribute
rspec ./spec/unit/ridley/chef_object_spec.rb:157 # Ridley::ChefObject#reload sets the attributes of self to equal those of the updated object
rspec ./spec/unit/ridley/chef_object_spec.rb:201 # Ridley::ChefObject comparable given two objects with different values for their 'chef_id' is not equal
rspec ./spec/unit/ridley/chef_object_spec.rb:242 # Ridley::ChefObject uniqueness given an array of objects with different values for their 'chef_id' returns all of the elements
rspec ./spec/unit/ridley/resources/sandbox_resource_spec.rb:32 # Ridley::SandboxResource#create has an empty Hash of checksums
rspec ./spec/unit/ridley/resources/sandbox_resource_spec.rb:37 # Ridley::SandboxResource#create has a value for :uri
rspec ./spec/unit/ridley/resources/sandbox_resource_spec.rb:41 # Ridley::SandboxResource#create has a value for :sandbox_id
rspec ./spec/unit/ridley/resources/sandbox_resource_spec.rb:56 # Ridley::SandboxResource#create when given an array of checksums has a Hash of checksums with each of the given checksum ids
rspec ./spec/unit/ridley/resources/search_resource_spec.rb:189 # Ridley::SearchResource#run when :node is the given index after the search has executed and results are returned Ridley::NodeObject instances contain the results
rspec ./spec/unit/ridley/resources/search_resource_spec.rb:227 # Ridley::SearchResource#run when :role is the given index after the search has executed and results are returned Ridley::RoleObject instances contain the results
rspec ./spec/unit/ridley/resources/search_resource_spec.rb:264 # Ridley::SearchResource#run when :environment is the given index after the search has executed and results are returned Ridley::EnvironmentObject instances contain the results
rspec ./spec/unit/ridley/resources/search_resource_spec.rb:302 # Ridley::SearchResource#run when :client is the given index after the search has executed and results are returned Ridley::ClientObject instances contain the results
rspec ./spec/unit/ridley/sandbox_uploader_spec.rb:62 # Ridley::SandboxUploader#upload when the checksum needs uploading uploads each checksum to their target URL
rspec ./spec/unit/ridley/sandbox_uploader_spec.rb:68 # Ridley::SandboxUploader#upload when the checksum needs uploading raises an exception when the calcuated checksum does not match the expected checksum
rspec ./spec/unit/ridley/sandbox_uploader_spec.rb:82 # Ridley::SandboxUploader#upload when the checksum doesn't need uploading returns nil
rspec ./spec/unit/ridley/sandbox_uploader_spec.rb:101 # Ridley::SandboxUploader#upload when the connection is an open source server connection with a non-80 port does not strip the port from the target to upload to
/usr/bin/ruby2.3 /usr/bin/rspec --pattern ./spec/\*\*/\*_spec.rb failed
ERROR: Test "ruby2.3" failed. Exiting.
dh_auto_install: dh_ruby --install /build/1st/ruby-ridley-4.4.3/debian/ruby-ridley returned exit code 1
debian/rules:15: recipe for target 'binary' failed
make: *** [binary] Error 1
More information about the Pkg-ruby-extras-maintainers
mailing list