juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexo...@apache.org
Subject [1/4] juddi git commit: JUDDI-651 start of selenium based ui tests
Date Tue, 08 Dec 2015 02:15:50 GMT
Repository: juddi
Updated Branches:
  refs/heads/feature/JUDDI-651 [created] 7c8594cac


http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui-test/serverNode2.xml
----------------------------------------------------------------------
diff --git a/juddi-gui-test/serverNode2.xml b/juddi-gui-test/serverNode2.xml
new file mode 100644
index 0000000..4a6b4de
--- /dev/null
+++ b/juddi-gui-test/serverNode2.xml
@@ -0,0 +1,145 @@
+<?xml version='1.0' encoding='utf-8'?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!-- Note:  A "Server" is not itself a "Container", so you may not
+     define subcomponents such as "Valves" at this level.
+     Documentation at /docs/config/server.html
+ -->
+<Server port="9005" shutdown="SHUTDOWN">
+  <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
+  <!-- Security listener. Documentation at /docs/config/listeners.html
+  <Listener className="org.apache.catalina.security.SecurityListener" />
+  -->
+  <!--APR library loader. Documentation at /docs/apr.html -->
+  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
+  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html
-->
+  <Listener className="org.apache.catalina.core.JasperListener" />
+  <!-- Prevent memory leaks due to use of particular java/javax APIs-->
+  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
+  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
+  <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
+
+  <!-- Global JNDI resources
+       Documentation at /docs/jndi-resources-howto.html
+  -->
+  <GlobalNamingResources>
+    <!-- Editable user database that can also be used by
+         UserDatabaseRealm to authenticate users
+    -->
+    <Resource name="UserDatabase" auth="Container"
+              type="org.apache.catalina.UserDatabase"
+              description="User database that can be updated and saved"
+              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
+              pathname="conf/tomcat-users.xml" />
+  </GlobalNamingResources>
+
+  <!-- A "Service" is a collection of one or more "Connectors" that share
+       a single "Container" Note:  A "Service" is not itself a "Container",
+       so you may not define subcomponents such as "Valves" at this level.
+       Documentation at /docs/config/service.html
+   -->
+  <Service name="Catalina">
+
+    <!--The connectors can use a shared executor, you can define one or more named thread
pools-->
+    <!--
+    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
+        maxThreads="150" minSpareThreads="4"/>
+    -->
+
+
+    <!-- A "Connector" represents an endpoint by which requests are received
+         and responses are returned. Documentation at :
+         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
+         Java AJP  Connector: /docs/config/ajp.html
+         APR (HTTP/AJP) Connector: /docs/apr.html
+         Define a non-SSL HTTP/1.1 Connector on port 8080
+    -->
+    <Connector port="8980" protocol="HTTP/1.1"
+               connectionTimeout="20000"
+               redirectPort="9443" />
+    <!-- A "Connector" using the shared thread pool-->
+    <!--
+    <Connector executor="tomcatThreadPool"
+               port="8080" protocol="HTTP/1.1"
+               connectionTimeout="20000"
+               redirectPort="8443" />
+    -->
+    <!-- Define a SSL HTTP/1.1 Connector on port 8443
+         This connector uses the BIO implementation that requires the JSSE
+         style configuration. When using the APR/native implementation, the
+         OpenSSL style configuration is required as described in the APR/native
+         documentation -->
+    <Connector port="9443" protocol="HTTP/1.1" SSLEnabled="true"
+               maxThreads="150" scheme="https" secure="true"
+               clientAuth="want" sslProtocol="TLS" 
+               truststoreFile="truststore.jks" truststorePass="password"
+         keystoreFile="conf/keystore.jks" keystorePass="password"
+         />
+
+    <!-- Define an AJP 1.3 Connector on port 8009 -->
+    <Connector port="9009" protocol="AJP/1.3" redirectPort="9443" />
+
+
+    <!-- An Engine represents the entry point (within Catalina) that processes
+         every request.  The Engine implementation for Tomcat stand alone
+         analyzes the HTTP headers included with the request, and passes them
+         on to the appropriate Host (virtual host).
+         Documentation at /docs/config/engine.html -->
+
+    <!-- You should set jvmRoute to support load-balancing via AJP ie :
+    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
+    -->
+    <Engine name="Catalina" defaultHost="localhost">
+
+      <!--For clustering, please take a look at documentation at:
+          /docs/cluster-howto.html  (simple how to)
+          /docs/config/cluster.html (reference documentation) -->
+      <!--
+      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
+      -->
+
+      <!-- Use the LockOutRealm to prevent attempts to guess user passwords
+           via a brute-force attack -->
+      <Realm className="org.apache.catalina.realm.LockOutRealm">
+        <!-- This Realm uses the UserDatabase configured in the global JNDI
+             resources under the key "UserDatabase".  Any edits
+             that are performed against this UserDatabase are immediately
+             available for use by the Realm.  -->
+        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
+               resourceName="UserDatabase"/>
+      </Realm>
+
+      <Host name="localhost"  appBase="webapps"
+            unpackWARs="true" autoDeploy="true">
+
+        <!-- SingleSignOn valve, share authentication between web applications
+             Documentation at: /docs/config/valve.html -->
+        <!--
+        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
+        -->
+
+        <!-- Access log processes all example.
+             Documentation at: /docs/config/valve.html
+             Note: The pattern used is equivalent to using pattern="common" -->
+        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
+               prefix="localhost_access_log." suffix=".txt"
+               pattern="%h %l %u %t &quot;%r&quot; %s %b" />
+
+      </Host>
+    </Engine>
+  </Service>
+</Server>

