From Fedora Project Wiki
(Created page with "{{QA/Test_Case |description=This test case tests whether thermostat command channel interactions fail if the agent user is missing the thermostat-cmdc-verify role. |setup= # B...") |
No edit summary |
||
Line 11: | Line 11: | ||
# Connect to the thermostat web service at the shell prompt: {{command| Thermostat > connect -d http://127.0.0.1:8080/thermostat/storage}} | # Connect to the thermostat web service at the shell prompt: {{command| Thermostat > connect -d http://127.0.0.1:8080/thermostat/storage}} | ||
# Figure out the host ID of a running agent (a,k.a. agent ID). Note that this list-vms command will use web storage rather than mongodb directly. {{command| Thermostat > list-vms}} | # Figure out the host ID of a running agent (a,k.a. agent ID). Note that this list-vms command will use web storage rather than mongodb directly. {{command| Thermostat > list-vms}} | ||
# On the thermostat shell, attempt to ping the host ID: {{command| <nowiki>Thermostat > ping | # On the thermostat shell, attempt to ping the host ID (please replace <hostID> with the real ID): {{command| <nowiki>Thermostat > ping <hostID></nowiki>}} | ||
|results= | |results= | ||
# At step 6, the ping should come back with: | # At step 6, the ping should come back with: |
Revision as of 17:07, 22 May 2013
Description
This test case tests whether thermostat command channel interactions fail if the agent user is missing the thermostat-cmdc-verify role.
Setup
- Boot into the machine/VM you wish to test.
- If thermostat-webapp is not yet installed, install it.
- Perform all actions as described in the basic web service test case.
How to test
- Open /etc/thermostat/thermostat-roles.properties and remove the role "thermostat-cmdc-verify" role from the "thermostat-agent" recursive role definition (right side of '=').
- Start the thermostat agent, connecting to webstorage:
thermostat agent -d http://127.0.0.1:8080/thermostat/storage
- Start the thermostat shell:
thermostat shell
- Connect to the thermostat web service at the shell prompt:
Thermostat > connect -d http://127.0.0.1:8080/thermostat/storage
- Figure out the host ID of a running agent (a,k.a. agent ID). Note that this list-vms command will use web storage rather than mongodb directly.
Thermostat > list-vms
- On the thermostat shell, attempt to ping the host ID (please replace <hostID> with the real ID):
Thermostat > ping <hostID>
Expected Results
- At step 6, the ping should come back with:
Queuing ping request. Destination: /127.0.0.1:12000 Unknown result from ping command
- It is a known issue that the error message shown to the user is "Unknown result from ping command". This will be fixed upstream very soon. The new error message will detail the real reason "authentication/authorization issue".