Project

General

Profile

Feature #691

Implement simple status service

Added by Lukas Zapletal about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Category:
-
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Simple status (ping) service that would respond with JSON

{ "status":"ok" }

Associated revisions

Revision b752d4f7 (diff)
Added by Lukas Zapletal about 8 years ago

Fixes #691 - Implement simple status service

Signed-off-by: Lukas Zapletal <>

History

#1 Updated by Lukas Zapletal about 8 years ago

  • Assignee set to Lukas Zapletal

#2 Updated by Lukas Zapletal about 8 years ago

I have implemented this: https://github.com/ohadlevy/foreman/pull/6

Here is how to use it:

$ curl -k -H "Accept: application/json" http://localhost:3001/status
{"db_duration_ms":"2","result":"ok"}

#3 Updated by Lukas Zapletal about 8 years ago

  • Status changed from New to Pending
  • % Done changed from 0 to 100

#4 Updated by Ohad Levy about 8 years ago

would you mind sending it to foreman-dev mailing list as a patch? - see Contribute

#5 Updated by Lukas Zapletal about 8 years ago

I will do that. I dont know why it did not send me an email when you updated the task. Need to get familiar with RedMine :-)

#6 Updated by Lukas Zapletal about 8 years ago

Moving to the home controller and creating functional test. I will re-send my patch to the list.

#7 Updated by Lukas Zapletal about 8 years ago

Sending new patch to the list:

- moved to home controller
- returns HTTP CODE 200 when ok, 500 on error
- functional test

#8 Updated by Anonymous about 8 years ago

  • Status changed from Pending to Ready For Testing

#9 Updated by Ohad Levy about 8 years ago

  • Status changed from Ready For Testing to Closed
  • Target version set to 0.2

Also available in: Atom PDF