From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description=This test case tests whether thermostat agent/gui can be used with web storage (no https setup required). |setup= # Boot into the machine/VM you wi...")
 
No edit summary
Line 5: Line 5:
# Install {{command|thermstat-0.6.0-12.fc19}} and {{command|thermstat-webapp-0.6.0-12.fc19}} via {{command|yum install thermostat thermostat-webapp}}.
# Install {{command|thermstat-0.6.0-12.fc19}} and {{command|thermstat-webapp-0.6.0-12.fc19}} via {{command|yum install thermostat thermostat-webapp}}.
|actions=
|actions=
# Start thermostat storage. {{command|thermostat storage --start &}}
# Start thermostat storage: {{command|thermostat storage --start &}}
# Start web storage webapp via the tomcat service. {{command|sudo systemctl start tomcat.service}}
# Start web storage webapp via the tomcat service: {{command|sudo systemctl start tomcat.service}}
# Make sure that tomcat is running. You can visit http://127.0.0.1:8080 which should show the tomcat start page.
# Make sure that tomcat is running. You can visit http://127.0.0.1:8080 which should show the tomcat start page.
# Start the thermostat agent, connecting to webstorage. {{command|thermostat agent -d http://127.0.0.1:8080/thermostat/storage -u agent-tester -p tester}}
# Start the thermostat agent, connecting to webstorage: {{command|thermostat agent -d http://127.0.0.1:8080/thermostat/storage -u agent-tester -p tester}}
# Start thermostat gui. {{command|thermostat gui}}
# Start thermostat swing client: {{command|thermostat gui}}
#
# Change client preferences in order to connect to web storage. Edit => Client Preferences. Enter {{filename|http://127.0.0.1:8080/thermostat/storage}} as "Storage Url", use {{filename|client-tester}} as "User Name" and {{filename|tester}} as "Password". Check "Save Entitlements".
# Click OK and close the swing client.
# Start the swing client again: {{command|thermostat gui}}
|results=
|results=
# {{filename|sources}} should have changed according to the action you've carried out. I.e. "Add to existing sources" should have appended, "Replace existing sources" should have erased existing entries and created a new, single entry with the MD5 sum of the source and its filename.
# Agent and client should be able to connect fine to http:// URLs. No WARNING messages should appear and no exceptions should be thrown. You can check that at least one agent is listed via: "View" => "View all agents...".
# The archive file you've uploaded should now be ignored by Git. I.e. an entry should have been added to your {{filename|.gitignore}} file.
# The archive should now be available in the lookaside cache. In order to check this, delete the source archive file you've just uploaded from your project in Eclipse, right-click on the .spec file, "Fedora Packager" => "Download Sources". This should download files listed in the {{filename|sources}} file and should have recreated the file you've just deleted.
}}

Revision as of 15:17, 18 March 2013

{{QA/Test_Case |description=This test case tests whether thermostat agent/gui can be used with web storage (no https setup required). |setup=

  1. Boot into the machine/VM you wish to test.
  2. Install thermstat-0.6.0-12.fc19 and thermstat-webapp-0.6.0-12.fc19 via yum install thermostat thermostat-webapp.

|actions=

  1. Start thermostat storage: thermostat storage --start &
  2. Start web storage webapp via the tomcat service: sudo systemctl start tomcat.service
  3. Make sure that tomcat is running. You can visit http://127.0.0.1:8080 which should show the tomcat start page.
  4. Start the thermostat agent, connecting to webstorage: thermostat agent -d http://127.0.0.1:8080/thermostat/storage -u agent-tester -p tester
  5. Start thermostat swing client: thermostat gui
  6. Change client preferences in order to connect to web storage. Edit => Client Preferences. Enter http://127.0.0.1:8080/thermostat/storage as "Storage Url", use client-tester as "User Name" and tester as "Password". Check "Save Entitlements".
  7. Click OK and close the swing client.
  8. Start the swing client again: thermostat gui

|results=

  1. Agent and client should be able to connect fine to http:// URLs. No WARNING messages should appear and no exceptions should be thrown. You can check that at least one agent is listed via: "View" => "View all agents...".