Bug 1093052
| Summary: | [RFE] allow GET method on /recipes/#/watchdog to query current watchdog | ||
|---|---|---|---|
| Product: | [Retired] Beaker | Reporter: | Bill Peck <bpeck> |
| Component: | lab controller | Assignee: | Dan Callaghan <dcallagh> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 0.16 | CC: | aigao, asaha, dcallagh, rmancy, xma |
| Target Milestone: | 0.17 | Keywords: | FutureFeature |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Enhancement | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-10 23:28:21 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Bill Peck
2014-04-30 13:27:30 UTC
On Gerrit: http://gerrit.beaker-project.org/3084 Suggested steps for verifying:
1. Submit a job with:
<task name="/distribution/command">
<param name="CMDS_TO_RUN" value="curl -s http://$LAB_CONTROLLER:8000/recipes/$RECIPEID/watchdog ; rhts-extend $LAB_CONTROLLER $TESTID 1000 ; curl -s http://$LAB_CONTROLLER:8000/recipes/$RECIPEID/watchdog" />
</task>
2. Check TESTOUT.log to see the fetched watchdog values
Expected results:
First curl command should produce the current watchdog time in seconds (I guess around 10800 = 3 hours). Second curl command should produce the new watchdog time that was set (around 1000).
Hmm the JSON response might make it a bit annoying to parse in a shell script, which was Bill's original intention I think... It's the kind of simple JSON response where cut can deal with it fairly easily, though. Beaker 0.17.0 has been released. |