directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From plusplusjia...@apache.org
Subject directory-kerby git commit: DIRKRB-576 Add test for client-server based on Kerby GssApi. Contributed by Wei.
Date Thu, 02 Jun 2016 06:07:58 GMT
Repository: directory-kerby
Updated Branches:
  refs/heads/gssapi ca86e8dad -> c025b694b


DIRKRB-576 Add test for client-server based on Kerby GssApi. Contributed by Wei.


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

Branch: refs/heads/gssapi
Commit: c025b694bf2546f54b68c01e8740d2be4eb50c8f
Parents: ca86e8d
Author: plusplusjiajia <jiajia.li@intel.com>
Authored: Thu Jun 2 14:13:18 2016 +0800
Committer: plusplusjiajia <jiajia.li@intel.com>
Committed: Thu Jun 2 14:13:18 2016 +0800

----------------------------------------------------------------------
 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/c025b694/kerby-kerb/integration-test/pom.xml
----------------------------------------------------------------------
diff --git a/kerby-kerb/integration-test/pom.xml b/kerby-kerb/integration-test/pom.xml
index 8ca6821..b438184 100644
--- a/kerby-kerb/integration-test/pom.xml
+++ b/kerby-kerb/integration-test/pom.xml
@@ -49,5 +49,10 @@
       <artifactId>token-provider</artifactId>
       <version>${project.version}</version>
     </dependency>
+    <dependency>
+      <groupId>org.apache.kerby</groupId>
+      <artifactId>kerb-gssapi</artifactId>
+      <version>${project.version}</version>
+    </dependency>
   </dependencies>
 </project>

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/c025b694/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