You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by co...@apache.org on 2017/07/21 11:27:10 UTC
[23/50] [abbrv] directory-kerby git commit: DIRKRB-576 Add test for
client-server based on Kerby GssApi. Contributed by Wei.
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/8a7e2069
Tree: http://git-wip-us.apache.org/repos/asf/directory-kerby/tree/8a7e2069
Diff: http://git-wip-us.apache.org/repos/asf/directory-kerby/diff/8a7e2069
Branch: refs/heads/gssapi
Commit: 8a7e20692a1181e6c09d611bc16c658ae740af37
Parents: b5abed0
Author: plusplusjiajia <ji...@intel.com>
Authored: Thu Jun 2 14:13:18 2016 +0800
Committer: Colm O hEigeartaigh <co...@apache.org>
Committed: Fri Jul 21 12:25:51 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/8a7e2069/kerby-kerb/integration-test/pom.xml
----------------------------------------------------------------------
diff --git a/kerby-kerb/integration-test/pom.xml b/kerby-kerb/integration-test/pom.xml
index efc11aa..b091d30 100644
--- a/kerby-kerb/integration-test/pom.xml
+++ b/kerby-kerb/integration-test/pom.xml
@@ -55,5 +55,10 @@
<version>${slf4j.version}</version>
<scope>test</scope>
</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/8a7e2069/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();
+ }
+}