http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui-test/src/main/java/org/apache/juddi/gui/test/Dummy.java
----------------------------------------------------------------------
diff --git a/juddi-gui-test/src/main/java/org/apache/juddi/gui/test/Dummy.java b/juddi-gui-test/src/main/java/org/apache/juddi/gui/test/Dummy.java
new file mode 100644
index 0000000..89b598e
--- /dev/null
+++ b/juddi-gui-test/src/main/java/org/apache/juddi/gui/test/Dummy.java
@@ -0,0 +1,20 @@
+package org.apache.juddi.gui.test; 
+
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+public class Dummy {
+
+}

http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui-test/src/main/resources/META-INF/uddi.xml
----------------------------------------------------------------------
diff --git a/juddi-gui-test/src/main/resources/META-INF/uddi.xml b/juddi-gui-test/src/main/resources/META-INF/uddi.xml
new file mode 100644
index 0000000..ec9e2a7
--- /dev/null
+++ b/juddi-gui-test/src/main/resources/META-INF/uddi.xml
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!--
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+ -->
+<uddi xmlns="urn:juddi-apache-org:v3_client" xsi:schemaLocation="classpath:/xsd/uddi-client.xsd">
+        <reloadDelay>5000</reloadDelay>
+        <client name="test-client">
+                <nodes>
+                        <!-- this is only used when uddiv3.enable=true in tck.properties
-->
+                        <node>
+                                <name>default</name> 
+                        </node>
+                        <node isHomeJUDDI="true">
+                                <!-- required 'default' node -->
+                                <name>uddiv3</name> 
+                                <description>Main jUDDI node</description>
+                                <properties>
+                                        <property name="serverName" value="localhost"
/>
+                                        <property name="serverPort" value="8880" />
+                                        <property name="serverSSLPort" value="8443" />
+                                        <!-- for UDDI nodes that use HTTP u/p, using the
following 
+                                        <property name="basicAuthUsername" value="root"
/>
+                                        <property name="basicAuthPassword" value="password"
/>
+                                        <property name="basicAuthPasswordIsEncrypted"
value="false" />
+                                        <property name="basicAuthPasswordCryptoProvider"
value="org.apache.juddi.v3.client.crypto.AES128Cryptor (an example)" />-->
+                                </properties>
+                                <!-- JAX-WS Transport -->
+                                <proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport>
+                                <custodyTransferUrl>http://${serverName}:${serverPort}/juddiv3/services/custody-transfer</custodyTransferUrl>
+                                <inquiryUrl>http://${serverName}:${serverPort}/juddiv3/services/inquiry</inquiryUrl>
+                                <inquiryRESTUrl>http://${serverName}:${serverPort}/juddiv3/services/inquiryRest/XML/getDetail</inquiryRESTUrl>
+                                <publishUrl>http://${serverName}:${serverPort}/juddiv3/services/publish</publishUrl>
+                                <securityUrl>http://${serverName}:${serverPort}/juddiv3/services/security</securityUrl>
+                                <subscriptionUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription</subscriptionUrl>
+                                <subscriptionListenerUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription-listener</subscriptionListenerUrl>
+                                <juddiApiUrl>http://${serverName}:${serverPort}/juddiv3/services/juddi-api</juddiApiUrl>
+                                <replicationUrl>https://${serverName}:${serverSSLPort}/juddiv3replication/services/replication</replicationUrl>
+                                <!-- this is just for juddi gui tests -->
+                                <juddigui>http://${serverName}:${serverPort}/juddi-gui/</juddigui>
+                        </node>
+                        
+                        <node isHomeJUDDI="false">
+                                <!-- required 'default' node -->
+                                <name>uddiv3-2</name> 
+                                <description>jUDDI Node2</description>
+                                <properties>
+                                        <property name="serverName" value="localhost"
/>
+                                        <property name="serverPort" value="8980" />
+                                        <property name="serverSSLPort" value="9443" />
+                                        <!-- for UDDI nodes that use HTTP u/p, using the
following 
+                                        <property name="basicAuthUsername" value="root"
/>
+                                        <property name="basicAuthPassword" value="password"
/>
+                                        <property name="basicAuthPasswordIsEncrypted"
value="false" />
+                                        <property name="basicAuthPasswordCryptoProvider"
value="org.apache.juddi.v3.client.crypto.AES128Cryptor (an example)" />-->
+                                </properties>
+                                <!-- JAX-WS Transport -->
+                                <proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport>
+                                <custodyTransferUrl>http://${serverName}:${serverPort}/juddiv3/services/custody-transfer</custodyTransferUrl>
+                                <inquiryUrl>http://${serverName}:${serverPort}/juddiv3/services/inquiry</inquiryUrl>
+                                <inquiryRESTUrl>http://${serverName}:${serverPort}/juddiv3/services/inquiryRest/XML/getDetail</inquiryRESTUrl>
+                                <publishUrl>http://${serverName}:${serverPort}/juddiv3/services/publish</publishUrl>
+                                <securityUrl>http://${serverName}:${serverPort}/juddiv3/services/security</securityUrl>
+                                <subscriptionUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription</subscriptionUrl>
+                                <subscriptionListenerUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription-listener</subscriptionListenerUrl>
+                                <juddiApiUrl>http://${serverName}:${serverPort}/juddiv3/services/juddi-api</juddiApiUrl>
+                                <replicationUrl>https://${serverName}:${serverSSLPort}/juddiv3replication/services/replication</replicationUrl>
+                                <!-- this is just for juddi gui tests -->
+                                <juddigui>http://${serverName}:${serverPort}/juddi-gui/</juddigui>
+                        </node>
+                        
+                        
+                        <!-- this is only used when uddiv2.enable=true in tck.properties
-->
+                        <node>
+                                <name>uddiv2</name>
+                                <description>jUDDI node in other Department</description>
+								 <properties>
+                                        <property name="serverName" value="localhost"
/>
+                                        <property name="serverPort" value="8880" />
+                                </properties>
+                                <proxyTransport>org.apache.juddi.v3.client.transport.JAXWSv2TranslationTransport</proxyTransport>
+                                <inquiryUrl>http://${serverName}:${serverPort}/juddiv3/services/inquiryv2</inquiryUrl>
+                                <publishUrl>http://${serverName}:${serverPort}/juddiv3/services/publishv2</publishUrl>
+                        </node>
+                </nodes>
+		
+                <clerks registerOnStartup="false">
+                        <!-- not used -->
+                        <clerk name="default" node="default" publisher="root" password="root"
 isPasswordEncrypted="false" cryptoProvider=""/>
