Skip to content

Comments

lib/py/test/test_sslsocket.py is flaky#850

Closed
jsirois wants to merge 5 commits intoapache:masterfrom
jsirois:THRIFT-3616
Closed

lib/py/test/test_sslsocket.py is flaky#850
jsirois wants to merge 5 commits intoapache:masterfrom
jsirois:THRIFT-3616

Conversation

@jsirois
Copy link
Member

@jsirois jsirois commented Feb 12, 2016

Previously a combination of fixed ports, fixed paths and delays was used
in all TSSLSocketTest tests that involved making a client-server
connection; now ephemeral ports, unique tmp files and no delays for
successful connection tests are all implemented. A delay still remains
for the failed connection tests to allow for SSL handshake initiation
but not wait too long.

Previously a combination of fixed ports, fixed paths and delays was used
in all TSSLSocketTest tests that involved making a client-server
connection; now ephemeral ports, unique tmp files and no delays for
successful connection tests are all implemented. A delay still remains
for the failed connection tests to allow for SSL handshake initiation
but not wait too long.
@jsirois
Copy link
Member Author

jsirois commented Feb 12, 2016

@nsuke - hoping you have time to review this one

@jsirois
Copy link
Member Author

jsirois commented Feb 12, 2016

Noting that Jenkins CI failed on lib/cpp/test/SecurityTest.cpp before getting to test_sslsocket.py.
I have a fix for the SecurityTest in #848 that still needs review attention so I'll mark THRIFT-3616 as blocked on THRIFT-3608

client.close()

# deprecated feature
def test_deprecation(self):
Copy link
Member

Choose a reason for hiding this comment

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

For some reason, deprecation count now differs between Python 2 and Python 3
https://travis-ci.org/apache/thrift/jobs/108805112#L2383

File "test/test_sslsocket.py", line 164, in test_deprecation
self.assertEqual(len(w), 7)
AssertionError: 6 != 7

I've found another issue on deprecate messages so I'll need to modify this part shortly after, after all.
So you can just skip this with if + print for now.

Copy link
Member Author

Choose a reason for hiding this comment

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

will do - diff coming presently

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Added a link to the issue in the comment - thanks!

@asfgit asfgit closed this in ac06704 Feb 12, 2016
@jsirois jsirois deleted the THRIFT-3616 branch February 12, 2016 17:42
gadLinux pushed a commit to gadLinux/thrift that referenced this pull request Mar 6, 2016
Client: Test (Python)
Patch: John Sirois

Previously a combination of fixed ports, fixed paths and delays was used
in all TSSLSocketTest tests that involved making a client-server
connection; now ephemeral ports, unique tmp files and no delays for
successful connection tests are all implemented. A delay still remains
for the failed connection tests to allow for SSL handshake initiation
but not wait too long.

This closes apache#850
allengeorge pushed a commit to allengeorge/thrift that referenced this pull request Jan 1, 2017
Client: Test (Python)
Patch: John Sirois

Previously a combination of fixed ports, fixed paths and delays was used
in all TSSLSocketTest tests that involved making a client-server
connection; now ephemeral ports, unique tmp files and no delays for
successful connection tests are all implemented. A delay still remains
for the failed connection tests to allow for SSL handshake initiation
but not wait too long.

This closes apache#850
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.

2 participants