• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Parsely / pykafka / 1415 / 5
38%
master: 38%

Build:
DEFAULT BRANCH: master
Ran 28 Feb 2018 03:27PM UTC
Files 44
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Feb 2018 03:27PM UTC coverage: 6.327%. First build
KAFKA_VERSION=0.8.2.2

Pull #477

travis-ci

Yung-Chin Oei
client: enable ssl option [WIP]

This is the simplest change that works (except for the rdkafka module,
which still needs updating).  For connecting with the testinstances
cluster (which was configured for TLS in the parent commit), you can do:

    import pykafka, ssl, functools
    ssl_context = ssl.create_default_context(
        cafile="/tmp/kafka-bin/test-certs/root.cert")
    ssl_context.load_cert_chain(
        certfile="/tmp/kafka-bin/test-certs/client.cert",
        keyfile="/tmp/kafka-bin/test-certs/client.key",
        password=b"dWJTxlilbJcH1Wgn")
    wrap = functools.partial(
        ssl_context.wrap_socket,
        server_hostname="localhost")
    client = pykafka.KafkaClient(
        "localhost:9093",
        ssl_wrap_socket=wrap)

However we probably still need to change the interface a bit: we'll need
to store cafile, certfile, keyfile and password, because in the current
format there's no way to obtain these and pass them into the rdkafka
config.

Signed-off-by: Yung-Chin Oei <yungchin@yungchin.nl>
Pull Request #477: ssl support

62 of 980 relevant lines covered (6.33%)

0.06 hits per line

Source Files on job 1415.5 (KAFKA_VERSION=0.8.2.2)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1
  • Travis Job 1415.5
  • 7a0f39b4 on github
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc