kuryr-tempest-plugin/test_container
Tabitha 34fe966f34 Adds connectivity test for SCTP service
This patch adds a new test to check SCTP connectivity from pods.
The 'create_setup_for_service_test' and 'assert_backend_amount_from_pod'
functions were also extended to support SCTP services. The kuryr-sctp
application was also extended to support connection with IPv6 address family.

Partially-Implements: blueprint sctp-support
Change-Id: Ic63a2807238d3d879bb172d74b05bada2399f07f
2021-02-22 18:13:00 +01:00
..
kuryr_sctp_demo Adds connectivity test for SCTP service 2021-02-22 18:13:00 +01:00
curl_builder.sh Fix container test image 2020-10-09 17:04:11 +00:00
Dockerfile Change registry from docker.io to quay.io for test container image. 2020-12-15 10:13:57 +01:00
Dockerfile.builder Change registry from docker.io to quay.io for test container image. 2020-12-15 10:13:57 +01:00
mkrootfs.sh Use registry at quay.io instead of docker.io. 2020-11-18 13:01:28 +01:00
README.rst Use registry at quay.io instead of docker.io. 2020-11-18 13:01:28 +01:00
rootfs.tar.xz Use registry at quay.io instead of docker.io. 2020-11-18 13:01:28 +01:00
server.go Add support for UDP in kuryr/demo container 2018-10-18 16:37:04 +03:00
udp_client.go Add support for UDP in kuryr/demo container 2018-10-18 16:37:04 +03:00

Kuryr Testing container infrastructure

This directory is the official source for building Quay.io kuryr/demo images.

The build consists on two parts:

Builder container

The builder container is based on the musl compiled Alpine distribution. In the process of building the image, it downloads and compiles:

  • busybox
  • musl
  • curl and its dependencies

It also includes golang so that we can use it in our test web server:

  • server.go

Everything that is to be included in the kuryr/demo image is put in /usr/src/busybox/rootfs.

The reason for this is that this build is based on Docker's busybox build system and the rootfs won't have any library, so all you want to add must be statically compiled there.

kuryr/demo container

This is the actual container used in the tests. It includes:

  • Busybox: It gives us a very lightweight userspace that provides things like the ip command, vi, etc.
  • curl: Useful for testing HTTP/HTTPS connectivity to the API and other services.
  • helloserver: An HTTP server that binds to 8080 and prints out a message that includes the hostname, so it can be used to see which pod replies to a service request.

When and how to build

builder container + kuryr/demo

You should only need to build the whole set if you want to change the library app version of something in kuryr/demo or add another tool like bind9 dig.

The way to do this is:

.. code-block:: console

$ sudo ./mkrootfs.sh

kuryr/demo

Everytime you want to run the tests, you should build the kuryr/demo container locally to avoid pulls from quay.io to make sure you run the latest authoritative version.

Note that the kuryr-tempest-plugin devstack will build it for you.