Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save furrycatherder/1ba4617b08a6f079e96d3e5700fc349e to your computer and use it in GitHub Desktop.
Save furrycatherder/1ba4617b08a6f079e96d3e5700fc349e to your computer and use it in GitHub Desktop.
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing setuptools-build-hook
Using setuptoolsBuildPhase
Using setuptoolsShellHook
Sourcing pip-install-hook
Using pipInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing setuptools-check-hook
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/416bzvqcvnvrbbpkc123h60wrr4x3ch6-sshtunnel-0.4.0.tar.gz
source root is sshtunnel-0.4.0
setting SOURCE_DATE_EPOCH to timestamp 1610371588 of file sshtunnel-0.4.0/setup.cfg
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Executing setuptoolsBuildPhase
running bdist_wheel
running build
running build_py
creating build
creating build/lib
copying sshtunnel.py -> build/lib
installing to build/bdist.linux-aarch64/wheel
running install
running install_lib
creating build/bdist.linux-aarch64
creating build/bdist.linux-aarch64/wheel
copying build/lib/sshtunnel.py -> build/bdist.linux-aarch64/wheel
running install_egg_info
running egg_info
writing sshtunnel.egg-info/PKG-INFO
writing dependency_links to sshtunnel.egg-info/dependency_links.txt
writing entry points to sshtunnel.egg-info/entry_points.txt
writing requirements to sshtunnel.egg-info/requires.txt
writing top-level names to sshtunnel.egg-info/top_level.txt
reading manifest file 'sshtunnel.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files found matching '.github/*'
warning: no previously-included files found matching '.circleci/*'
warning: no previously-included files found matching '*.pyc'
warning: no previously-included files found matching '__pycache__'
warning: no previously-included files found matching 'Pipfile*'
writing manifest file 'sshtunnel.egg-info/SOURCES.txt'
Copying sshtunnel.egg-info to build/bdist.linux-aarch64/wheel/sshtunnel-0.4.0-py3.8.egg-info
running install_scripts
adding license file "LICENSE" (matched pattern "LICEN[CS]E*")
creating build/bdist.linux-aarch64/wheel/sshtunnel-0.4.0.dist-info/WHEEL
creating 'dist/sshtunnel-0.4.0-py2.py3-none-any.whl' and adding 'build/bdist.linux-aarch64/wheel' to it
adding 'sshtunnel.py'
adding 'sshtunnel-0.4.0.dist-info/LICENSE'
adding 'sshtunnel-0.4.0.dist-info/METADATA'
adding 'sshtunnel-0.4.0.dist-info/WHEEL'
adding 'sshtunnel-0.4.0.dist-info/entry_points.txt'
adding 'sshtunnel-0.4.0.dist-info/top_level.txt'
adding 'sshtunnel-0.4.0.dist-info/RECORD'
removing build/bdist.linux-aarch64/wheel
Finished executing setuptoolsBuildPhase
@nix { "action": "setPhase", "phase": "installPhase" }
installing
Executing pipInstallPhase
/tmp/nix-build-python3.8-sshtunnel-0.4.0.drv-0/sshtunnel-0.4.0/dist /tmp/nix-build-python3.8-sshtunnel-0.4.0.drv-0/sshtunnel-0.4.0
Processing ./sshtunnel-0.4.0-py2.py3-none-any.whl
Requirement already satisfied: paramiko>=2.7.2 in /nix/store/qkqzjv37kqdrznabgh2wc2m6a60jawjn-python3.8-paramiko-2.7.2/lib/python3.8/site-packages (from sshtunnel==0.4.0) (2.7.2)
Requirement already satisfied: bcrypt>=3.1.3 in /nix/store/1mrlb1iwr7z00nk2nbnb9b0lr7m5j21a-python3.8-bcrypt-3.2.0/lib/python3.8/site-packages (from paramiko>=2.7.2->sshtunnel==0.4.0) (3.2.0)
Requirement already satisfied: cryptography>=2.5 in /nix/store/kfm0xm06lrxjsxy7pra0klpzkg5x6grg-python3.8-cryptography-3.4.6/lib/python3.8/site-packages (from paramiko>=2.7.2->sshtunnel==0.4.0) (3.4.6)
Requirement already satisfied: pynacl>=1.0.1 in /nix/store/yg053iakvsc9v9hs0ibgk92cjrjswc9r-python3.8-pynacl-1.4.0/lib/python3.8/site-packages (from paramiko>=2.7.2->sshtunnel==0.4.0) (1.4.0)
Requirement already satisfied: six>=1.4.1 in /nix/store/4kc8y7in0pvmgqfkiz0fqajfffpbbi0k-python3.8-six-1.15.0/lib/python3.8/site-packages (from bcrypt>=3.1.3->paramiko>=2.7.2->sshtunnel==0.4.0) (1.15.0)
Requirement already satisfied: cffi>=1.1 in /nix/store/irsa5nfbdfbkhxmyx454vi11m9cmpqfs-python3.8-cffi-1.14.5/lib/python3.8/site-packages (from bcrypt>=3.1.3->paramiko>=2.7.2->sshtunnel==0.4.0) (1.14.5)
Requirement already satisfied: pycparser in /nix/store/zvmv4wq9anckfzjqhq70c564ypvk58nr-python3.8-pycparser-2.20/lib/python3.8/site-packages (from cffi>=1.1->bcrypt>=3.1.3->paramiko>=2.7.2->sshtunnel==0.4.0) (2.20)
Installing collected packages: sshtunnel
Successfully installed sshtunnel-0.4.0
/tmp/nix-build-python3.8-sshtunnel-0.4.0.drv-0/sshtunnel-0.4.0
Finished executing pipInstallPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
post-installation fixup
shrinking RPATHs of ELF executables and libraries in /nix/store/rqvq6vgp3z1v2b95yi6ngsz3as3fj4w0-python3.8-sshtunnel-0.4.0
strip is /nix/store/h5wgppbyv8vkla58v8zi535j5i9akly5-binutils-2.35.1/bin/strip
stripping (with command strip and flags -S) in /nix/store/rqvq6vgp3z1v2b95yi6ngsz3as3fj4w0-python3.8-sshtunnel-0.4.0/lib /nix/store/rqvq6vgp3z1v2b95yi6ngsz3as3fj4w0-python3.8-sshtunnel-0.4.0/bin
patching script interpreter paths in /nix/store/rqvq6vgp3z1v2b95yi6ngsz3as3fj4w0-python3.8-sshtunnel-0.4.0
checking for references to /tmp/nix-build-python3.8-sshtunnel-0.4.0.drv-0/ in /nix/store/rqvq6vgp3z1v2b95yi6ngsz3as3fj4w0-python3.8-sshtunnel-0.4.0...
Rewriting #!/nix/store/v0n311h4wqymk6q095p4cram5x4cv745-python3-3.8.8/bin/python3.8 to #!/nix/store/v0n311h4wqymk6q095p4cram5x4cv745-python3-3.8.8
wrapping `/nix/store/rqvq6vgp3z1v2b95yi6ngsz3as3fj4w0-python3.8-sshtunnel-0.4.0/bin/sshtunnel'...
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
@nix { "action": "setPhase", "phase": "installCheckPhase" }
running install tests
============================= test session starts ==============================
platform linux -- Python 3.8.8, pytest-6.2.2, py-1.9.0, pluggy-0.13.1
rootdir: /tmp/nix-build-python3.8-sshtunnel-0.4.0.drv-0/sshtunnel-0.4.0
collecting ...  collecting 41 items  collected 51 items / 2 deselected / 49 selected 
tests/test_forwarder.py ........F....................................... [ 97%]
. [100%]
=================================== FAILURES ===================================
_________ SSHClientTest.test_gateway_ip_unresolvable_raises_exception __________
self = <tests.test_forwarder.SSHClientTest testMethod=test_gateway_ip_unresolvable_raises_exception>
@unittest.skipIf(sys.version_info < (2, 7),
reason="Cannot intercept logging messages in py26")
def test_gateway_ip_unresolvable_raises_exception(self):
"""
BaseSSHTunnelForwarderError is raised when not able to resolve the
ssh gateway IP address
"""
with self.assertRaises(sshtunnel.BaseSSHTunnelForwarderError):
with open_tunnel(
(SSH_USERNAME, self.sport),
ssh_username=SSH_USERNAME,
ssh_password=SSH_PASSWORD,
remote_bind_address=(self.eaddr, self.eport),
ssh_config_file=None,
):
pass
> self.assertIn(
'Could not resolve IP address for {0}, aborting!'.format(
SSH_USERNAME
),
self.sshtunnel_log_messages['error']
)
E AssertionError: 'Could not resolve IP address for ppmLhEdjryTV, aborting!' not found in ['Could not connect to gateway ppmLhEdjryTV:52441 : Unable to connect to ppmLhEdjryTV: timed out']
tests/test_forwarder.py:751: AssertionError
----------------------------- Captured stderr call -----------------------------
2021-03-30 02:41:18,776| DEB | MainThrea/0221@test_forw | ********************************************************************************
2021-03-30 02:41:18,782| INF | MainThrea/0222@test_forw | setUp for: TEST_GATEWAY_IP_UNRESOLVABLE_RAISES_EXCEPTION()
2021-03-30 02:41:18,785| INF | MainThrea/0225@test_forw | Socket for ssh-server: 127.0.0.1:52441
2021-03-30 02:41:18,787| INF | MainThrea/0227@test_forw | Socket for echo-server: 127.0.0.1:40875
2021-03-30 02:41:18,789| INF | MainThrea/1038@sshtunnel | Skipping loading of ssh configuration file
2021-03-30 02:41:18,789| INF | MainThrea/1038@sshtunnel | Skipping loading of ssh configuration file
2021-03-30 02:41:18,790| INF | MainThrea/1117@sshtunnel | 0 key(s) loaded
2021-03-30 02:41:18,790| INF | MainThrea/1117@sshtunnel | 0 key(s) loaded
2021-03-30 02:41:18,792| INF | MainThrea/0978@sshtunnel | Connecting to gateway: ppmLhEdjryTV:52441 as user 'ppmLhEdjryTV'
2021-03-30 02:41:18,792| INF | MainThrea/0978@sshtunnel | Connecting to gateway: ppmLhEdjryTV:52441 as user 'ppmLhEdjryTV'
2021-03-30 02:41:18,795| DEB | MainThrea/0983@sshtunnel | Concurrent connections allowed: True
2021-03-30 02:41:18,795| DEB | MainThrea/0983@sshtunnel | Concurrent connections allowed: True
2021-03-30 02:41:18,798| DEB | MainThrea/1414@sshtunnel | Trying to log in with password: ************
2021-03-30 02:41:18,798| DEB | MainThrea/1414@sshtunnel | Trying to log in with password: ************
2021-03-30 02:41:19,928| ERR | MainThrea/1223@sshtunnel | Could not connect to gateway ppmLhEdjryTV:52441 : Unable to connect to ppmLhEdjryTV: timed out
2021-03-30 02:41:19,928| ERR | MainThrea/1223@sshtunnel | Could not connect to gateway ppmLhEdjryTV:52441 : Unable to connect to ppmLhEdjryTV: timed out
2021-03-30 02:41:19,933| INF | MainThrea/0238@test_forw | tearDown for: TEST_GATEWAY_IP_UNRESOLVABLE_RAISES_EXCEPTION()
2021-03-30 02:41:19,934| INF | MainThrea/0278@test_forw | Sending STOP signal
2021-03-30 02:41:19,935| INF | MainThrea/0257@test_forw | tearDown() ssockl
2021-03-30 02:41:19,936| INF | MainThrea/0257@test_forw | tearDown() esockl
------------------------------ Captured log call -------------------------------
DEBUG  sshtunnel:test_forwarder.py:221 ********************************************************************************
INFO  sshtunnel:test_forwarder.py:222 setUp for: TEST_GATEWAY_IP_UNRESOLVABLE_RAISES_EXCEPTION()
INFO  sshtunnel:test_forwarder.py:225 Socket for ssh-server: 127.0.0.1:52441
INFO  sshtunnel:test_forwarder.py:227 Socket for echo-server: 127.0.0.1:40875
INFO  sshtunnel.SSHTunnelForwarder:sshtunnel.py:1038 Skipping loading of ssh configuration file
INFO  sshtunnel.SSHTunnelForwarder:sshtunnel.py:1117 0 key(s) loaded
INFO  sshtunnel.SSHTunnelForwarder:sshtunnel.py:978 Connecting to gateway: ppmLhEdjryTV:52441 as user 'ppmLhEdjryTV'
DEBUG  sshtunnel.SSHTunnelForwarder:sshtunnel.py:983 Concurrent connections allowed: True
DEBUG  sshtunnel.SSHTunnelForwarder:sshtunnel.py:1414 Trying to log in with password: ************
ERROR  sshtunnel.SSHTunnelForwarder:sshtunnel.py:1223 Could not connect to gateway ppmLhEdjryTV:52441 : Unable to connect to ppmLhEdjryTV: timed out
INFO  sshtunnel:test_forwarder.py:238 tearDown for: TEST_GATEWAY_IP_UNRESOLVABLE_RAISES_EXCEPTION()
INFO  sshtunnel:test_forwarder.py:278 Sending STOP signal
INFO  sshtunnel:test_forwarder.py:257 tearDown() ssockl
INFO  sshtunnel:test_forwarder.py:257 tearDown() esockl
=============================== warnings summary ===============================
tests/test_forwarder.py::SSHClientTest::test_cli_main_exits_when_pressing_enter
tests/test_forwarder.py::SSHClientTest::test_sshaddress_and_sshaddressorhost_mutually_exclusive
tests/test_forwarder.py::AuxiliaryTest::test_process_deprecations
tests/test_forwarder.py::AuxiliaryTest::test_process_deprecations
/tmp/nix-build-python3.8-sshtunnel-0.4.0.drv-0/sshtunnel-0.4.0/sshtunnel.py:1266: DeprecationWarning: 'ssh_address' is DEPRECATED use 'ssh_address_or_host' instead
warnings.warn("'{0}' is DEPRECATED use '{1}' instead"
tests/test_forwarder.py::SSHClientTest::test_sshhost_and_sshaddressorhost_mutually_exclusive
tests/test_forwarder.py::AuxiliaryTest::test_process_deprecations
tests/test_forwarder.py::AuxiliaryTest::test_process_deprecations
/tmp/nix-build-python3.8-sshtunnel-0.4.0.drv-0/sshtunnel-0.4.0/sshtunnel.py:1266: DeprecationWarning: 'ssh_host' is DEPRECATED use 'ssh_address_or_host' instead
warnings.warn("'{0}' is DEPRECATED use '{1}' instead"
tests/test_forwarder.py::AuxiliaryTest::test_process_deprecations
tests/test_forwarder.py::AuxiliaryTest::test_process_deprecations
tests/test_forwarder.py::AuxiliaryTest::test_str
/tmp/nix-build-python3.8-sshtunnel-0.4.0.drv-0/sshtunnel-0.4.0/sshtunnel.py:1266: DeprecationWarning: 'ssh_private_key' is DEPRECATED use 'ssh_pkey' instead
warnings.warn("'{0}' is DEPRECATED use '{1}' instead"
tests/test_forwarder.py::AuxiliaryTest::test_process_deprecations
tests/test_forwarder.py::AuxiliaryTest::test_process_deprecations
/tmp/nix-build-python3.8-sshtunnel-0.4.0.drv-0/sshtunnel-0.4.0/sshtunnel.py:1266: DeprecationWarning: 'raise_exception_if_any_forwarder_have_a_problem' is DEPRECATED use 'mute_exceptions' instead
warnings.warn("'{0}' is DEPRECATED use '{1}' instead"
-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED tests/test_forwarder.py::SSHClientTest::test_gateway_ip_unresolvable_raises_exception
====== 1 failed, 48 passed, 2 deselected, 12 warnings in 68.54s (0:01:08) ======
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment