You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aurora.apache.org by js...@apache.org on 2016/07/03 22:01:17 UTC

aurora git commit: Ensure e2e key has its own authorized_keys line.

Repository: aurora
Updated Branches:
  refs/heads/master 25dd51862 -> 1103571df


Ensure e2e key has its own authorized_keys line.

Previously it was assumed the existing `~/.ssh/authorized_keys` file
ended in a newline which need not be the case.

Bugs closed: AURORA-1728

Reviewed at https://reviews.apache.org/r/49577/


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

Branch: refs/heads/master
Commit: 1103571dfcd29bc1b253d29c56a458e7d119d585
Parents: 25dd518
Author: John Sirois <js...@apache.org>
Authored: Sun Jul 3 16:01:12 2016 -0600
Committer: John Sirois <jo...@gmail.com>
Committed: Sun Jul 3 16:01:12 2016 -0600

----------------------------------------------------------------------
 src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/aurora/blob/1103571d/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
----------------------------------------------------------------------
diff --git a/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh b/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
index c3c9e64..47bd94d 100755
--- a/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
+++ b/src/test/sh/org/apache/aurora/e2e/test_end_to_end.sh
@@ -251,6 +251,9 @@ test_run() {
   local _ssh_key=~/.ssh/id_rsa
   rm -f ${_ssh_key}*
   ssh-keygen -t rsa -N "" -f $_ssh_key
+  # Ensure a new line for the new key to start on.
+  # See: https://issues.apache.org/jira/browse/AURORA-1728
+  echo >> ~/.ssh/authorized_keys
   cat ${_ssh_key}.pub >> ~/.ssh/authorized_keys
 
   # Using the sandbox contents as a proxy for functioning SSH.  List sandbox contents, we expect