Skip to content

Continuous Deployment: Testing Packages in CI/CD Process

After deploying your Martini packages, it's essential to verify their status and ensure they are running correctly. This guide describes how to use the Martini Server Runtime API to test the presence and status of your packages.

Using the Martini Server Runtime API

The Martini Server Runtime API allows you to check the status of your deployed packages. You can perform this check using the API Explorer available at [host]/api-explorer.

Steps to Test a Package

  1. Access API Explorer:

    • Open the API Explorer at [host]/api-explorer.
  2. Invoke the GET /esbapi/packages/{name} Operation:

    • Use the GET /esbapi/packages/{name} operation to retrieve information about the package you want to test.
    • Replace {name} with the name of the package you wish to check.
  3. Review the Response:

    • The response body will provide detailed information about the package. Here is an example of the response format:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
{
  "id": "com.company.new-package",
  "name": "demo-package",
  "contextPath": "",
  "version": "1.0.0-SNAPSHOT",
  "stateOnStartup": "STARTED",
  "status": "STARTED",
  "dependsOn": [],
  "startupServices": [
    "gloop:demo_package.config.Setup/demo_package.config.Setup"
  ],
  "shutdownServices": [
    "gloop:demo_package.config.ShutdownService/demo_package.config.ShutdownService"
  ],
  "jmsDestinations": [],
  "endpoints": [],
  "springContextFiles": [],
  "solrCores": []
}