karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject [02/11] karaf git commit: KARAF-3882: more of test bones.
Date Sat, 22 Aug 2015 07:05:21 GMT
KARAF-3882: more of test bones.


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

Branch: refs/heads/master
Commit: a717ca6a3cfd79bf078cc8944f30d4718de39df4
Parents: 434a175
Author: Benson Margulies <benson@basistech.com>
Authored: Sun Jul 26 08:08:03 2015 -0400
Committer: Benson Margulies <benson@basistech.com>
Committed: Sun Jul 26 08:08:03 2015 -0400

----------------------------------------------------------------------
 .../java/org/apache/karaf/itests/SshKeyFormatTest.java  | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/a717ca6a/itests/src/test/java/org/apache/karaf/itests/SshKeyFormatTest.java
----------------------------------------------------------------------
diff --git a/itests/src/test/java/org/apache/karaf/itests/SshKeyFormatTest.java b/itests/src/test/java/org/apache/karaf/itests/SshKeyFormatTest.java
index 8b8cfc3..08c009a 100644
--- a/itests/src/test/java/org/apache/karaf/itests/SshKeyFormatTest.java
+++ b/itests/src/test/java/org/apache/karaf/itests/SshKeyFormatTest.java
@@ -23,6 +23,10 @@ package org.apache.karaf.itests;
 import org.ops4j.pax.exam.Configuration;
 import org.ops4j.pax.exam.Option;
 
+import static org.ops4j.pax.exam.CoreOptions.composite;
+import static org.ops4j.pax.exam.CoreOptions.options;
+import static org.ops4j.pax.exam.karaf.options.KarafDistributionOption.editConfigurationFilePut;
+
 
 /**
  * Test use of PEM keys.
@@ -31,8 +35,12 @@ public class SshKeyFormatTest extends SshCommandTestBase {
 
     @Configuration
     public Option[] config() {
-        
-
+        return options(composite(super.config()),
+                editConfigurationFilePut("org.apache.karaf.shell.cfg", "hostKey", "/etc/test.pem"),
+                editConfigurationFilePut("org.apache.karaf.shell.cfg", "hostKeyFormat", "PEM")
+                );
     }
 
+
+
 }


Mime
View raw message