-
- Downloads
WIP: Add tests and make sure that headers are set
* We realized that headers were not set whenever we give 204 because `render_api_error!` doesn't preserve the headers. * We also realized that `update_runner_info` would be called in POST /builds/register every time therefore runner is updated every time, ticking the queue, making this last_update didn't work very well, and the test would be failing due to that.
Showing
- lib/api/helpers.rb 1 addition, 1 deletionlib/api/helpers.rb
- lib/ci/api/builds.rb 2 additions, 2 deletionslib/ci/api/builds.rb
- spec/models/build_spec.rb 10 additions, 0 deletionsspec/models/build_spec.rb
- spec/models/ci/runner_spec.rb 33 additions, 0 deletionsspec/models/ci/runner_spec.rb
- spec/requests/ci/api/builds_spec.rb 30 additions, 2 deletionsspec/requests/ci/api/builds_spec.rb
Please register or sign in to comment