csc/Hanlon — pull request #302 by jcpowermac (2014-12-20 04:01:35+00:00)
Title: Resolved grape erors

This PR resolves issue #301. Modifies the Gemfile to only use the 0.9.0 version of grape and 0.8.0 version of grape-swagger.

```
[jcallen@DockerHanlon atftpd]$ ./example_hanlon_start_containers.sh
bc88ef9e01d25c03f40e1cd7d2a1df8b971f035b88f31fe26c645a020d09e334
427a33b0e5362d056b17c5f3bb4fdcec6bb48b5220d886fdcbda9d4e5caafbb8
curl: (56) Recv failure: Connection reset by peer
HTTP/1.1 200 OK
Content-Length: 1057

a7ce7f93f7a7ef4362e288f33d3f09f90b9c91245e021e13d7c8410a31456513
```

Those failures are expected running in a docker container.
```
/home/hanlon/test/spec/web/api/api_tag_spec.rb:28: warning: (...) interpreted as grouped expression
.......F.F........F..............................

Failures:

1) Hanlon::WebService::ActiveModel resource :active_model resource /logs GET /active_model/logs Returns the log entries for all active model instances
Failure/Error: hnl_response, http_response = hnl_http_get(uri, true)
ProjectHanlon::Error::Slice::CommandFailed:
Remote Access Forbidden; access to /active_model/logs resource is only allowed from Hanlon server
# /home/hanlon/util/helpers/http_helper.rb:78:in `handle_http_response'
# /home/hanlon/util/helpers/http_helper.rb:52:in `hnl_http_get'
# ./spec/web/api/api_active_model_spec.rb:246:in `block (5 levels) in '

2) Hanlon::WebService::ActiveModel resource :active_model resource /:uuid resource /logs GET /active_model/{uuid}/logs Returns the log entries for a specific active model instance (by uuid)
Failure/Error: hnl_response, http_response = hnl_http_get(uri, true)
ProjectHanlon::Error::Slice::CommandFailed:
Access to /active_model/{uuid}/logs resource is only allowed from Hanlon server
# /home/hanlon/util/helpers/http_helper.rb:78:in `handle_http_response'
# /home/hanlon/util/helpers/http_helper.rb:52:in `hnl_http_get'
# ./spec/web/api/api_active_model_spec.rb:283:in `block (6 levels) in '

3) Hanlon::WebService::Config resource :config GET /config Returns the current Hanlon server configuration
Failure/Error: hnl_response, http_response = hnl_http_get(uri, true)
ProjectHanlon::Error::Slice::CommandFailed:
Remote Access Forbidden; access to /config resource is only allowed from Hanlon server
# /home/hanlon/util/helpers/http_helper.rb:78:in `handle_http_response'
# /home/hanlon/util/helpers/http_helper.rb:52:in `hnl_http_get'
# ./spec/web/api/api_config_spec.rb:14:in `block (4 levels) in '

Finished in 3.55 seconds (files took 0.76183 seconds to load)
49 examples, 3 failures

Failed examples:

rspec ./spec/web/api/api_active_model_spec.rb:243 # Hanlon::WebService::ActiveModel resource :active_model resource /logs GET /active_model/logs Returns the log entries for all active model instances
rspec ./spec/web/api/api_active_model_spec.rb:280 # Hanlon::WebService::ActiveModel resource :active_model resource /:uuid resource /logs GET /active_model/{uuid}/logs Returns the log entries for a specific active model instance (by uuid)
rspec ./spec/web/api/api_config_spec.rb:11 # Hanlon::WebService::Config resource :config GET /config Returns the current Hanlon server configuration

Top 10 slowest examples (1.8 seconds, 50.7% of total time):
Hanlon::WebService::Image resource :image GET /image Returns a list of all image instances
0.93035 seconds ./spec/web/api/api_image_spec.rb:32
Hanlon::WebService::Node resource :node resource :checkin GET /node/checkin Handles a node checkin (by a Microkernel instance)
0.19075 seconds ./spec/web/api/api_node_spec.rb:88
Hanlon::WebService::Node resource :node resource :register POST /node/register Handles a node registration request (by a Microkernel instance)
0.17071 seconds ./spec/web/api/api_node_spec.rb:17
Hanlon::WebService::Policy resource :policy GET /policy Returns a list of all policy instances
0.0912 seconds ./spec/web/api/api_policy_spec.rb:51
Hanlon::WebService::Node resource :node GET /node Returns a list of all node instances
0.0894 seconds ./spec/web/api/api_node_spec.rb:52
Hanlon::WebService::ActiveModel resource :active_model GET /active_model Returns a list of all active model instances
0.08811 seconds ./spec/web/api/api_active_model_spec.rb:182
Hanlon::WebService::Policy resource :policy POST /policy Creates a new policy instance
0.08383 seconds ./spec/web/api/api_policy_spec.rb:67
Hanlon::WebService::Policy resource :policy resource /:uuid PUT /policy/{uuid} Updates a policy instance (by uuid)
0.06088 seconds ./spec/web/api/api_policy_spec.rb:165
Hanlon::WebService::Node resource :node resource /:uuid GET /node/{uuid} Returns the details for a specific node (by uuid)
0.05256 seconds ./spec/web/api/api_node_spec.rb:109
Hanlon::WebService::ActiveModel resource :active_model resource /:uuid GET /active_model/{uuid} Returns the details for a specific active model instance (by uuid)
0.0426 seconds ./spec/web/api/api_active_model_spec.rb:263

Top 10 slowest example groups:
Hanlon::WebService::Image
0.93035 seconds average (0.93035 seconds / 1 example) ./spec/web/api/api_image_spec.rb:4
Hanlon::WebService::Node
0.12585 seconds average (0.50342 seconds / 4 examples) ./spec/web/api/api_node_spec.rb:4
Hanlon::WebService::Policy
0.0429 seconds average (0.30029 seconds / 7 examples) ./spec/web/api/api_policy_spec.rb:4
Hanlon::WebService::ActiveModel
0.03166 seconds average (0.22165 seconds / 7 examples) ./spec/web/api/api_active_model_spec.rb:4
Hanlon::WebService::Broker
0.01547 seconds average (0.10827 seconds / 7 examples) ./spec/web/api/api_broker_spec.rb:4
Hanlon::WebService::Tag
0.01107 seconds average (0.1107 seconds / 10 examples) ./spec/web/api/api_tag_spec.rb:4
Hanlon::WebService::Model
0.01042 seconds average (0.07292 seconds / 7 examples) ./spec/web/api/api_model_spec.rb:4
Hanlon::WebService::Config
0.0034 seconds average (0.0068 seconds / 2 examples) ./spec/web/api/api_config_spec.rb:4
ProjectHanlon::Node
0.0006 seconds average (0.0006 seconds / 1 example) ./spec/core/slice/node_spec.rb:2
ProjectHanlon::Slice::Node
0.00033 seconds average (0.00033 seconds / 1 example) ./spec/core/node_spec.rb:2

```