+                        
+                        <!-- this is used for the subscription callback tests -->
+                        <clerk name="uddiv3" node="uddiv3" publisher="root" password="root"
 isPasswordEncrypted="false" cryptoProvider=""/>
+                </clerks>
+                <signature>
+                        <!-- signing stuff -->
+                        <signingKeyStorePath>keystore.jks</signingKeyStorePath>
+                        <signingKeyStoreType>JKS</signingKeyStoreType>
+                        <signingKeyStoreFilePassword 
+                                isPasswordEncrypted="false" 
+                                cryptoProvider="org.apache.juddi.v3.client.crypto.AES128Cryptor">password</signingKeyStoreFilePassword>
+                        <signingKeyPassword
+                                isPasswordEncrypted="false" 
+                                cryptoProvider="org.apache.juddi.v3.client.crypto.AES128Cryptor">password</signingKeyPassword>
+                        <signingKeyAlias>my special key</signingKeyAlias>
+                        
+                        <canonicalizationMethod>http://www.w3.org/2001/10/xml-exc-c14n#</canonicalizationMethod>
+                        <signatureMethod>http://www.w3.org/2000/09/xmldsig#rsa-sha1</signatureMethod>
+                        <XML_DIGSIG_NS>http://www.w3.org/2000/09/xmldsig#</XML_DIGSIG_NS>
+
+                        <!-- validation stuff 
+                        Used whenever someone views an entity that is signed and validation
is required	-->
+                        <!-- if this doesn't exist or is incorrect, the client will atempt
to load the standard jdk trust store-->
+                        <trustStorePath>truststore.jks</trustStorePath>
+                        <trustStoreType>JKS</trustStoreType>
+                        <trustStorePassword
+                                isPasswordEncrypted="false" 
+                                cryptoProvider="org.apache.juddi.v3.client.crypto.AES128Cryptor">password</trustStorePassword>
+			
+                        <checkTimestamps>true</checkTimestamps>
+                        <checkTrust>true</checkTrust>
+                        <checkRevocationCRL>true</checkRevocationCRL>
+                        <keyInfoInclusionSubjectDN>false</keyInfoInclusionSubjectDN>
+                        <keyInfoInclusionSerial>false</keyInfoInclusionSerial>
+                        <keyInfoInclusionBase64PublicKey>true</keyInfoInclusionBase64PublicKey>
+                        <digestMethod>http://www.w3.org/2000/09/xmldsig#sha1</digestMethod>
+                </signature>
+                <subscriptionCallbacks>
+                        <keyDomain>uddi:somebusiness</keyDomain>
+                        <listenUrl></listenUrl> <!-- leave this blank, it
will be generated automatically -->
+                        <autoRegisterBindingTemplate>true</autoRegisterBindingTemplate>
+                        <autoRegisterBusinessServiceKey>uddi:somebusiness:someservicekey</autoRegisterBusinessServiceKey>
+                        <signatureBehavior>DoNothing</signatureBehavior>
+                        <!--valid values are AbortIfSigned,Sign,DoNothing,SignOnlyIfParentIsntSigned,
default is DoNothing-->
+                </subscriptionCallbacks>
+                <XtoWsdl>
+                        <IgnoreSSLErrors>false</IgnoreSSLErrors>
+                </XtoWsdl>
+        </client>
+</uddi>

http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui-test/src/test/java/org/apache/juddi/gui/test/BaseTest.java
----------------------------------------------------------------------
diff --git a/juddi-gui-test/src/test/java/org/apache/juddi/gui/test/BaseTest.java b/juddi-gui-test/src/test/java/org/apache/juddi/gui/test/BaseTest.java
new file mode 100644
index 0000000..82ec6d6
--- /dev/null
+++ b/juddi-gui-test/src/test/java/org/apache/juddi/gui/test/BaseTest.java
@@ -0,0 +1,88 @@
+/*
+ * Copyright 2015 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.juddi.gui.test;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.List;
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Assert;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.openqa.selenium.WebDriver;
+import org.openqa.selenium.chrome.ChromeDriver;
+import org.openqa.selenium.chrome.ChromeOptions;
+import org.openqa.selenium.firefox.FirefoxDriver;
+import org.openqa.selenium.htmlunit.HtmlUnitDriver;
+import org.openqa.selenium.ie.InternetExplorerDriver;
+import org.openqa.selenium.remote.DesiredCapabilities;
+import org.openqa.selenium.safari.SafariDriver;
+
+/**
+ *
+ * @author alex
+ */
+public abstract class BaseTest {
+     public static String BASE_URL="http://localhost:8880/juddi-gui/";
+     public static List<WebDriver> drivers;
+
+     @BeforeClass
+     public static void setUpClass() {
+          drivers = new ArrayList<WebDriver>();
+          try {
+               DesiredCapabilities capabilities = DesiredCapabilities.chrome();
+               capabilities.setCapability("chrome.switches", Arrays.asList("--incognito"));
+               drivers.add(new ChromeDriver(capabilities));
+          } catch (Throwable ex) {
+               ex.printStackTrace();
+          }
+          try {
+               drivers.add(new FirefoxDriver());
+          } catch (Throwable ex) {
+               ex.printStackTrace();
+          }
+           try {
+               drivers.add(new SafariDriver());
+          } catch (Throwable ex) {
+               ex.printStackTrace();
+          }
+            try {
+               drivers.add(new InternetExplorerDriver());
+          } catch (Throwable ex) {
+               ex.printStackTrace();
+          }
+         
+          Assert.assertFalse(drivers.isEmpty());
+     }
+
+     @AfterClass
+     public static void tearDownClass() {
+          for (int i=0; i < drivers.size(); i++){
+              drivers.get(i).close();
+          }
+          drivers.clear();
+     }
+
+     @Before
+     public void setUp() {
+     }
+
+     @After
+     public void tearDown() {
+     }
+
+}

http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui-test/src/test/java/org/apache/juddi/gui/test/login/LoginIntegrationTest.java
----------------------------------------------------------------------
diff --git a/juddi-gui-test/src/test/java/org/apache/juddi/gui/test/login/LoginIntegrationTest.java
b/juddi-gui-test/src/test/java/org/apache/juddi/gui/test/login/LoginIntegrationTest.java
new file mode 100644
index 0000000..96fa464
--- /dev/null
+++ b/juddi-gui-test/src/test/java/org/apache/juddi/gui/test/login/LoginIntegrationTest.java
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2015 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.juddi.gui.test.login;
+
+import org.apache.juddi.gui.test.BaseTest;
+import org.junit.Assert;
+import org.junit.Assume;
+import org.junit.Test;
+import org.openqa.selenium.By;
+
+/**
+ *
+ * @author alex
+ */
+public class LoginIntegrationTest extends BaseTest {
+
+     @Test
+     public void testSplashAndLoginLogout() throws Exception {
+          System.out.println("testSplashAndLoginLogout");
+          Assume.assumeFalse(drivers.isEmpty());
+          for (int i = 0; i < drivers.size(); i++) {
+               drivers.get(i).navigate().to(BASE_URL);
+               drivers.get(i).findElement(By.id("login_page_go")).click();
+               //todo put these in a props file
+               Thread.sleep(4000);
+               drivers.get(i).findElement(By.id("username")).sendKeys("juddi");
+               drivers.get(i).findElement(By.id("password")).sendKeys("juddi");
+               drivers.get(i).findElement(By.id("loginbutton")).click();
+               Thread.sleep(4000);
+               Assert.assertTrue(drivers.get(i).findElement(By.id("logout_button")).isDisplayed());
+               drivers.get(i).findElement(By.id("logout_button")).click();
+               Thread.sleep(2000);
+               try {
+                    drivers.get(i).findElement(By.id("logout_button"));
+                    Assert.fail("logout failed");
+               } catch (Exception ex) {
+               }
+
+          }
+     }
+}

