You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by xi...@apache.org on 2010/08/26 04:40:23 UTC

svn commit: r989431 - in /geronimo/server/trunk/testsuite/security-testsuite: ./ test-security-basic-authentication/ test-security-basic-authentication/src/ test-security-basic-authentication/src/main/ test-security-basic-authentication/src/main/webapp...

Author: xiaming
Date: Thu Aug 26 02:40:22 2010
New Revision: 989431

URL: http://svn.apache.org/viewvc?rev=989431&view=rev
Log:
GERONIMO-5552 supply a test for basic authentication support verification provided by janel Zhang

Added:
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/pom.xml   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/WEB-INF/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/WEB-INF/geronimo-web.xml   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/WEB-INF/web.xml   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/admin/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/admin/admin.jsp   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/java/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/java/org/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/java/org/apache/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/java/org/apache/geronimo/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/java/org/apache/geronimo/testsuite/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/java/org/apache/geronimo/testsuite/security/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/java/org/apache/geronimo/testsuite/security/basic/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/java/org/apache/geronimo/testsuite/security/basic/BasicAuthenticationTest.java   (with props)
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/resources/
    geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/resources/testng.xml   (with props)
Modified:
    geronimo/server/trunk/testsuite/security-testsuite/pom.xml

Modified: geronimo/server/trunk/testsuite/security-testsuite/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/pom.xml?rev=989431&r1=989430&r2=989431&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/pom.xml (original)
+++ geronimo/server/trunk/testsuite/security-testsuite/pom.xml Thu Aug 26 02:40:22 2010
@@ -67,6 +67,7 @@
     <modules>
         <module>test-security</module>
         <module>test-security-annotation-ejb</module>
