Repository: incubator-ariatosca
Updated Branches:
  refs/heads/ARIA-321-clearwater 7f1c76f06 -> a63817b1a (forced update)


Fix for SSH


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

Branch: refs/heads/ARIA-321-clearwater
Commit: a63817b1a4230652349d615ae18743976f1e3317
Parents: 431f40f
Author: Tal Liron <[email protected]>
Authored: Thu Sep 7 11:35:39 2017 -0500
Committer: Tal Liron <[email protected]>
Committed: Thu Sep 7 14:15:25 2017 -0500

----------------------------------------------------------------------
 .travis.yml                                     | 25 ++++++++++----------
 tests/orchestrator/execution_plugin/test_ssh.py |  6 ++++-
 2 files changed, 18 insertions(+), 13 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/a63817b1/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index 2858bc3..33f47f8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,9 +10,9 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-sudo: false
-
+# See: 
https://docs.travis-ci.com/user/reference/overview/#Virtualization-environments
 dist: trusty
+sudo: false
 
 language: python
 
@@ -20,15 +20,15 @@ python:
   - '2.7'
 
 env:
-  - TOX_ENV=pylint_code
-  - TOX_ENV=pylint_tests
-  - TOX_ENV=py27
-  - TOX_ENV=py26
-  - TOX_ENV=py27e2e
-  - TOX_ENV=py26e2e
+#  - TOX_ENV=pylint_code
+#  - TOX_ENV=pylint_tests
+#  - TOX_ENV=py27
+#  - TOX_ENV=py26
+#  - TOX_ENV=py27e2e
+#  - TOX_ENV=py26e2e
   - TOX_ENV=py27ssh
-  - TOX_ENV=py26ssh
-  - TOX_ENV=docs
+#  - TOX_ENV=py26ssh
+#  - TOX_ENV=docs
 
 addons:
   apt:
@@ -39,13 +39,14 @@ addons:
       - python2.6-dev
 
 before_install:
+  - ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N ''
+  - cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys
+  - cat /etc/hosts
   - pip install --upgrade pip
   - pip install --upgrade setuptools
   - pip install tox
 
 script:
-  - uname -a
-  - nproc
   - tox --version
   - PYTEST_PROCESSES=1 tox -e $TOX_ENV
 

http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/a63817b1/tests/orchestrator/execution_plugin/test_ssh.py
----------------------------------------------------------------------
diff --git a/tests/orchestrator/execution_plugin/test_ssh.py 
b/tests/orchestrator/execution_plugin/test_ssh.py
index a96c91d..d6f3c17 100644
--- a/tests/orchestrator/execution_plugin/test_ssh.py
+++ b/tests/orchestrator/execution_plugin/test_ssh.py
@@ -40,15 +40,19 @@ from aria.orchestrator.execution_plugin.ssh import 
operations as ssh_operations
 from tests import mock, storage, resources
 from tests.orchestrator.workflows.helpers import events_collector
 
+
 _CUSTOM_BASE_DIR = '/tmp/new-aria-ctx'
 
 _FABRIC_ENV = {
     'host_string': 'localhost',
     'user': 'travis',
-    'password': 'travis'
+    'key_filename': '/home/travis/.ssh/id_rsa'
 }
 
 
+logging.getLogger('paramiko.transport').setLevel(logging.DEBUG)
+
+
 @pytest.mark.skipif(not os.environ.get('TRAVIS'), reason='actual ssh server 
required')
 class TestWithActualSSHServer(object):
 

Reply via email to