http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui-test/src/test/resources/log4j.xml
----------------------------------------------------------------------
diff --git a/juddi-gui-test/src/test/resources/log4j.xml b/juddi-gui-test/src/test/resources/log4j.xml
new file mode 100644
index 0000000..db31098
--- /dev/null
+++ b/juddi-gui-test/src/test/resources/log4j.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+    
+    <!-- ================================= -->
+    <!-- Preserve messages in a local file -->
+    <!-- ================================= -->
+    
+    <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+      <param name="Target" value="System.out"/>
+      <param name="Threshold" value="DEBUG"/>
+
+      <layout class="org.apache.log4j.PatternLayout">
+         <!-- The default pattern: Date Priority [Category] Message\n -->
+         <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
+      </layout>
+   </appender>
+   
+    <logger name="org">
+        <level value="INFO"/>
+    </logger>
+    
+    <logger name="org.hibernate">
+        <level value="WARN"/>
+    </logger>
+
+    <logger name="com">
+        <level value="INFO"/>
+    </logger>
+    
+    <root>        
+          <appender-ref ref="CONSOLE"/>   
+    </root>
+    
+   
+</log4j:configuration>

http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui-test/uddiNode.xml
----------------------------------------------------------------------
diff --git a/juddi-gui-test/uddiNode.xml b/juddi-gui-test/uddiNode.xml
new file mode 100644
index 0000000..8f3eef6
--- /dev/null
+++ b/juddi-gui-test/uddiNode.xml
@@ -0,0 +1,119 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<!-- 
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ -->
+<!-- 
+This config is for the juddi-gui.
+
+It currently does not use the ValueSet, jUDDI, Replication, or REST APIs
+-->
+<uddi>
+    <reloadDelay>5000</reloadDelay>
+    <client name="juddigui">
+        <nodes>
+            <node>
+                <!-- required 'default' node -->
+                <name>default</name> 
+                <description>Main UDDI Node</description>
+                <!-- JAX-WS Transport -->
+                <proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport>
+                <custodyTransferUrl>http://localhost:8880/juddiv3/services/custody-transfer</custodyTransferUrl>
+                <inquiryUrl>http://localhost:8880/juddiv3/services/inquiry</inquiryUrl>
+                <publishUrl>http://localhost:8880/juddiv3/services/publish</publishUrl>
+                <securityUrl>http://localhost:8880/juddiv3/services/security</securityUrl>
+                <subscriptionUrl>http://localhost:8880/juddiv3/services/subscription</subscriptionUrl>
+            </node>
+            
+        </nodes>
+		<signature>
+			<!-- signing stuff, is NOT used by juddi-gui -->
+			<signingKeyStorePath>(not used)</signingKeyStorePath>
+			<signingKeyStoreType>(not used)</signingKeyStoreType>
+			<signingKeyStoreFilePassword 
+				isPasswordEncrypted="false" 
+				cryptoProvider="org.apache.juddi.v3.client.crypto.AES128Cryptor">(not used)</signingKeyStoreFilePassword>
+			<signingKeyPassword
+				isPasswordEncrypted="false" 
+				cryptoProvider="org.apache.juddi.v3.client.crypto.AES128Cryptor">(not used)</signingKeyPassword>
+			<signingKeyAlias>(not used)</signingKeyAlias>
+                        
+			<canonicalizationMethod>http://www.w3.org/2001/10/xml-exc-c14n#</canonicalizationMethod>
+			<signatureMethod>http://www.w3.org/2000/09/xmldsig#rsa-sha1</signatureMethod>
+			<XML_DIGSIG_NS>http://www.w3.org/2000/09/xmldsig#</XML_DIGSIG_NS>
+			
+                        <!-- validation stuff 
+                        This part IS used by juddi-gui whenever someone views an entity that
is signed
+                        -->
+			<!-- if this doesn't exist or is incorrect, the client will attempt to load  from system
properties, then 
+                        from the standard jdk trust store
+                        generally, if defined, the working path is typically the bin folder
of the container
+                        -->
+			<trustStorePath></trustStorePath>
+			<trustStoreType>JKS</trustStoreType>
+			<trustStorePassword
+				isPasswordEncrypted="false" 
+				cryptoProvider="org.apache.juddi.v3.client.crypto.AES128Cryptor"></trustStorePassword>
+			
+			<checkTimestamps>true</checkTimestamps>
+			<checkTrust>true</checkTrust>
+			<checkRevocationCRL>true</checkRevocationCRL>
+			<keyInfoInclusionSubjectDN>false</keyInfoInclusionSubjectDN>
+			<keyInfoInclusionSerial>false</keyInfoInclusionSerial>
+			<keyInfoInclusionBase64PublicKey>true</keyInfoInclusionBase64PublicKey>
+			<digestMethod>http://www.w3.org/2000/09/xmldsig#sha1</digestMethod>
+		</signature>
+                <!-- not used by juddi-gui-->
+		<subscriptionCallbacks>
+			<keyDomain>(not used)</keyDomain>
+			<listenUrl>(not used)</listenUrl>
+			<autoRegisterBindingTemplate>false</autoRegisterBindingTemplate>
+			<autoRegisterBusinessServiceKey>(not used)</autoRegisterBusinessServiceKey>
+			<signatureBehavior>DoNothing</signatureBehavior>
+			<!--valid values are AbortIfSigned,Sign,DoNothing,SignOnlyIfParentIsntSigned, default
is DoNothing-->
+		</subscriptionCallbacks>
+                <!-- juddi-gui, used in the Create, Import from Wadl/Wsdl -->
+		<XtoWsdl>
+			<IgnoreSSLErrors>false</IgnoreSSLErrors>
+		</XtoWsdl>
+                
+    </client>
+    
+    <!-- hi there!
+    this section is required by juddi-gui and is an extension of what the normal juddi-client
does
+    it's not in the standard config schema.
+    
+    -->
+    <config>
+        
+        <props>
+            <!--#required. if this uddi client is connected to uddi services that use
the auth token, then set to UDDI_AUTH
+            #if not, set authtype to HTTP-->
+            <authtype>UDDI_AUTH</authtype>
+            <automaticLogouts>
+                <!-- #enables automatic logout timer, defaults to false if not defined-->
+                <enabled>true</enabled>
+                <!--#defines the duration of time to wait for the automatic logout, defaults
to 15min if not defined-->
+                <duration>900000</duration>
+            </automaticLogouts>
+            <!--#node, this is the node defined in uddi.xml that the jUDDI-GUI will use
for connections-->
+            <node>default</node>
+            <!-- controls remote access to the settings/configuration page -->
+            <configLocalHostOnly>true</configLocalHostOnly>
+        </props>
+    </config>
+</uddi>

http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui/src/main/webapp/index.jsp
----------------------------------------------------------------------
diff --git a/juddi-gui/src/main/webapp/index.jsp b/juddi-gui/src/main/webapp/index.jsp
index fb727f0..39fe581 100644
--- a/juddi-gui/src/main/webapp/index.jsp
+++ b/juddi-gui/src/main/webapp/index.jsp
@@ -99,7 +99,7 @@
                     </select>
                     <br>
                     <input type="checkbox" name="setcookie" checked> Remember my decision<br>
-                    <button type="submit" value="Go" class="btn btn-primary">Go</button>
+                    <button type="submit" value="Go" class="btn btn-primary" id="login_page_go">Go</button>
                 </form>
                 <b>We welcome help internationalizing jUDDI!</b>
                 <noscript>Your browser does not support JavaScript! Functionality will
be so severely reduced, that you might as well give up, sorry!</noscript>

http://git-wip-us.apache.org/repos/asf/juddi/blob/7c8594ca/juddi-gui/src/main/webapp/login.jsp
----------------------------------------------------------------------
diff --git a/juddi-gui/src/main/webapp/login.jsp b/juddi-gui/src/main/webapp/login.jsp
index d1b7745..23cddbe 100644
--- a/juddi-gui/src/main/webapp/login.jsp
+++ b/juddi-gui/src/main/webapp/login.jsp
@@ -35,7 +35,7 @@
     <script type="text/javascript">
         loggedin = true;
     </script>
-    <a class="btn" title="<%=ResourceLoader.GetResource(session, "navbar.login.logout")%>"
href="javascript:logout();">
+    <a class="btn" title="<%=ResourceLoader.GetResource(session, "navbar.login.logout")%>"
href="javascript:logout();" id="logout_button">
         <%
                 if (!request.isSecure() ||  !UddiHub.getInstance(application, session).isSecure())
{
             %>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@juddi.apache.org
For additional commands, e-mail: commits-help@juddi.apache.org


Mime
View raw message