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

Mock server test #11

Merged
merged 20 commits into from
Nov 17, 2016
Merged

Mock server test #11

merged 20 commits into from
Nov 17, 2016

Conversation

etataurov
Copy link
Owner

@etataurov etataurov commented Jul 20, 2016

We need to test this library with real-like server.
This PR contains attempt to do that, but there are few things need to be fixed somehow

  • Compile proper binary from https://github.com/CleverTap/go-apns-server
  • Python 3.5: NotImplementedError: The ALPN extension requires OpenSSL 1.0.2 or later. We need to install updated openssl to travis
  • Python 3.4: AttributeError: 'SSLContext' object has no attribute 'set_alpn_protocols' Thats an actual bug found by this test.
  • add Python3.6 beta
  • repair coveralls

@etataurov
Copy link
Owner Author

After a lot of trial and error here what we have:

  • Python3.5 with recent OpenSSL works great
  • Python3.4 with stdlib SSL doesn't support ALPN, but supports NPN, which is not supported by APNS.

So our options are:

I drop it for now, and create issue for returning python3.4 support

@coveralls
Copy link

Coverage Status

Coverage increased (+6.5%) to 91.716% when pulling aab9710 on mock_server_test into 9490736 on develop.

@coveralls
Copy link

Coverage Status

Coverage increased (+6.5%) to 91.716% when pulling 19e7cc2 on mock_server_test into 9490736 on develop.

@etataurov etataurov merged commit a8f9ec9 into develop Nov 17, 2016
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.

None yet

2 participants