Commit Graph

13 Commits

Author SHA1 Message Date
Michał Dulko 46a98e1716 Test container: use UID instead of name
Newer OpenShift version won't allow you to specify username as `USER`
instruction argument. This commit changes the test container dockerfile
to create the user with `--uid 100` and then use `100` as the argument
instead.

Depends-On: I7ed0ae76108a409bc72bc61ab7c12164e8277257
Change-Id: I7a51b3553a17c21160f76e527a61ef829610a888
2023-02-23 17:23:47 +01:00
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
Zuul a9114ee09a Merge "Adds Kuryr-sctp-demo application" 2021-01-25 10:12:47 +00:00
Tabitha 60f778805d Adds Kuryr-sctp-demo application
Adds the sctp-demo server and client application to test_container.

Partially-Implements: blueprint sctp-support
Change-Id: I4b6d3a0e8bff7fdeb23ec8de046ea71dbf690069
2021-01-22 18:30:18 +01:00
Roman Dobosz e564b661d9 Change registry from docker.io to quay.io for test container image.
Change-Id: I4180fd7c9b9184ba52c9167e18407f399d3c6e70
2020-12-15 10:13:57 +01:00
Roman Dobosz 0746946003 Use registry at quay.io instead of docker.io.
Lately, Docker.io started to limit their resources[1], so it started to
be annoying in a cases of usual development, to typical test by CI
systems. Although our image is tiny, but still, we can observe that
limits were hit. Let's move on to the quay.io.

[1] https://www.docker.com/increase-rate-limit

Change-Id: I32af39344cb3e590a13bd07b64227d8acab6ccd0
2020-11-18 13:01:28 +01:00
Maysa Macedo f6deb3493d Fix container test image
The test container is failing to execute ping on environments that
do not allow containers to run as root user (e.g. OpenShift 4.6).
This commit fixes the issue by ensuring iputils package from Alpine
is installed. Also, it upgrades packages versions.

Change-Id: I1f429110c888103734ce6657fea729529389eb1f
2020-10-09 17:04:11 +00:00
Michał Dulko 44fa61591d Update rootfs.tar.xz for kuryr/demo
Seems like rootfs.tar.xz was not updated after upd_client was added to
kuryr/demo container image. This commit updates it.

Change-Id: Id0fa12c3bb240d1d8eae01db78558e7f908f80a9
Related-Bug: 1799239
2019-04-17 11:42:02 +02:00
Yossi Boaron 3ae7eef13e Add support for UDP in kuryr/demo container
Update kuryr/demo container to support UDP server.
After this change, the kuryr/demo image runs both HTTP and UDP
servers.
The listeners ports values could be configured using pod's
environment variables.
And in addition, a simple udp client binary tool was added to
image, to use it, you should run :
udp_client <server's_ip> <server's port>

Change-Id: I9f2f2ad3273f947fecb776c0f56f6829df81aa67
2018-10-18 16:37:04 +03:00
Antoni Segura Puimedon a8ff6c4cad Make Port and http/https configurable for the test container
It introduces env vars:

* HTTP_PORT: choose a port to serve. If not set, uses 8080
* HTTPS_PORT: choose to serve HTTPS and on which port
* HTTPS_CERT_PATH: Path to the cert to use when serving HTTPS
* HTTPS_KEY_PATH: Path to the ssl key to use when serving HTTPS

Change-Id: I5078ba0345999dadd7d3850f07c538a617c54e46
Signed-off-by: Antoni Segura Puimedon <celebdor@gmail.com>
2018-08-01 12:53:30 +02:00
Antoni Segura Puimedon a4c8d8a4f4 Upgrade musl(from alpine) and busybox versions
Change-Id: If5921ac820a5209edc71b41cdfed3c2dea5304d9
Signed-off-by: Antoni Segura Puimedon <asegurap@redhat.com>
2018-07-06 17:39:34 +02:00
Antoni Segura Puimedon 20222a0200
demo container: Include ssl certificates
Without this patch, curl would complain that the path where it expects
the ca certificate bundle is empty.

Change-Id: Iadf0f37118ab1bee2265abfbfab2ab8ce462ac87
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
2018-03-21 16:00:45 +01:00
Antoni Segura Puimedon c7ebfeadc6
test_container: Add non-layered demo test image
Often our tests are based on kuryr/demo. That image used to be based on
python and alpine and was taking a very long time to pull for already
slow tests. This change makes this repository have the authoritative
version of the kuryr/demo build.

The way it is built is just by running mkrootfs.sh. But that only needs
to be run if we change the version of curl or modify server.go.
Otherwise, to run test it just needs:

    docker build -t kuryr/demo . -f Dockerfile

This build will not need to go to Docker Hub for anything so we also
eliminate one source of flakiness.

Depends-On: https://review.openstack.org/#/c/547390/
Change-Id: Iab5799e22c3b353a4f2adbaa280ab4a9904ecd95
Signed-off-by: Antoni Segura Puimedon <antonisp@celebdor.com>
2018-02-23 13:43:54 +01:00