From Fedora Project Wiki

Revision as of 12:32, 22 May 2013 by Jerboaa (talk | contribs) (Created page with "{{QA/Test_Case |description=This test case tests that the thermostat agent works correctly. |setup= # Boot into the machine/VM you wish to test. # If thermostat is not install...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

This test case tests that the thermostat agent works correctly.

Setup

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

How to test

  1. Start the thermostat agent: thermostat agent -d mongodb://127.0.0.1:27518 &

Expected Results

  1. This should start the Thermostat agent, a Java process. You can check if it's running by: ps $(jps
  2. The thermostat agent also starts the server component of the command channel on port 12000 (by default). One can check that it's running via netcat: nc 127.0.0.1 12000. This should NOT result in a connection refused error message.
  3. Once you've checked this the agent can be killed as follows: kill $(jps . This should also not throw any exceptions.
  4. Configuration of agent settings are done via /etc/thermostat/agent.properties