Skip to content

fontys-lunarflow/ticket_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lunarflow Ticket API

With the Ticket API it is possible to manage GitLab issues and labels, corresponding to the content items being operated on.

Building

  • $ ./mvwn package
  • $ docker build -t image:tag -f src/main/docker/Dockerfile.jvm .

Deployment

  • Open src/main/kubernetes/config.yaml and 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

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.TestConfig to match your situation.
  • When you are ready change the SystemTest.TestConfig.Active to true.
  • Execute $ ./mvwn test, and wait.

Monitoring

When the Ticket API is up and running, prometheus compatible metrics are exposed on /metrics.

About

Ticket API for Lunarflow application

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 3

  •  
  •  
  •  

Languages