Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test mongo postgres mysql tunnels and no hangs anymore :) #219

Merged
merged 40 commits into from
Jan 11, 2021

Conversation

pahaz
Copy link
Owner

@pahaz pahaz commented Nov 18, 2020

  • Changed the daemon flag for all tunnel threads (is not fully backward compatible)
  • Add end to end databases tests for Mongo Postgres MySQL
  • Add end to end hangs tests

@coveralls
Copy link

coveralls commented Nov 18, 2020

Coverage Status

Coverage decreased (-0.2%) to 91.446% when pulling b33add8 on pahaz-functional-tests into 6d636f2 on master.

@@ -45,7 +45,7 @@
#: Timeout (seconds) for tunnel connection (open_channel timeout)
TUNNEL_TIMEOUT = 10.0

_DAEMON = False #: Use daemon threads in connections
_DAEMON = True #: Use daemon threads in connections
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Major changes!

@pahaz pahaz changed the title Test mongo postgres mysql tunnels Test mongo postgres mysql tunnels and no hangs anymore :) Nov 18, 2020
@pahaz
Copy link
Owner Author

pahaz commented Nov 18, 2020

Waiting for 0.3.2 release (#218). It will be at 0.4.0+

@@ -97,7 +97,7 @@
# requirements files see:
# https://packaging.python.org/en/latest/requirements.html
install_requires=[
'paramiko>=1.15.2',
'paramiko>=2.7.2',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as soon as we're just supporting python >=2.7 that's ok

'ed25519': paramiko.Ed25519Key}
'ecdsa': paramiko.ECDSAKey}
if hasattr(paramiko, 'Ed25519Key'):
# NOQA: new in paramiko>=2.2: http://docs.paramiko.org/en/stable/api/keys.html#module-paramiko.ed25519key
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dependency now is paramiko>2.7 so, is this redundant?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, We will remove it in the future

):
key_types = (paramiko.RSAKey, paramiko.DSSKey, paramiko.ECDSAKey)
if hasattr(paramiko, 'Ed25519Key'):
# NOQA: new in paramiko>=2.2: http://docs.paramiko.org/en/stable/api/keys.html#module-paramiko.ed25519key
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this redundant with paramiko >2.7?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, We will remove it in the future

@@ -1605,6 +1612,14 @@ def __enter__(self):
def __exit__(self, *args):
self.stop(force=True)

def __del__(self):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great!

@fernandezcuesta
Copy link
Collaborator

@pahaz we should disable the requirement for coverage increase. It's OK to have an indicator of how much it's covered but not without that much pressure on %

@pahaz
Copy link
Owner Author

pahaz commented Jan 11, 2021

@fernandezcuesta yes, it's better to set it as optional ...

I want to ship it

@pahaz pahaz added this to the 0.3.0 milestone Jan 11, 2021
@pahaz pahaz merged commit 2371a08 into master Jan 11, 2021
@pahaz pahaz deleted the pahaz-functional-tests branch January 11, 2021 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants