Skip to content

Add a new unit test image based on swh-tox enriched with kafka

Use case is the journal tests needs a kafka that can be started/stopped during the tests.

Related swh/devel/swh-journal!242 (closed)

Remains:

  • swh/devel/swh-journal!242 (closed) needs adaptation to actually lift that, based on environment variable(s)

  • the build job needs to be parametrized to change the jenkins node for running tests. Defaulting to swh-tox and be able to run with swh-kafka (for swh-journal here)

Test Plan

# run a local registry
docker run -d -p 5000:5000 --name registry registry:2
# build the node using local registry
REGISTRY=localhost:5000 ; make kafka
# connect to the node and check everything is as expected
REGISTRY=localhost:5000; make kafka exec /bin/bash
$ ls -lh /opt
lrwxrwxrwx 1 jenkins jenkins   21 Mar 20 10:04 kafka -> /opt/kafka_2.12-2.1.1
drwxr-xr-x 1 jenkins jenkins 4.0K Feb  8 18:33 kafka_2.12-2.1.1

Migrated from D1280 (view on Phabricator)

Merge request reports