respect-rails 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/FAQ.md +98 -0
- data/MIT-LICENSE +20 -0
- data/README.md +291 -0
- data/RELATED_WORK.md +47 -0
- data/RELEASE_NOTES.md +20 -0
- data/Rakefile +32 -0
- data/app/assets/javascripts/respect/rails/schemas.js +32 -0
- data/app/assets/stylesheets/respect/rails/schemas.css +160 -0
- data/app/controllers/respect/rails/schemas_controller.rb +36 -0
- data/app/helpers/respect/rails/schemas_helper.rb +78 -0
- data/app/views/layouts/respect/rails/schemas.html.erb +14 -0
- data/app/views/respect/rails/request_validation_exception.html.erb +38 -0
- data/app/views/respect/rails/schemas/doc.html.erb +158 -0
- data/app/views/respect/rails/schemas/index.html.erb +4 -0
- data/config/routes.rb +4 -0
- data/lib/respect/rails/action_def.rb +37 -0
- data/lib/respect/rails/action_schema.rb +41 -0
- data/lib/respect/rails/application_info.rb +26 -0
- data/lib/respect/rails/controller_helper.rb +107 -0
- data/lib/respect/rails/engine.rb +63 -0
- data/lib/respect/rails/engine_info.rb +27 -0
- data/lib/respect/rails/headers_helper.rb +11 -0
- data/lib/respect/rails/headers_simplifier.rb +31 -0
- data/lib/respect/rails/info.rb +72 -0
- data/lib/respect/rails/request_def.rb +38 -0
- data/lib/respect/rails/request_helper.rb +101 -0
- data/lib/respect/rails/request_schema.rb +102 -0
- data/lib/respect/rails/response_def.rb +43 -0
- data/lib/respect/rails/response_helper.rb +67 -0
- data/lib/respect/rails/response_schema.rb +84 -0
- data/lib/respect/rails/response_schema_set.rb +60 -0
- data/lib/respect/rails/route_info.rb +101 -0
- data/lib/respect/rails/version.rb +5 -0
- data/lib/respect/rails.rb +74 -0
- data/lib/tasks/respect_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/controllers/automatic_validation_controller.rb +300 -0
- data/test/dummy/app/controllers/caught_exception_controller.rb +58 -0
- data/test/dummy/app/controllers/disabled_controller.rb +37 -0
- data/test/dummy/app/controllers/manual_validation_controller.rb +63 -0
- data/test/dummy/app/controllers/no_schema_controller.rb +17 -0
- data/test/dummy/app/controllers/skipped_automatic_validation_controller.rb +35 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/helpers/respect/application_macros.rb +10 -0
- data/test/dummy/app/helpers/respect/circle_schema.rb +16 -0
- data/test/dummy/app/helpers/respect/point_schema.rb +19 -0
- data/test/dummy/app/helpers/respect/rgba_schema.rb +18 -0
- data/test/dummy/app/views/automatic_validation/request_format.html.erb +1 -0
- data/test/dummy/app/views/automatic_validation/request_format.pdf.erb +1 -0
- data/test/dummy/app/views/caught_exception/response_validator.html.erb +1 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config/application.rb +58 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/respect.rb +9 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +38 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/schema.rb +16 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/lib/exts/Rgba.rb +11 -0
- data/test/dummy/lib/exts/circle.rb +11 -0
- data/test/dummy/lib/exts/point.rb +11 -0
- data/test/dummy/log/development.log +6 -0
- data/test/dummy/log/test.log +851 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/functional/automatic_validation_controller_test.rb +131 -0
- data/test/functional/caught_exception_controller_test.rb +50 -0
- data/test/functional/disabled_controller_test.rb +16 -0
- data/test/functional/manual_validation_controller_test.rb +24 -0
- data/test/functional/no_schema_controller_test.rb +12 -0
- data/test/functional/respect/rails/schemas_controller_test.rb +18 -0
- data/test/functional/skipped_automatic_validation_controller_test.rb +12 -0
- data/test/headers_can_dumped_in_json.sh +33 -0
- data/test/integration/navigation_test.rb +38 -0
- data/test/request_headers_validation_in_dev_mode.sh +33 -0
- data/test/test_helper.rb +17 -0
- data/test/unit/action_schema_test.rb +21 -0
- data/test/unit/application_info_test.rb +11 -0
- data/test/unit/controller_helper_test.rb +4 -0
- data/test/unit/engine_info_test.rb +11 -0
- data/test/unit/engine_test.rb +7 -0
- data/test/unit/info_test.rb +42 -0
- data/test/unit/request_def_test.rb +22 -0
- data/test/unit/request_helper_test.rb +67 -0
- data/test/unit/request_schema_test.rb +164 -0
- data/test/unit/response_def_test.rb +9 -0
- data/test/unit/response_helper_test.rb +73 -0
- data/test/unit/response_schema_set_test.rb +18 -0
- data/test/unit/response_schema_test.rb +147 -0
- metadata +334 -0
@@ -0,0 +1,851 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
Connecting to database specified by database.yml
|
3
|
+
Connecting to database specified by database.yml
|
4
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
5
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
8
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
9
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
10
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
11
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
12
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
13
|
+
Processing by AutomaticValidationController#basic_get as JSON
|
14
|
+
Parameters: {"param1"=>"42"}
|
15
|
+
Request validation: success (47.8ms)
|
16
|
+
Response validation: success (6.1ms)
|
17
|
+
Completed 200 OK in 62ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
18
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
19
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
20
|
+
Processing by AutomaticValidationController#basic_get as JSON
|
21
|
+
Parameters: {"param1"=>54}
|
22
|
+
Request validation: failure (6.3ms)
|
23
|
+
wrong value: `54':Fixnum instead of `42':Fixnum
|
24
|
+
in hash property `param1'
|
25
|
+
in query
|
26
|
+
Completed 500 Internal Server Error in 11ms
|
27
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
28
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
29
|
+
Processing by AutomaticValidationController#composite_custom_types as JSON
|
30
|
+
Parameters: {"circle"=>{"center"=>{"x"=>"1.0", "y"=>"2.0"}, "radius"=>"5.5"}, "color"=>[0.0, 0.1, 0.2, 0.3]}
|
31
|
+
Request validation: success (27.7ms)
|
32
|
+
Response validation: none (0.0ms)
|
33
|
+
Completed 200 OK in 112ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
34
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36
|
+
Processing by AutomaticValidationController#dump_uri_helpers as JSON
|
37
|
+
Request validation: none (0.0ms)
|
38
|
+
Response validation: none (0.0ms)
|
39
|
+
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
40
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
41
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
42
|
+
Processing by AutomaticValidationController#check_response_headers as JSON
|
43
|
+
Parameters: {"response_header_value"=>"wrong"}
|
44
|
+
Request validation: none (0.0ms)
|
45
|
+
Response validation: failure (2.4ms)
|
46
|
+
wrong value: `wrong':String instead of `good':String
|
47
|
+
in hash property `X-Test-Header'
|
48
|
+
in headers
|
49
|
+
Completed 500 Internal Server Error in 26ms
|
50
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
51
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
52
|
+
Processing by AutomaticValidationController#request_format as HTML
|
53
|
+
Request validation: success (4.4ms)
|
54
|
+
Response validation: none (0.0ms)
|
55
|
+
Completed 200 OK in 22ms (Views: 12.3ms | ActiveRecord: 0.0ms)
|
56
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
57
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
58
|
+
Processing by AutomaticValidationController#request_format as HTML
|
59
|
+
Request validation: success (3.8ms)
|
60
|
+
Response validation: none (0.0ms)
|
61
|
+
Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 0.0ms)
|
62
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64
|
+
Processing by AutomaticValidationController#request_format as JSON
|
65
|
+
Request validation: success (3.8ms)
|
66
|
+
Response validation: success (1.8ms)
|
67
|
+
Completed 200 OK in 10ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
68
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
69
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
70
|
+
Processing by AutomaticValidationController#request_format as PDF
|
71
|
+
Request validation: success (26.9ms)
|
72
|
+
Response validation: none (0.0ms)
|
73
|
+
Completed 200 OK in 33ms (Views: 2.0ms | ActiveRecord: 0.0ms)
|
74
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
75
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
76
|
+
Processing by AutomaticValidationController#no_request_schema as JSON
|
77
|
+
Parameters: {"returned_id"=>6666666}
|
78
|
+
Request validation: none (0.0ms)
|
79
|
+
Response validation: failure (2.4ms)
|
80
|
+
wrong value: `6666666':Fixnum instead of `42':Fixnum
|
81
|
+
in hash property `id'
|
82
|
+
in body
|
83
|
+
Completed 500 Internal Server Error in 4ms
|
84
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
85
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
86
|
+
Processing by AutomaticValidationController#no_request_schema as JSON
|
87
|
+
Parameters: {"returned_id"=>42}
|
88
|
+
Request validation: none (0.0ms)
|
89
|
+
Response validation: success (2.2ms)
|
90
|
+
Completed 200 OK in 4ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
91
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
92
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
93
|
+
Processing by AutomaticValidationController#no_schema_at_all as JSON
|
94
|
+
Parameters: {"param1"=>"whatever"}
|
95
|
+
Request validation: none (0.0ms)
|
96
|
+
Response validation: none (0.0ms)
|
97
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
98
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
99
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
100
|
+
Processing by AutomaticValidationController#basic_post as JSON
|
101
|
+
Parameters: {"body_param"=>"42", "response_param"=>42, "path_param"=>"42"}
|
102
|
+
Request validation: success (7.9ms)
|
103
|
+
Response validation: success (1.9ms)
|
104
|
+
Completed 200 OK in 15ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
105
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
106
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
107
|
+
Processing by AutomaticValidationController#request_contextual_error as JSON
|
108
|
+
Parameters: {"o1"=>{"o2"=>{"i"=>54}}}
|
109
|
+
Request validation: failure (6.1ms)
|
110
|
+
wrong value: `54':Fixnum instead of `42':Fixnum
|
111
|
+
in hash property `i'
|
112
|
+
in hash property `o2'
|
113
|
+
in hash property `o1'
|
114
|
+
in query
|
115
|
+
Completed 500 Internal Server Error in 10ms
|
116
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
117
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
118
|
+
Processing by AutomaticValidationController#response_contextual_error as JSON
|
119
|
+
Request validation: none (0.0ms)
|
120
|
+
Response validation: failure (2.4ms)
|
121
|
+
wrong value: `42':Fixnum instead of `51':Fixnum
|
122
|
+
in hash property `i'
|
123
|
+
in hash property `o2'
|
124
|
+
in hash property `o1'
|
125
|
+
in body
|
126
|
+
Completed 500 Internal Server Error in 5ms
|
127
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
128
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
129
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
130
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
131
|
+
Processing by AutomaticValidationController#check_response_headers as JSON
|
132
|
+
Parameters: {"response_header_value"=>"good"}
|
133
|
+
Request validation: none (0.0ms)
|
134
|
+
Response validation: success (2.1ms)
|
135
|
+
Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
136
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
137
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
138
|
+
Processing by CaughtExceptionController#response_validator as HTML
|
139
|
+
Parameters: {"id"=>"error_value"}
|
140
|
+
Request validation: none (0.0ms)
|
141
|
+
Response validation: none (0.0ms)
|
142
|
+
Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.0ms)
|
143
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
144
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
145
|
+
Processing by CaughtExceptionController#request_validator as HTML
|
146
|
+
Parameters: {"id"=>"error_value"}
|
147
|
+
Request validation: failure (4.1ms)
|
148
|
+
malformed integer value: `error_value'
|
149
|
+
in hash property `id'
|
150
|
+
in query
|
151
|
+
Completed 500 Internal Server Error in 13ms (Views: 5.0ms | ActiveRecord: 0.0ms)
|
152
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
153
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
154
|
+
Processing by CaughtExceptionController#request_validator as JSON
|
155
|
+
Parameters: {"id"=>"error_value"}
|
156
|
+
Request validation: failure (3.7ms)
|
157
|
+
malformed integer value: `error_value'
|
158
|
+
in hash property `id'
|
159
|
+
in query
|
160
|
+
Completed 500 Internal Server Error in 7ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
161
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
162
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
163
|
+
Processing by CaughtExceptionController#response_validator as JSON
|
164
|
+
Parameters: {"id"=>"error_value"}
|
165
|
+
Request validation: none (0.0ms)
|
166
|
+
Response validation: failure (0.2ms)
|
167
|
+
malformed integer value: `error_value'
|
168
|
+
in hash property `id'
|
169
|
+
in body
|
170
|
+
Completed 500 Internal Server Error in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
171
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
172
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
173
|
+
Processing by DisabledController#basic as JSON
|
174
|
+
Parameters: {"param1"=>42}
|
175
|
+
Request validation: none (0.0ms)
|
176
|
+
Response validation: none (0.0ms)
|
177
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
178
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
179
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
180
|
+
Processing by DisabledController#basic as JSON
|
181
|
+
Parameters: {"param1"=>54}
|
182
|
+
Request validation: none (0.0ms)
|
183
|
+
Response validation: none (0.0ms)
|
184
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
185
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
186
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
187
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
188
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
189
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
190
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
191
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
192
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
193
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
194
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
195
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
196
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
197
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
198
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
199
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
200
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
201
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
202
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
203
|
+
Processing by ManualValidationController#no_schema as JSON
|
204
|
+
Parameters: {"param1"=>1664}
|
205
|
+
Request validation: none (0.0ms)
|
206
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
207
|
+
Response validation: none (0.0ms)
|
208
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
209
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
210
|
+
Processing by ManualValidationController#raise_custom_error as JSON
|
211
|
+
Parameters: {"param1"=>54}
|
212
|
+
Request validation: failure (5.8ms)
|
213
|
+
wrong value: `54':Fixnum instead of `42':Fixnum
|
214
|
+
in hash property `param1'
|
215
|
+
in query
|
216
|
+
Completed 500 Internal Server Error in 10ms
|
217
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
218
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
219
|
+
Processing by ManualValidationController#raise_custom_error_without_rescue as JSON
|
220
|
+
Parameters: {"param1"=>54}
|
221
|
+
Request validation: failure (6.0ms)
|
222
|
+
wrong value: `54':Fixnum instead of `42':Fixnum
|
223
|
+
in hash property `param1'
|
224
|
+
in query
|
225
|
+
Completed 500 Internal Server Error in 10ms
|
226
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
227
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
228
|
+
Started GET "/rest_spec" for 127.0.0.1 at 2013-05-20 13:29:59 +0200
|
229
|
+
Processing by Respect::Rails::SchemasController#index as HTML
|
230
|
+
Completed 200 OK in 29ms (Views: 3.4ms | ActiveRecord: 0.0ms)
|
231
|
+
Started GET "/rest_spec/doc" for 127.0.0.1 at 2013-05-20 13:29:59 +0200
|
232
|
+
Processing by Respect::Rails::SchemasController#doc as HTML
|
233
|
+
Completed 200 OK in 1038ms (Views: 589.4ms | ActiveRecord: 0.0ms)
|
234
|
+
Started GET "/rest_spec/doc.html" for 127.0.0.1 at 2013-05-20 13:30:00 +0200
|
235
|
+
Processing by Respect::Rails::SchemasController#doc as HTML
|
236
|
+
Completed 200 OK in 1034ms (Views: 583.1ms | ActiveRecord: 0.0ms)
|
237
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
238
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
239
|
+
Started GET "/" for 127.0.0.1 at 2013-05-20 13:30:01 +0200
|
240
|
+
Processing by AutomaticValidationController#basic_get as JSON
|
241
|
+
Parameters: {"param1"=>42}
|
242
|
+
Request validation: success (6.7ms)
|
243
|
+
Response validation: success (2.3ms)
|
244
|
+
Completed 200 OK in 14ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
245
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
246
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
247
|
+
Started GET "/automatic_validation/check_request_headers.json" for 127.0.0.1 at 2013-05-20 13:30:01 +0200
|
248
|
+
Processing by AutomaticValidationController#check_request_headers as JSON
|
249
|
+
Request validation: failure (2.9ms)
|
250
|
+
wrong value: `erroneous_value':String instead of `value':String
|
251
|
+
in hash property `X-Test-Header'
|
252
|
+
in headers
|
253
|
+
Completed 500 Internal Server Error in 6ms
|
254
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
255
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
256
|
+
Started GET "/automatic_validation/check_request_headers.json" for 127.0.0.1 at 2013-05-20 13:30:01 +0200
|
257
|
+
Processing by AutomaticValidationController#check_request_headers as JSON
|
258
|
+
Request validation: success (4.7ms)
|
259
|
+
Response validation: none (0.0ms)
|
260
|
+
Completed 200 OK in 32ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
261
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
262
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
263
|
+
Processing by NoSchemaController#basic as JSON
|
264
|
+
Parameters: {"param1"=>51}
|
265
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
266
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
267
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
268
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
269
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
270
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
271
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
272
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
273
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
274
|
+
Processing by Respect::Rails::SchemasController#doc as HTML
|
275
|
+
Completed 200 OK in 872ms (Views: 474.7ms | ActiveRecord: 0.0ms)
|
276
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
277
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
278
|
+
Processing by Respect::Rails::SchemasController#index as HTML
|
279
|
+
Completed 200 OK in 4ms (Views: 1.1ms | ActiveRecord: 0.0ms)
|
280
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
281
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
282
|
+
Processing by SkippedAutomaticValidationController#basic_get as JSON
|
283
|
+
Parameters: {"param1"=>51}
|
284
|
+
Completed 500 Internal Server Error in 4ms
|
285
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
286
|
+
Connecting to database specified by database.yml
|
287
|
+
[1m[36m (0.3ms)[0m [1mbegin transaction[0m
|
288
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
289
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
290
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
291
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
292
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
293
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
294
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
295
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
296
|
+
Processing by AutomaticValidationController#basic_get as JSON
|
297
|
+
Parameters: {"param1"=>"42"}
|
298
|
+
Request validation: success (8.9ms)
|
299
|
+
Response validation: success (4.7ms)
|
300
|
+
Completed 200 OK in 22ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
301
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
302
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
303
|
+
Processing by AutomaticValidationController#basic_get as JSON
|
304
|
+
Parameters: {"param1"=>54}
|
305
|
+
Request validation: failure (5.9ms)
|
306
|
+
wrong value: `54':Fixnum instead of `42':Fixnum
|
307
|
+
in hash property `param1'
|
308
|
+
in query
|
309
|
+
Completed 500 Internal Server Error in 10ms
|
310
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
311
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
312
|
+
Processing by AutomaticValidationController#composite_custom_types as JSON
|
313
|
+
Parameters: {"circle"=>{"center"=>{"x"=>"1.0", "y"=>"2.0"}, "radius"=>"5.5"}, "color"=>[0.0, 0.1, 0.2, 0.3]}
|
314
|
+
Request validation: success (22.1ms)
|
315
|
+
Response validation: none (0.0ms)
|
316
|
+
Completed 200 OK in 59ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
317
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
318
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
319
|
+
Processing by AutomaticValidationController#dump_uri_helpers as JSON
|
320
|
+
Request validation: none (0.0ms)
|
321
|
+
Response validation: none (0.0ms)
|
322
|
+
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
323
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
324
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
325
|
+
Processing by AutomaticValidationController#check_response_headers as JSON
|
326
|
+
Parameters: {"response_header_value"=>"wrong"}
|
327
|
+
Request validation: none (0.0ms)
|
328
|
+
Response validation: failure (22.8ms)
|
329
|
+
wrong value: `wrong':String instead of `good':String
|
330
|
+
in hash property `X-Test-Header'
|
331
|
+
in headers
|
332
|
+
Completed 500 Internal Server Error in 25ms
|
333
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
334
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
335
|
+
Processing by AutomaticValidationController#request_format as HTML
|
336
|
+
Request validation: success (3.7ms)
|
337
|
+
Response validation: none (0.0ms)
|
338
|
+
Completed 200 OK in 19ms (Views: 10.9ms | ActiveRecord: 0.0ms)
|
339
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
340
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
341
|
+
Processing by AutomaticValidationController#request_format as HTML
|
342
|
+
Request validation: success (3.6ms)
|
343
|
+
Response validation: none (0.0ms)
|
344
|
+
Completed 200 OK in 8ms (Views: 0.8ms | ActiveRecord: 0.0ms)
|
345
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
346
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
347
|
+
Processing by AutomaticValidationController#request_format as JSON
|
348
|
+
Request validation: success (3.7ms)
|
349
|
+
Response validation: success (1.8ms)
|
350
|
+
Completed 200 OK in 9ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
351
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
352
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
353
|
+
Processing by AutomaticValidationController#request_format as PDF
|
354
|
+
Request validation: success (25.6ms)
|
355
|
+
Response validation: none (0.0ms)
|
356
|
+
Completed 200 OK in 31ms (Views: 1.8ms | ActiveRecord: 0.0ms)
|
357
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
358
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
359
|
+
Processing by AutomaticValidationController#no_request_schema as JSON
|
360
|
+
Parameters: {"returned_id"=>6666666}
|
361
|
+
Request validation: none (0.0ms)
|
362
|
+
Response validation: failure (2.2ms)
|
363
|
+
wrong value: `6666666':Fixnum instead of `42':Fixnum
|
364
|
+
in hash property `id'
|
365
|
+
in body
|
366
|
+
Completed 500 Internal Server Error in 4ms
|
367
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
368
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
369
|
+
Processing by AutomaticValidationController#no_request_schema as JSON
|
370
|
+
Parameters: {"returned_id"=>42}
|
371
|
+
Request validation: none (0.0ms)
|
372
|
+
Response validation: success (1.9ms)
|
373
|
+
Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
374
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
375
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
376
|
+
Processing by AutomaticValidationController#no_schema_at_all as JSON
|
377
|
+
Parameters: {"param1"=>"whatever"}
|
378
|
+
Request validation: none (0.0ms)
|
379
|
+
Response validation: none (0.0ms)
|
380
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
381
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
382
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
383
|
+
Processing by AutomaticValidationController#basic_post as JSON
|
384
|
+
Parameters: {"body_param"=>"42", "response_param"=>42, "path_param"=>"42"}
|
385
|
+
Request validation: success (7.5ms)
|
386
|
+
Response validation: success (1.8ms)
|
387
|
+
Completed 200 OK in 14ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
388
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
389
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
390
|
+
Processing by AutomaticValidationController#request_contextual_error as JSON
|
391
|
+
Parameters: {"o1"=>{"o2"=>{"i"=>54}}}
|
392
|
+
Request validation: failure (5.7ms)
|
393
|
+
wrong value: `54':Fixnum instead of `42':Fixnum
|
394
|
+
in hash property `i'
|
395
|
+
in hash property `o2'
|
396
|
+
in hash property `o1'
|
397
|
+
in query
|
398
|
+
Completed 500 Internal Server Error in 9ms
|
399
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
400
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
401
|
+
Processing by AutomaticValidationController#response_contextual_error as JSON
|
402
|
+
Request validation: none (0.0ms)
|
403
|
+
Response validation: failure (2.2ms)
|
404
|
+
wrong value: `42':Fixnum instead of `51':Fixnum
|
405
|
+
in hash property `i'
|
406
|
+
in hash property `o2'
|
407
|
+
in hash property `o1'
|
408
|
+
in body
|
409
|
+
Completed 500 Internal Server Error in 5ms
|
410
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
411
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
412
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
413
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
414
|
+
Processing by AutomaticValidationController#check_response_headers as JSON
|
415
|
+
Parameters: {"response_header_value"=>"good"}
|
416
|
+
Request validation: none (0.0ms)
|
417
|
+
Response validation: success (2.1ms)
|
418
|
+
Completed 200 OK in 3ms (Views: 0.0ms | ActiveRecord: 0.0ms)
|
419
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
420
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
421
|
+
Processing by CaughtExceptionController#response_validator as HTML
|
422
|
+
Parameters: {"id"=>"error_value"}
|
423
|
+
Request validation: none (0.0ms)
|
424
|
+
Response validation: none (0.0ms)
|
425
|
+
Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)
|
426
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
427
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
428
|
+
Processing by CaughtExceptionController#request_validator as HTML
|
429
|
+
Parameters: {"id"=>"error_value"}
|
430
|
+
Request validation: failure (3.7ms)
|
431
|
+
malformed integer value: `error_value'
|
432
|
+
in hash property `id'
|
433
|
+
in query
|
434
|
+
Completed 500 Internal Server Error in 10ms (Views: 3.0ms | ActiveRecord: 0.0ms)
|
435
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
436
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
437
|
+
Processing by CaughtExceptionController#request_validator as JSON
|
438
|
+
Parameters: {"id"=>"error_value"}
|
439
|
+
Request validation: failure (3.7ms)
|
440
|
+
malformed integer value: `error_value'
|
441
|
+
in hash property `id'
|
442
|
+
in query
|
443
|
+
Completed 500 Internal Server Error in 7ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
444
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
445
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
446
|
+
Processing by CaughtExceptionController#response_validator as JSON
|
447
|
+
Parameters: {"id"=>"error_value"}
|
448
|
+
Request validation: none (0.0ms)
|
449
|
+
Response validation: failure (0.2ms)
|
450
|
+
malformed integer value: `error_value'
|
451
|
+
in hash property `id'
|
452
|
+
in body
|
453
|
+
Completed 500 Internal Server Error in 2ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
454
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
455
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
456
|
+
Processing by DisabledController#basic as JSON
|
457
|
+
Parameters: {"param1"=>42}
|
458
|
+
Request validation: none (0.0ms)
|
459
|
+
Response validation: none (0.0ms)
|
460
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
461
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
462
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
463
|
+
Processing by DisabledController#basic as JSON
|
464
|
+
Parameters: {"param1"=>54}
|
465
|
+
Request validation: none (0.0ms)
|
466
|
+
Response validation: none (0.0ms)
|
467
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
468
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
469
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
470
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
471
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
472
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
473
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
474
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
475
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
476
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
477
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
478
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
479
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
480
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
481
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
482
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
483
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
484
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
485
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
486
|
+
Processing by ManualValidationController#no_schema as JSON
|
487
|
+
Parameters: {"param1"=>1664}
|
488
|
+
Request validation: none (0.0ms)
|
489
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
490
|
+
Response validation: none (0.0ms)
|
491
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
492
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
493
|
+
Processing by ManualValidationController#raise_custom_error as JSON
|
494
|
+
Parameters: {"param1"=>54}
|
495
|
+
Request validation: failure (5.6ms)
|
496
|
+
wrong value: `54':Fixnum instead of `42':Fixnum
|
497
|
+
in hash property `param1'
|
498
|
+
in query
|
499
|
+
Completed 500 Internal Server Error in 10ms
|
500
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
501
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
502
|
+
Processing by ManualValidationController#raise_custom_error_without_rescue as JSON
|
503
|
+
Parameters: {"param1"=>54}
|
504
|
+
Request validation: failure (5.8ms)
|
505
|
+
wrong value: `54':Fixnum instead of `42':Fixnum
|
506
|
+
in hash property `param1'
|
507
|
+
in query
|
508
|
+
Completed 500 Internal Server Error in 10ms
|
509
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
510
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
511
|
+
Started GET "/rest_spec" for 127.0.0.1 at 2013-05-20 13:37:48 +0200
|
512
|
+
Processing by Respect::Rails::SchemasController#index as HTML
|
513
|
+
Completed 200 OK in 29ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
514
|
+
Started GET "/rest_spec/doc" for 127.0.0.1 at 2013-05-20 13:37:48 +0200
|
515
|
+
Processing by Respect::Rails::SchemasController#doc as HTML
|
516
|
+
Completed 200 OK in 1030ms (Views: 583.9ms | ActiveRecord: 0.0ms)
|
517
|
+
Started GET "/rest_spec/doc.html" for 127.0.0.1 at 2013-05-20 13:37:49 +0200
|
518
|
+
Processing by Respect::Rails::SchemasController#doc as HTML
|
519
|
+
Completed 200 OK in 1033ms (Views: 581.3ms | ActiveRecord: 0.0ms)
|
520
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
521
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
522
|
+
Started GET "/" for 127.0.0.1 at 2013-05-20 13:37:50 +0200
|
523
|
+
Processing by AutomaticValidationController#basic_get as JSON
|
524
|
+
Parameters: {"param1"=>42}
|
525
|
+
Request validation: success (7.0ms)
|
526
|
+
Response validation: success (2.2ms)
|
527
|
+
Completed 200 OK in 14ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
528
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
529
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
530
|
+
Started GET "/automatic_validation/check_request_headers.json" for 127.0.0.1 at 2013-05-20 13:37:50 +0200
|
531
|
+
Processing by AutomaticValidationController#check_request_headers as JSON
|
532
|
+
Request validation: failure (2.5ms)
|
533
|
+
wrong value: `erroneous_value':String instead of `value':String
|
534
|
+
in hash property `X-Test-Header'
|
535
|
+
in headers
|
536
|
+
Completed 500 Internal Server Error in 6ms
|
537
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
538
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
539
|
+
Started GET "/automatic_validation/check_request_headers.json" for 127.0.0.1 at 2013-05-20 13:37:50 +0200
|
540
|
+
Processing by AutomaticValidationController#check_request_headers as JSON
|
541
|
+
Request validation: success (4.6ms)
|
542
|
+
Response validation: none (0.0ms)
|
543
|
+
Completed 200 OK in 31ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
544
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
545
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
546
|
+
Processing by NoSchemaController#basic as JSON
|
547
|
+
Parameters: {"param1"=>51}
|
548
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
549
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
550
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
551
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
552
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
553
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
554
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
555
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
556
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
557
|
+
Processing by Respect::Rails::SchemasController#doc as HTML
|
558
|
+
Completed 200 OK in 881ms (Views: 487.4ms | ActiveRecord: 0.0ms)
|
559
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
560
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
561
|
+
Processing by Respect::Rails::SchemasController#index as HTML
|
562
|
+
Completed 200 OK in 4ms (Views: 1.1ms | ActiveRecord: 0.0ms)
|
563
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
564
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
565
|
+
Processing by SkippedAutomaticValidationController#basic_get as JSON
|
566
|
+
Parameters: {"param1"=>51}
|
567
|
+
Completed 500 Internal Server Error in 4ms
|
568
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
569
|
+
Connecting to database specified by database.yml
|
570
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
571
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
572
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
573
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
574
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
575
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
576
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
577
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
578
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
579
|
+
Processing by AutomaticValidationController#basic_get as JSON
|
580
|
+
Parameters: {"param1"=>"42"}
|
581
|
+
Request validation: success (8.1ms)
|
582
|
+
Response validation: success (4.3ms)
|
583
|
+
Completed 200 OK in 20ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
584
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
585
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
586
|
+
Processing by AutomaticValidationController#basic_get as JSON
|
587
|
+
Parameters: {"param1"=>54}
|
588
|
+
Request validation: failure (6.1ms)
|
589
|
+
wrong value: `54':Fixnum instead of `42':Fixnum
|
590
|
+
in hash property `param1'
|
591
|
+
in query
|
592
|
+
Completed 500 Internal Server Error in 10ms
|
593
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
594
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
595
|
+
Processing by AutomaticValidationController#composite_custom_types as JSON
|
596
|
+
Parameters: {"circle"=>{"center"=>{"x"=>"1.0", "y"=>"2.0"}, "radius"=>"5.5"}, "color"=>[0.0, 0.1, 0.2, 0.3]}
|
597
|
+
Request validation: success (21.1ms)
|
598
|
+
Response validation: none (0.0ms)
|
599
|
+
Completed 200 OK in 57ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
600
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
601
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
602
|
+
Processing by AutomaticValidationController#dump_uri_helpers as JSON
|
603
|
+
Request validation: none (0.0ms)
|
604
|
+
Response validation: none (0.0ms)
|
605
|
+
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
606
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
607
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
608
|
+
Processing by AutomaticValidationController#check_response_headers as JSON
|
609
|
+
Parameters: {"response_header_value"=>"wrong"}
|
610
|
+
Request validation: none (0.0ms)
|
611
|
+
Response validation: failure (22.0ms)
|
612
|
+
wrong value: `wrong':String instead of `good':String
|
613
|
+
in hash property `X-Test-Header'
|
614
|
+
in headers
|
615
|
+
Completed 500 Internal Server Error in 24ms
|
616
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
617
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
618
|
+
Processing by AutomaticValidationController#request_format as HTML
|
619
|
+
Request validation: success (3.8ms)
|
620
|
+
Response validation: none (0.0ms)
|
621
|
+
Completed 200 OK in 19ms (Views: 10.2ms | ActiveRecord: 0.0ms)
|
622
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
623
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
624
|
+
Processing by AutomaticValidationController#request_format as HTML
|
625
|
+
Request validation: success (3.6ms)
|
626
|
+
Response validation: none (0.0ms)
|
627
|
+
Completed 200 OK in 8ms (Views: 0.8ms | ActiveRecord: 0.0ms)
|
628
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
629
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
630
|
+
Processing by AutomaticValidationController#request_format as JSON
|
631
|
+
Request validation: success (3.5ms)
|
632
|
+
Response validation: success (1.9ms)
|
633
|
+
Completed 200 OK in 9ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
634
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
635
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
636
|
+
Processing by AutomaticValidationController#request_format as PDF
|
637
|
+
Request validation: success (24.0ms)
|
638
|
+
Response validation: none (0.0ms)
|
639
|
+
Completed 200 OK in 30ms (Views: 1.7ms | ActiveRecord: 0.0ms)
|
640
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
641
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
642
|
+
Processing by AutomaticValidationController#no_request_schema as JSON
|
643
|
+
Parameters: {"returned_id"=>6666666}
|
644
|
+
Request validation: none (0.0ms)
|
645
|
+
Response validation: failure (2.0ms)
|
646
|
+
wrong value: `6666666':Fixnum instead of `42':Fixnum
|
647
|
+
in hash property `id'
|
648
|
+
in body
|
649
|
+
Completed 500 Internal Server Error in 4ms
|
650
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
651
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
652
|
+
Processing by AutomaticValidationController#no_request_schema as JSON
|
653
|
+
Parameters: {"returned_id"=>42}
|
654
|
+
Request validation: none (0.0ms)
|
655
|
+
Response validation: success (1.8ms)
|
656
|
+
Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
657
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
658
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
659
|
+
Processing by AutomaticValidationController#no_schema_at_all as JSON
|
660
|
+
Parameters: {"param1"=>"whatever"}
|
661
|
+
Request validation: none (0.0ms)
|
662
|
+
Response validation: none (0.0ms)
|
663
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
664
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
665
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
666
|
+
Processing by AutomaticValidationController#basic_post as JSON
|
667
|
+
Parameters: {"body_param"=>"42", "response_param"=>42, "path_param"=>"42"}
|
668
|
+
Request validation: success (7.4ms)
|
669
|
+
Response validation: success (1.9ms)
|
670
|
+
Completed 200 OK in 14ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
671
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
672
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
673
|
+
Processing by AutomaticValidationController#request_contextual_error as JSON
|
674
|
+
Parameters: {"o1"=>{"o2"=>{"i"=>54}}}
|
675
|
+
Request validation: failure (6.3ms)
|
676
|
+
wrong value: `54':Fixnum instead of `42':Fixnum
|
677
|
+
in hash property `i'
|
678
|
+
in hash property `o2'
|
679
|
+
in hash property `o1'
|
680
|
+
in query
|
681
|
+
Completed 500 Internal Server Error in 10ms
|
682
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
683
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
684
|
+
Processing by AutomaticValidationController#response_contextual_error as JSON
|
685
|
+
Request validation: none (0.0ms)
|
686
|
+
Response validation: failure (2.2ms)
|
687
|
+
wrong value: `42':Fixnum instead of `51':Fixnum
|
688
|
+
in hash property `i'
|
689
|
+
in hash property `o2'
|
690
|
+
in hash property `o1'
|
691
|
+
in body
|
692
|
+
Completed 500 Internal Server Error in 5ms
|
693
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
694
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
695
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
696
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
697
|
+
Processing by AutomaticValidationController#check_response_headers as JSON
|
698
|
+
Parameters: {"response_header_value"=>"good"}
|
699
|
+
Request validation: none (0.0ms)
|
700
|
+
Response validation: success (2.1ms)
|
701
|
+
Completed 200 OK in 3ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
702
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
703
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
704
|
+
Processing by CaughtExceptionController#response_validator as HTML
|
705
|
+
Parameters: {"id"=>"error_value"}
|
706
|
+
Request validation: none (0.0ms)
|
707
|
+
Response validation: none (0.0ms)
|
708
|
+
Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.0ms)
|
709
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
710
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
711
|
+
Processing by CaughtExceptionController#request_validator as HTML
|
712
|
+
Parameters: {"id"=>"error_value"}
|
713
|
+
Request validation: failure (3.7ms)
|
714
|
+
malformed integer value: `error_value'
|
715
|
+
in hash property `id'
|
716
|
+
in query
|
717
|
+
Completed 500 Internal Server Error in 10ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
718
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
719
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
720
|
+
Processing by CaughtExceptionController#request_validator as JSON
|
721
|
+
Parameters: {"id"=>"error_value"}
|
722
|
+
Request validation: failure (3.9ms)
|
723
|
+
malformed integer value: `error_value'
|
724
|
+
in hash property `id'
|
725
|
+
in query
|
726
|
+
Completed 500 Internal Server Error in 7ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
727
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
728
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
729
|
+
Processing by CaughtExceptionController#response_validator as JSON
|
730
|
+
Parameters: {"id"=>"error_value"}
|
731
|
+
Request validation: none (0.0ms)
|
732
|
+
Response validation: failure (0.2ms)
|
733
|
+
malformed integer value: `error_value'
|
734
|
+
in hash property `id'
|
735
|
+
in body
|
736
|
+
Completed 500 Internal Server Error in 2ms (Views: 0.2ms | ActiveRecord: 0.0ms)
|
737
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
738
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
739
|
+
Processing by DisabledController#basic as JSON
|
740
|
+
Parameters: {"param1"=>42}
|
741
|
+
Request validation: none (0.0ms)
|
742
|
+
Response validation: none (0.0ms)
|
743
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
744
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
745
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
746
|
+
Processing by DisabledController#basic as JSON
|
747
|
+
Parameters: {"param1"=>54}
|
748
|
+
Request validation: none (0.0ms)
|
749
|
+
Response validation: none (0.0ms)
|
750
|
+
Completed 200 OK in 0ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
751
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
752
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
753
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
754
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
755
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
756
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
757
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
758
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
759
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
760
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
761
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
762
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
763
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
764
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
765
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
766
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
767
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
768
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
769
|
+
Processing by ManualValidationController#no_schema as JSON
|
770
|
+
Parameters: {"param1"=>1664}
|
771
|
+
Request validation: none (0.0ms)
|
772
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
773
|
+
Response validation: none (0.0ms)
|
774
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
775
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
776
|
+
Processing by ManualValidationController#raise_custom_error as JSON
|
777
|
+
Parameters: {"param1"=>54}
|
778
|
+
Request validation: failure (5.6ms)
|
779
|
+
wrong value: `54':Fixnum instead of `42':Fixnum
|
780
|
+
in hash property `param1'
|
781
|
+
in query
|
782
|
+
Completed 500 Internal Server Error in 10ms
|
783
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
784
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
785
|
+
Processing by ManualValidationController#raise_custom_error_without_rescue as JSON
|
786
|
+
Parameters: {"param1"=>54}
|
787
|
+
Request validation: failure (5.6ms)
|
788
|
+
wrong value: `54':Fixnum instead of `42':Fixnum
|
789
|
+
in hash property `param1'
|
790
|
+
in query
|
791
|
+
Completed 500 Internal Server Error in 9ms
|
792
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
793
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
794
|
+
Started GET "/rest_spec" for 127.0.0.1 at 2013-05-20 13:38:55 +0200
|
795
|
+
Processing by Respect::Rails::SchemasController#index as HTML
|
796
|
+
Completed 200 OK in 27ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
797
|
+
Started GET "/rest_spec/doc" for 127.0.0.1 at 2013-05-20 13:38:55 +0200
|
798
|
+
Processing by Respect::Rails::SchemasController#doc as HTML
|
799
|
+
Completed 200 OK in 1013ms (Views: 573.1ms | ActiveRecord: 0.0ms)
|
800
|
+
Started GET "/rest_spec/doc.html" for 127.0.0.1 at 2013-05-20 13:38:56 +0200
|
801
|
+
Processing by Respect::Rails::SchemasController#doc as HTML
|
802
|
+
Completed 200 OK in 1025ms (Views: 582.1ms | ActiveRecord: 0.0ms)
|
803
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
804
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
805
|
+
Started GET "/" for 127.0.0.1 at 2013-05-20 13:38:57 +0200
|
806
|
+
Processing by AutomaticValidationController#basic_get as JSON
|
807
|
+
Parameters: {"param1"=>42}
|
808
|
+
Request validation: success (7.0ms)
|
809
|
+
Response validation: success (2.5ms)
|
810
|
+
Completed 200 OK in 14ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
811
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
812
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
813
|
+
Started GET "/automatic_validation/check_request_headers.json" for 127.0.0.1 at 2013-05-20 13:38:57 +0200
|
814
|
+
Processing by AutomaticValidationController#check_request_headers as JSON
|
815
|
+
Request validation: failure (2.5ms)
|
816
|
+
wrong value: `erroneous_value':String instead of `value':String
|
817
|
+
in hash property `X-Test-Header'
|
818
|
+
in headers
|
819
|
+
Completed 500 Internal Server Error in 6ms
|
820
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
821
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
822
|
+
Started GET "/automatic_validation/check_request_headers.json" for 127.0.0.1 at 2013-05-20 13:38:57 +0200
|
823
|
+
Processing by AutomaticValidationController#check_request_headers as JSON
|
824
|
+
Request validation: success (5.1ms)
|
825
|
+
Response validation: none (0.0ms)
|
826
|
+
Completed 200 OK in 33ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
827
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
828
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
829
|
+
Processing by NoSchemaController#basic as JSON
|
830
|
+
Parameters: {"param1"=>51}
|
831
|
+
Completed 200 OK in 1ms (Views: 0.1ms | ActiveRecord: 0.0ms)
|
832
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
833
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
834
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
835
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
836
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
837
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
838
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
839
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
840
|
+
Processing by Respect::Rails::SchemasController#doc as HTML
|
841
|
+
Completed 200 OK in 857ms (Views: 463.5ms | ActiveRecord: 0.0ms)
|
842
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
843
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
844
|
+
Processing by Respect::Rails::SchemasController#index as HTML
|
845
|
+
Completed 200 OK in 4ms (Views: 1.1ms | ActiveRecord: 0.0ms)
|
846
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
847
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
848
|
+
Processing by SkippedAutomaticValidationController#basic_get as JSON
|
849
|
+
Parameters: {"param1"=>51}
|
850
|
+
Completed 500 Internal Server Error in 4ms
|
851
|
+
[1m[35m (0.0ms)[0m rollback transaction
|