Repository: incubator-ariatosca Updated Branches: refs/heads/ARIA-321-clearwater a63817b1a -> 89fa78a5b (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/89fa78a5 Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/89fa78a5 Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/89fa78a5 Branch: refs/heads/ARIA-321-clearwater Commit: 89fa78a5b1f0284062746435adcecda15b4486c1 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:20:10 2017 -0500 ---------------------------------------------------------------------- .travis.yml | 25 ++++++++++---------- tests/orchestrator/execution_plugin/test_ssh.py | 7 +++++- 2 files changed, 19 insertions(+), 13 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/89fa78a5/.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/89fa78a5/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..25b06b7 100644 --- a/tests/orchestrator/execution_plugin/test_ssh.py +++ b/tests/orchestrator/execution_plugin/test_ssh.py @@ -40,15 +40,20 @@ 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').addHandler(logging.StreamHandler()) +logging.getLogger('paramiko.transport').setLevel(logging.DEBUG) + + @pytest.mark.skipif(not os.environ.get('TRAVIS'), reason='actual ssh server required') class TestWithActualSSHServer(object):
