HipChat requires Oauth2 now
Created by: garlandkr
When adding a token to a room and running the test message there is a resulting error:
Started GET "test/services/hipchat/test" for x.x.x.x at 2014-07-25 19:42:04 +0000
Processing by Projects::ServicesController#test as HTML
Parameters: {"project_id"=>"test", "id"=>"hipchat"}
Completed 500 Internal Server Error in 135ms
HipChat::Unauthorized (Access denied to room `test'):
app/models/project_services/hipchat_service.rb:45:in `execute'
app/controllers/projects/services_controller.rb:29:in `test'
Started PUT "test" for x.x.x.x at 2014-07-25 19:42:10 +0000
Processing by Projects::ServicesController#update as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"test", "service"=>{"active"=>"1", "token"=>"test", "room"=>"test"}, "project_id"=>"test", "id"=>"hipchat"}
Redirected to https://test/services/hipchat/edit
Completed 302 Found in 40ms (ActiveRecord: 6.5ms)
Started GET "test/services/hipchat/edit" for x.x.x.x at 2014-07-25 19:42:10 +0000
Processing by Projects::ServicesController#edit as HTML
Parameters: {"project_id"=>"test", "id"=>"hipchat"}
Completed 200 OK in 83ms (Views: 45.8ms | ActiveRecord: 5.9ms)
Started GET "test/services/hipchat/test" for x.x.x.x at 2014-07-25 19:42:11 +0000
Processing by Projects::ServicesController#test as HTML
Parameters: {"project_id"=>"test", "id"=>"hipchat"}
Completed 500 Internal Server Error in 135ms
HipChat::Unauthorized (Access denied to room `test'):
app/models/project_services/hipchat_service.rb:45:in `execute'
app/controllers/projects/services_controller.rb:29:in `test'
Account credentials need to be added somewhere so an authenticated request can be made from the GitLab settings page for the repo.