it

package
v17.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 4 Imported by: 0

README

Integration tests

Integration tests are using test containers to build kas and agentk images. Tests also start:

  • K3s container to provide a Kubernetes instance.
  • Redis

kas is started as a container, agentk is deployed as a Pod into Kubernetes.

Running

From command line:

make test-it

If test containers cannot find your Docker-compatible endpoint, set the DOCKER_HOST environment variable.

You can also run/debug the tests from you favourite IDE. Note that debugger will be attached to the test process, not to kas or agentk processes. It might be possible to attach a debugger to those too, but it's likely more complicated than setting it all up with GDK.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitLabAPI

type GitLabAPI interface {
	GetAgentInfo(http.ResponseWriter, *http.Request)
	PostAgentConfiguration(http.ResponseWriter, *http.Request)
	GetAllowedAgents(http.ResponseWriter, *http.Request)
	GetReceptiveAgents(http.ResponseWriter, *http.Request)
}

type GitalyAPI

GitalyAPI is a subset of gitalypb.CommitServiceServer. We cannot generate a mock for the real interface since it has a private method. So, have to have this crutch. See https://github.com/uber-go/mock/issues/64.

Jump to

Keyboard shortcuts

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