Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1FECA200CF0 for ; Thu, 7 Sep 2017 21:20:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 1E5721609B8; Thu, 7 Sep 2017 19:20:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 63BAF16098B for ; Thu, 7 Sep 2017 21:20:26 +0200 (CEST) Received: (qmail 84925 invoked by uid 500); 7 Sep 2017 19:20:23 -0000 Mailing-List: contact commits-help@ariatosca.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ariatosca.incubator.apache.org Delivered-To: mailing list commits@ariatosca.incubator.apache.org Received: (qmail 84916 invoked by uid 99); 7 Sep 2017 19:20:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Sep 2017 19:20:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 6946B1A13BB for ; Thu, 7 Sep 2017 19:20:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.221 X-Spam-Level: X-Spam-Status: No, score=-4.221 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id KiY2n0koGvrd for ; Thu, 7 Sep 2017 19:20:17 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id C257B6102F for ; Thu, 7 Sep 2017 19:20:16 +0000 (UTC) Received: (qmail 84710 invoked by uid 99); 7 Sep 2017 19:20:16 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Sep 2017 19:20:16 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 3F45FF56CA; Thu, 7 Sep 2017 19:20:15 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: emblemparade@apache.org To: commits@ariatosca.incubator.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: incubator-ariatosca git commit: Fix for SSH [Forced Update!] Date: Thu, 7 Sep 2017 19:20:15 +0000 (UTC) archived-at: Thu, 07 Sep 2017 19:20:27 -0000 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 Authored: Thu Sep 7 11:35:39 2017 -0500 Committer: Tal Liron 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):