directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [09/18] directory-kerby git commit: DIRKRB-576 - Add test for client-server based on Kerby GssApi. Thanks to Wei Zhou
Date Fri, 21 Jul 2017 15:03:26 GMT
DIRKRB-576 - Add test for client-server based on Kerby GssApi. Thanks to Wei Zhou


Project: http://git-wip-us.apache.org/repos/asf/directory-kerby/repo
Commit: http://git-wip-us.apache.org/repos/asf/directory-kerby/commit/19f27565
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/19f27565
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/19f27565

Branch: refs/heads/trunk
Commit: 19f27565d45e9c3a07ed7fe61f20d1c382eae8ad
Parents: 135a67f
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Fri Jul 21 14:57:18 2017 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Fri Jul 21 14:57:40 2017 +0100

----------------------------------------------------------------------
 kerby-kerb/integration-test/pom.xml             |  5 +++
 .../kerb/integration/test/KerbyGssAppTest.java  | 41 ++++++++++++++++++++
 2 files changed, 46 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/19f27565/kerby-kerb/integration-test/pom.xml
----------------------------------------------------------------------
diff --git a/kerby-kerb/integration-test/pom.xml b/kerby-kerb/integration-test/pom.xml
index 07b571a..6b17cb5 100644
--- a/kerby-kerb/integration-test/pom.xml
+++ b/kerby-kerb/integration-test/pom.xml
@@ -45,6 +45,11 @@
       <version>${project.version}</version>
     </dependency>
     <dependency>
+      <groupId>org.apache.kerby</groupId>
+      <artifactId>kerb-gssapi</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+    <dependency>
       <groupId>org.slf4j</groupId>
       <artifactId>slf4j-simple</artifactId>
       <version>${slf4j.version}</version>

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/19f27565/kerby-kerb/integration-test/src/test/java/org/apache/kerby/kerberos/kerb/integration/test/KerbyGssAppTest.java
----------------------------------------------------------------------
diff --git a/kerby-kerb/integration-test/src/test/java/org/apache/kerby/kerberos/kerb/integration/test/KerbyGssAppTest.java
b/kerby-kerb/integration-test/src/test/java/org/apache/kerby/kerberos/kerb/integration/test/KerbyGssAppTest.java
new file mode 100644
index 0000000..d9030df
--- /dev/null
+++ b/kerby-kerb/integration-test/src/test/java/org/apache/kerby/kerberos/kerb/integration/test/KerbyGssAppTest.java
@@ -0,0 +1,41 @@
+/**
+ *  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.kerby.kerberos.kerb.integration.test;
+
+import org.junit.Before;
+import org.junit.Test;
+
+import java.security.Provider;
+
+public class KerbyGssAppTest extends GssAppTest {
+
+    @Before
+    @Override
+    public void setUp() throws Exception {
+        Provider provider = new org.apache.kerby.kerberos.kerb.gssapi.Provider();
+        java.security.Security.insertProviderAt(provider, 1);
+        super.setUp();
+    }
+
+    @Test
+    public void test() throws Exception {
+        super.test();
+    }
+}


Mime
View raw message