Skip to content

Commit

Permalink
fix smoke-tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brozow committed Aug 14, 2014
1 parent 7aba31c commit da735ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Expand Up @@ -102,7 +102,6 @@ public void testLinkGroupTwo() throws Exception {
clickAndWait("link=Configure SNMP Community Names by IP");
waitForText("SNMP Config Lookup");
waitForText("Updating SNMP Configuration");
waitForText("Content of snmp-config.xml");
waitForText("Descriptions");
waitForText("optimize this list");
clickAndWait("link=Admin");
Expand Down
Expand Up @@ -84,6 +84,11 @@ public void testGetIpInformation() {
gotoPage();
selenium.type("name=firstIPAddress", "1.2.3.4");
selenium.select("name=version", "v3");
selenium.select("name=securityLevel", "authNoPriv");
selenium.type("name=authPassPhrase", "authMe!");
selenium.select("name=authProtocol", "MD5");
selenium.type("name=privacyPassPhrase", "privMe!");
selenium.select("name=privacyProtocol", "DES");
selenium.click("name=saveConfig");
waitForPageToLoad();
selenium.type("name=ipAddress", "1.2.3.4");
Expand All @@ -103,10 +108,10 @@ public void testGetIpInformation() {
assertEquals("", selenium.getValue("name=readCommunityString"));
assertEquals("", selenium.getValue("name=writeCommunityString"));
assertEquals("opennmsUser", selenium.getValue("name=securityName"));
assertEquals("1", selenium.getValue("name=securityLevel")); //authNoPriv
assertEquals("0p3nNMSv3", selenium.getValue("name=authPassPhrase"));
assertEquals("2", selenium.getValue("name=securityLevel")); //authNoPriv
assertEquals("authMe!", selenium.getValue("name=authPassPhrase"));
assertEquals("MD5", selenium.getValue("name=authProtocol"));
assertEquals("0p3nNMSv3", selenium.getValue("name=privacyPassPhrase"));
assertEquals("privMe!", selenium.getValue("name=privacyPassPhrase"));
assertEquals("DES", selenium.getValue("name=privacyProtocol"));
assertEquals("", selenium.getValue("name=engineId"));
assertEquals("", selenium.getValue("name=contextEngineId"));
Expand Down

0 comments on commit da735ed

Please sign in to comment.