You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2018/02/17 05:53:59 UTC

[GitHub] geertjanw closed pull request #424: [NETBEANS-283] private_key in libs.git module should be renamed

geertjanw closed pull request #424: [NETBEANS-283] private_key in libs.git module should be renamed
URL: https://github.com/apache/incubator-netbeans/pull/424
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/libs.git/test/unit/data/testing_key b/libs.git/test/unit/data/testing_key
new file mode 100644
index 000000000..6991a21c1
--- /dev/null
+++ b/libs.git/test/unit/data/testing_key
@@ -0,0 +1,15 @@
+-----BEGIN DSA PRIVATE KEY-----
+Proc-Type: 4,ENCRYPTED
+DEK-Info: AES-128-CBC,A26DF5D5025B5E0454AD8E95E51AF36B
+
+D5f7fesyJdIB17l0jJkerqDdaDtvONlXNT2d7skRVHVogbDDo4rH9maJwcL8oFAj
+ULD5hlsR1OpjI1fz0oujNFQw9zV586q95/8LnhlDdhXkJnDBXkqCW3SEDjr4uRON
+x/eIUufutRmJ85Sd/q6DDPkYz+iMWUK8S9sGImgneonO/3meCciN6UJeTMTxJAed
+JOQMcKdVrAIrOE3FvMG+pk3napIIAIyCqe/dbBaf9+xxeIV1VccUc33guIDTwBUR
+OJim0oRpSBAyDAuJXLLhmUyl0omCcsoakJcFPUHto9IcPO3LvikYpw0BptwBV18Y
+yvNVDzNF+UW4jQ1LAG/YEspF32fYkyx97RVWbPRVoiRfVmbUQJUaK2nsUG2zvbl8
+VuGO+SemZXIZQ0xpijYZ79Mf0ymhX3TUQ89jyAOhJkest/jJNk/vNA+dlZ6pwEML
+AI77Uk0e/3TJTIP0oCYmNIQebocPOOG2WDxKy2MRBwo1HalK/8/c+tDxFXpy9H31
+v7UbaB/kc/Rk9EbY55xUxrPaiDJwlEhTqRZMWC7dalHLNT6tCFLU0lt0uZ55YW9+
+DoK5csvYjl2Gd08YaCju7A==
+-----END DSA PRIVATE KEY-----
diff --git a/libs.git/test/unit/src/org/netbeans/libs/git/jgit/ConnectionTest.java b/libs.git/test/unit/src/org/netbeans/libs/git/jgit/ConnectionTest.java
index 15bf14a49..0d62f1e2b 100644
--- a/libs.git/test/unit/src/org/netbeans/libs/git/jgit/ConnectionTest.java
+++ b/libs.git/test/unit/src/org/netbeans/libs/git/jgit/ConnectionTest.java
@@ -251,12 +251,12 @@ public String getUsername (String uri, String prompt) {
 
             @Override
             public String getIdentityFile (String uri, String prompt) {
-                return new File(getDataDir(), "private_key").getAbsolutePath();
+                return new File(getDataDir(), "testing_key").getAbsolutePath();
             }
             
             @Override
             public char[] getPassphrase (String uri, String prompt) {
-                assertTrue("Expected passphrase prompt for private_key, was " + prompt, prompt.contains(new File(getDataDir(), "private_key").getAbsolutePath()));
+                assertTrue("Expected passphrase prompt for testing_key, was " + prompt, prompt.contains(new File(getDataDir(), "testing_key").getAbsolutePath()));
                 return "qwerty".toCharArray();
             }
         });
@@ -286,12 +286,12 @@ public String getUsername (String uri, String prompt) {
 
                 @Override
                 public String getIdentityFile (String uri, String prompt) {
-                    return new File(getDataDir(), "private_key").getAbsolutePath();
+                    return new File(getDataDir(), "testing_key").getAbsolutePath();
                 }
 
                 @Override
                 public char[] getPassphrase (String uri, String prompt) {
-                    assertTrue("Expected passphrase prompt for private_key, was " + prompt, prompt.contains(new File(getDataDir(), "private_key").getAbsolutePath()));
+                    assertTrue("Expected passphrase prompt for testing_key, was " + prompt, prompt.contains(new File(getDataDir(), "testing_key").getAbsolutePath()));
                     return "qwerty".toCharArray();
                 }
             });
@@ -332,7 +332,7 @@ public String getUsername (String uri, String prompt) {
 
             @Override
             public String getIdentityFile (String uri, String prompt) {
-                return new File(getDataDir(), "private_key").getAbsolutePath();
+                return new File(getDataDir(), "testing_key").getAbsolutePath();
             }
             
             @Override


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists