From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description=This test case tests if the thermostat command channel works (locally). |setup= # Boot into the machine/VM you wish to test. # If thermostat is not...")
 
No edit summary
Line 8: Line 8:
# Figure out an host ID of a live agent: {{command|<nowiki>thermostat list-vms |</nowiki>}}
# Figure out an host ID of a live agent: {{command|<nowiki>thermostat list-vms |</nowiki>}}
# Pick a suitable ID which has STATUS == RUNNING, lets say such an ID is: 0f00d89d-0441-4569-83c7-f08e2182c939
# Pick a suitable ID which has STATUS == RUNNING, lets say such an ID is: 0f00d89d-0441-4569-83c7-f08e2182c939
# Set log level to FINEST and set up a file logger as described in the [[QA:Testcase_thermostat_logging logging test case]]
# Set log level to FINEST and set up a file logger as described in the [[QA:Testcase_thermostat_logging|logging test case]]
# Ping the host ID: {{command|thermostat ping 0f00d89d-0441-4569-83c7-f08e2182c939}}.
# Ping the host ID: {{command|thermostat ping 0f00d89d-0441-4569-83c7-f08e2182c939}}.
|results=
|results=

Revision as of 16:21, 22 May 2013

Description

This test case tests if the thermostat command channel works (locally).

Setup

  1. Boot into the machine/VM you wish to test.
  2. If thermostat is not installed yet, install thermostat.
  3. Start the thermostat service: thermostat service &

How to test

  1. Figure out an host ID of a live agent: thermostat list-vms |
  2. Pick a suitable ID which has STATUS == RUNNING, lets say such an ID is: 0f00d89d-0441-4569-83c7-f08e2182c939
  3. Set log level to FINEST and set up a file logger as described in the logging test case
  4. Ping the host ID: thermostat ping 0f00d89d-0441-4569-83c7-f08e2182c939.

Expected Results

  1. Step 4 should come back with:
Queuing ping request.  Destination: /127.0.0.1:12000
Response received from: /127.0.0.1:12000
  1. Note that all of this should work in a remote setup as well. Many bonus points for testers who try this out! Create a virtual network consisting of two or more hosts sharing one storage. Agent running on one host and calling thermostat ping from different host.