With the Ticket API it is possible to manage GitLab issues and labels, corresponding to the content items being operated on.
$ ./mvwn package$ docker build -t image:tag -f src/main/docker/Dockerfile.jvm .
- Open
src/main/kubernetes/config.yamland match the values with your setup. $ kubectl -n NAMESPACE -f src/main/kubernetes/config.yaml$ kubectl -n NAMESPACE -f src/main/kubernetes/deployment.yaml
Testing the ticket API is a bit more involved. But can be done when following these steps carefully.
- Open the file
src/test/java/SystemTest.java. - Observe the following snippet from
SystemTest:
// Change these values to match reality
static class TestConfig {
static String ServerURL = "https://gitlab.com/";
static String ProjectPath = "org/team/project";
static String Token = "glpat-xxx";
// Only change when you want to test
static Boolean Active = false;
}- Configure the variables inside
SystemTest.TestConfigto match your situation. - When you are ready change the
SystemTest.TestConfig.Activetotrue. - Execute
$ ./mvwn test, and wait.
When the Ticket API is up and running, prometheus compatible metrics are exposed on /metrics.