integration/

directory
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2026 License: Apache-2.0

README

Tools for degugging: envtest kubeconfig

While running integration tests, an envtest kubeconfig is generated in:

  • cfgDir/test folder/kubeconfig

The exact location can be found at the beginning of the test logs:

=== RUN   TestGatewayTLSMultipleTestSuite
    /home/helene/go/src/gitlab.int.haproxy.com/haproxy-unified-gateway/test/integration/base/hugconfig.go:37: Haproxy config path: /tmp/hug/e2e-tests-gateway-tls-multiple
    /home/helene/go/src/gitlab.int.haproxy.com/haproxy-unified-gateway/test/integration/base/inttest.go:146: kubeconfig path: /tmp/hug/e2e-tests-gateway-tls-multiple/kubeconfig

You can then inspect the objects with kubectl or k9s:

k9s --kubeconfig=/tmp/hug/e2e-tests-gateway-tls-multiple

Parallel run

The test in each folder under test/integration will be run in parallel in a different envtest. Inside each folder, they run by default sequentially.

Let's take an example for test/integration/gateway-tls-multiple

Output of this tests will be in:

/tmp/hug/e2e-tests-gateway-tls-multiple
$ ls
ls
certlists  certs  haproxy.cfg  haproxy-master.sock  haproxy.pid  haproxy-runtime-api.sock  kubeconfig  maps  route.lua

Note also the kubeconfig file there.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL