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

Add ssl support #81

Merged
merged 2 commits into from Nov 23, 2016
Merged

Add ssl support #81

merged 2 commits into from Nov 23, 2016

Conversation

tvoinarovskyi
Copy link
Member

No description provided.

@codecov-io
Copy link

codecov-io commented Nov 20, 2016

Current coverage is 96.04% (diff: 100%)

Merging #81 into master will increase coverage by 0.17%

@@             master        #81   diff @@
==========================================
  Files             8          9     +1   
  Lines          1624       1696    +72   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits           1557       1629    +72   
  Misses           67         67          
  Partials          0          0          

Powered by Codecov. Last update bd671db...529eb62

@@ -21,6 +24,36 @@ def docker():
return libdocker.Client(version='auto')


@pytest.yield_fixture(scope='session')
def ssl_folder(docker_ip_address):
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we can generate and store (commit) ssl cert/key in tests/data for example... and use it in tests

# Don't pull image if it available localy. Helps when developing new docker
# builds
if not docker.images(image):
docker.pull(image)
Copy link
Contributor

Choose a reason for hiding this comment

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

I have some pygo/kafka:2.11_0.9.0.1 image locally (pulled on previous make test in master).
If you (or somebody else) changes this image on docker hub, I'll never pull it (with this code).

For testing new docker builds you can use --docker-image option in pytest.

request.cls.kafka_ssl_port = ksslport
request.cls.ssl_folder = ssl_folder

def _create_context(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

why so implicit?) you pass ssl_folder to test class. So can implement this helper method in KafkaIntegrationTestCase class.

Reverted docker.pull to be run on tests whether you have or not image in docker, so we always update it to latest
Other review fix
@tvoinarovskyi
Copy link
Member Author

Fixes SSL part of #32

@tvoinarovskyi tvoinarovskyi merged commit 59a0dd1 into master Nov 23, 2016
@tvoinarovskyi tvoinarovskyi deleted the add_ssl branch November 23, 2016 12:04
@tvoinarovskyi tvoinarovskyi mentioned this pull request Nov 23, 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

3 participants