+        <module>test-security-basic-authentication</module>
     </modules>
 
 </project>

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/pom.xml?rev=989431&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/pom.xml (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/pom.xml Thu Aug 26 02:40:22 2010
@@ -0,0 +1,86 @@
+<?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.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <artifactId>security-testsuite</artifactId>
+    <groupId>org.apache.geronimo.testsuite</groupId>
+    <version>3.0-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>test-security-basic-authentication</artifactId>
+  <name>Geronimo TestSuite :: Security Testsuite :: Test Basic Authentication</name>
+  <packaging>war</packaging>
+  
+  <profiles>
+        <profile>
+            <id>it</id>
+            <activation>
+                <property>
+                    <name>it</name>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.geronimo.buildsupport</groupId>
+                        <artifactId>geronimo-maven-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <id>deploy-wars</id>
+                                <phase>pre-integration-test</phase>
+                                <goals>
+                                    <goal>deploy-module</goal>
+                                </goals>
+                                <configuration>
+                                    <moduleArchive>${project.build.directory}/${project.artifactId}-${project.version}.war</moduleArchive>
+                                </configuration>
+                            </execution>
+                            <execution>
+                                <id>undeploy-war-as-moduleId</id>
+                                <phase>post-integration-test</phase>
+                                <goals>
+                                    <goal>undeploy-module</goal>
+                                </goals>
+                                <configuration>
+                                    <moduleId>${project.groupId}/${project.artifactId}/${project.version}/war</moduleId>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                   <plugin>
+		        <groupId>org.apache.maven.plugins</groupId>
+		        <artifactId>maven-failsafe-plugin</artifactId>
+		        <configuration>
+		           <suiteXmlFiles>
+			        <suiteXmlFile>${project.build.testOutputDirectory}/testng.xml</suiteXmlFile>
+		          </suiteXmlFiles>
+                        <systemPropertyVariables>
+                             <appContext>${project.artifactId}</appContext>
+                        </systemPropertyVariables>
+		        </configuration>
+		   </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+</project>

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/WEB-INF/geronimo-web.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/WEB-INF/geronimo-web.xml?rev=989431&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/WEB-INF/geronimo-web.xml (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/WEB-INF/geronimo-web.xml Thu Aug 26 02:40:22 2010
@@ -0,0 +1,55 @@
+<?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.
+-->
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-2.0.1" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
+   <dep:environment>
+    <dep:moduleId>
+      <dep:groupId>${pom.groupId}</dep:groupId>
+      <dep:artifactId>${pom.artifactId}</dep:artifactId>
+      <dep:version>${version}</dep:version>
+      <dep:type>war</dep:type>
+    </dep:moduleId>
+  </dep:environment>
+    <context-root>/${pom.artifactId}</context-root>
+    <dep:gbean name="demo-properties-realm" class="org.apache.geronimo.security.realm.GenericSecurityRealm" xsi:type="dep:gbeanType" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+        <dep:attribute name="realmName">demo-properties-realm</dep:attribute>
+        <dep:reference name="ServerInfo">
+            <name>ServerInfo</name>
+        </dep:reference>
+        <dep:xml-reference name="LoginModuleConfiguration">
+            <log:login-config xmlns:log="http://geronimo.apache.org/xml/ns/loginconfig-1.2">
+                <log:login-module control-flag="REQUIRED" wrap-principals="false">
+                    <log:login-domain-name>demo-properties-realm</log:login-domain-name>
+                    <log:login-module-class>org.apache.geronimo.security.realm.providers.PropertiesFileLoginModule</log:login-module-class>
+                    <log:option name="usersURI">var/security/demo_users.properties</log:option>
+                    <log:option name="groupsURI">var/security/demo_groups.properties</log:option>
+                </log:login-module>
+            </log:login-config>
+        </dep:xml-reference>
+    </dep:gbean>
+     <security-realm-name>demo-properties-realm</security-realm-name>
+     <app:security xsi:type="sec:securityType" xmlns:sec="http://geronimo.apache.org/xml/ns/security-2.0" xmlns:app="http://geronimo.apache.org/xml/ns/j2ee/application-2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+        <sec:role-mappings>
+            <sec:role role-name="admin">
+                <sec:principal name="george"  class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"/>
+            </sec:role>
+            <sec:role role-name="user">
+                 <sec:principal name="metro" class="org.apache.geronimo.security.realm.providers.GeronimoUserPrincipal"/>
+            </sec:role>
+        </sec:role-mappings>
+    </app:security>
+</web-app>
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/WEB-INF/web.xml?rev=989431&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/WEB-INF/web.xml (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/WEB-INF/web.xml Thu Aug 26 02:40:22 2010
@@ -0,0 +1,37 @@
+<?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.
+-->
+<web-app id="SimpleSecurityWebApp" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+    <login-config>
+        <auth-method>BASIC</auth-method>
+        <realm-name>demo-properties-realm</realm-name>
+    </login-config>
+     <security-role><role-name>admin</role-name></security-role>
+    <security-constraint>
+        <web-resource-collection>
+            <web-resource-name>admin</web-resource-name>
+            <url-pattern>/admin/*</url-pattern>
+            <http-method>GET</http-method>
+            <http-method>POST</http-method>
+        </web-resource-collection>
+        <auth-constraint>
+          <role-name>admin</role-name>
+        </auth-constraint>
+    </security-constraint>
+</web-app>

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/admin/admin.jsp
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/admin/admin.jsp?rev=989431&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/admin/admin.jsp (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/admin/admin.jsp Thu Aug 26 02:40:22 2010
@@ -0,0 +1,31 @@
+<%--
+  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.
+--%>
+<%@ page language="java" contentType="text/html; charset=UTF-8"
+    pageEncoding="UTF-8"%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Insert title here</title>
+</head>
+<body>
+<br>Welcome <b><%=request.getUserPrincipal().getName() %></b> !!
+<br>
+<br>You are <%=request.isUserInRole("admin") ? 
+	"in" : "not in"%> 'admin' role.
+</body>
+</html>
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/admin/admin.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/admin/admin.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/main/webapp/admin/admin.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/java/org/apache/geronimo/testsuite/security/basic/BasicAuthenticationTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/java/org/apache/geronimo/testsuite/security/basic/BasicAuthenticationTest.java?rev=989431&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/java/org/apache/geronimo/testsuite/security/basic/BasicAuthenticationTest.java (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/java/org/apache/geronimo/testsuite/security/basic/BasicAuthenticationTest.java Thu Aug 26 02:40:22 2010
@@ -0,0 +1,76 @@
+/**
+ *  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.
+ */
+package org.apache.geronimo.testsuite.security.basic;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.HttpURLConnection;
+import java.net.URL;
+
+import org.apache.geronimo.testsupport.TestSupport;
+import org.apache.xmlbeans.impl.util.Base64;
+import org.testng.annotations.Test;
+public class BasicAuthenticationTest extends TestSupport{
+
+    private String baseURL = "http://localhost:8080/";
+    private String getAuthorizationValue(String user, String password) {
+        String userPassword = user + ":" + password;
+        byte[] encodedUserPassword = Base64.encode(userPassword.getBytes());
+        String encodedUserPasswordStr = new String(encodedUserPassword, 0, encodedUserPassword.length);
+        return "Basic " + encodedUserPasswordStr;
+    }
+    private String getResponse(URL url,String username,String password) throws IOException{
+    	HttpURLConnection conn = (HttpURLConnection) url.openConnection();
+    	conn.setRequestProperty("Authorization",getAuthorizationValue(username,password));
+    	conn.setRequestMethod("GET");
+    	conn.setConnectTimeout(30 * 1000);
+        conn.setReadTimeout(30 * 1000);
+        conn.setUseCaches(false);
+        conn.connect();
+        InputStream is = null;
+	    try {
+	        is = conn.getInputStream();
+	    } catch (IOException e) {
+	        is = conn.getErrorStream();
+	    }
+       StringBuffer buf = new StringBuffer();
+       BufferedReader in = new BufferedReader(new InputStreamReader(is));
+       String inputLine;
+       while ((inputLine = in.readLine()) != null) {
+           buf.append(inputLine);
+      }
+      in.close();
+      return buf.toString();
+    }
+   @Test
+    public void testAdminLogin() throws Exception {
+	    String appContextStr = System.getProperty("appContext");
+    	URL url=new URL(baseURL+appContextStr+"/admin/admin.jsp");
+    	String response=getResponse(url,"george","bone");
+        assertTrue("admin", response.contains("You are in 'admin' role."));
+    }
+
+   @Test
+   public void testUserLogin() throws Exception {
+	   String appContextStr = System.getProperty("appContext");
+	   URL url=new URL(baseURL+appContextStr+"/admin/admin.jsp");
+       String response=getResponse(url,"metro","mouse");
+       assertTrue("user", response.contains("HTTP Status 403"));
+    }
+}
\ No newline at end of file

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/java/org/apache/geronimo/testsuite/security/basic/BasicAuthenticationTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/java/org/apache/geronimo/testsuite/security/basic/BasicAuthenticationTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/java/org/apache/geronimo/testsuite/security/basic/BasicAuthenticationTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/resources/testng.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/resources/testng.xml?rev=989431&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/resources/testng.xml (added)
+++ geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/resources/testng.xml Thu Aug 26 02:40:22 2010
@@ -0,0 +1,32 @@
+<?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.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
+
+<suite name="Suite1" verbose="1">
+    <test name="sample-testsuite-basic-authentication">
+        <packages>
+            <package name="org.apache.geronimo.testsuite.security.basic"/>
+        </packages>
+    </test>
+</suite>
+

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/resources/testng.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/resources/testng.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/security-testsuite/test-security-basic-authentication/src/test/resources/testng.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml