Mercurial > hg > ThermostatQA
changeset 165:419257a68b27
fixes of some tests
author | Zdenek Zambersky <zzambers@redhat.com> |
---|---|
date | Wed, 29 Oct 2014 15:38:02 +0100 |
parents | 8d89a507c0ad |
children | 9266f046203d |
files | ChangeLog patterns/1.1.0/AA/AboutDialog/about_text_lower_part.png patterns/1.1.0/noAA/AboutDialog/about_text_lower_part.png scripts/add_agent_db_commands.txt scripts/find_mongo_port.sh scripts/find_mongo_port_and_add_agent.sh src/org/thermostat/qa/testsuites/GuiClientSmokeTest.java |
diffstat | 7 files changed, 18 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Oct 29 15:20:22 2014 +0100 +++ b/ChangeLog Wed Oct 29 15:38:02 2014 +0100 @@ -1,3 +1,17 @@ +2014-10-29 Zdenek Zambersky <zzambers@redhat.com> + + * scripts/add_agent_db_commands.txt: added authentication, because local + storage exception is no longer used + * scripts/find_mongo_port.sh: script expects that lsof refers local machine + as localhost.localdomain but it can be also only localhost obviously + * scritps/scripts/find_mongo_port_and_add_agent.sh: same as previous + * src/org/thermostat/qa/testsuites/GuiClientSmokeTest.java: because tests + are now using gnome-keyring save credentials checkbox is checked + * patterns/1.1.0/AA/AboutDialog/about_text_lower_part.png: copyright dates + changed in about dialog + * patterns/1.1.0/noAA/AboutDialog/about_text_lower_part.png: same as + previous + 2014-10-22 Zdenek Zambersky <zzambers@redhat.com> Some fixes which removes several syntax errors in generated html reports.
--- a/scripts/add_agent_db_commands.txt Wed Oct 29 15:20:22 2014 +0100 +++ b/scripts/add_agent_db_commands.txt Wed Oct 29 15:38:02 2014 +0100 @@ -1,4 +1,5 @@ use thermostat +db.auth("agent-tester","heslo1") db db["agent-config"].insert({ "agentId" : "artif-added-agent-for-testing", "alive" : true, "configListenAddress" : "127.0.0.1:12345", "startTime" : NumberLong("1234567891011"), "stopTime" : NumberLong(0) }) exit
--- a/scripts/find_mongo_port.sh Wed Oct 29 15:20:22 2014 +0100 +++ b/scripts/find_mongo_port.sh Wed Oct 29 15:38:02 2014 +0100 @@ -1,1 +1,1 @@ -lsof -i | grep mongo | sed -e 's/^.*localhost.localdomain://g;s/ (LISTEN).*$//g' > scripts/mongoPortNumber.txt +lsof -i | grep mongo | sed -e 's/^.*localhost.localdomain://g;s/^.*localhost://g;s/ (LISTEN).*$//g;' > scripts/mongoPortNumber.txt
--- a/scripts/find_mongo_port_and_add_agent.sh Wed Oct 29 15:20:22 2014 +0100 +++ b/scripts/find_mongo_port_and_add_agent.sh Wed Oct 29 15:38:02 2014 +0100 @@ -1,2 +1,2 @@ -lsof -i | grep mongo | sed -e 's/^.*localhost.localdomain://g;s/ (LISTEN).*$//g' > scripts/mongoPortNumber.txt +lsof -i | grep mongo | sed -e 's/^.*localhost.localdomain://g;s/^.*localhost://g;s/ (LISTEN).*$//g' > scripts/mongoPortNumber.txt mongo --port `cat scripts/mongoPortNumber.txt` < scripts/add_agent_db_commands.txt
--- a/src/org/thermostat/qa/testsuites/GuiClientSmokeTest.java Wed Oct 29 15:20:22 2014 +0100 +++ b/src/org/thermostat/qa/testsuites/GuiClientSmokeTest.java Wed Oct 29 15:38:02 2014 +0100 @@ -424,7 +424,7 @@ checkForPattern(robot, Patterns.ClientPreferencesDialog.USER_NAME_LABEL, "user name label"); checkForPattern(robot, Patterns.ClientPreferencesDialog.PASSWORD_LABEL, "password label"); checkForPattern(robot, Patterns.ClientPreferencesDialog.STORAGE_URL_LABEL, "storage url label"); - checkForPattern(robot, Patterns.ClientPreferencesDialog.SAVE_ENTITLEMENTS_CHECKBOX, "save entitlements checkbox"); + checkForPattern(robot, Patterns.ClientPreferencesDialog.SAVE_ENTITLEMENTS_CHECKED, "save entitlements checkbox"); robot.saveScreenshot("testEditClientPreferencesTest2"); }