Giter Club home page Giter Club logo

pp-integrator's Introduction

pp-integrator

PP (Product Pages) Integrator is a RESTful Web Service that integrates with Product Pages.

It is currently not intended to be a full implementation of the PP API in Java. It is meant to be used as a microservice for obtaining the support status (phase) of a product. Therefore, it currently supports only Products, Releases, and Phases internally, and externally exposes an endpoint to get the phase of a product or release using, respectively:

/api/phases/products?shortname=jbossfoo

or

/api/phases/releases?shortname=jbossfoo-1-0.0

Assuming it has been given a valid shortname, the service will return one of the phase names listed below in text/plain format:

  • Concept
  • Planning
  • Planning / Development / Testing
  • CI / CD Development
  • Development / Testing
  • Testing
  • Launch
  • Maintenance
  • Unsupported

Additionally, the endpoints /api/products and /api/releases return sets of strings representing all product shortnames and all release shortnames, respectively.

Running the application in dev mode

You can run your application in dev mode that enables live coding using:

mvn quarkus:dev

Packaging and running the application

The application can be packaged using mvn package -DskipTests. It produces the pp-integrator-runner.jar file in the ./target directory which is an über-jar.

The application is now runnable using java -Dorg.jboss.pnc.ppitegrator.pp.rest.ProductPagesService/mp-rest/url=<pp_url> -jar target/pp-integrator-runner.jar.

Creating a native executable

You can create a native executable using: mvn package -Pnative.

Or, if you don't have GraalVM installed, you can run the native executable build in a container using: mvn package -Pnative -Dquarkus.native.container-build=true.

You can then execute your native executable with: ./target/pp-integrator-runner.

Running the tests

To run the tests, you must set a few properties.

$ mvn clean install -Dpp.url=https://<pp_url>/pp/api -Dtest.product_shortname=<product_shortname> -Dtest.release_shortname=<release_shortname>

The org.jboss.pnc.ppitegrator.pp.rest.ProductPagesService/mp-rest/url property is used at runtime and during the tests and should be set to the base URL of the Product Pages server (without the version).

The test.product_shortname property should be set to a valid product shortname, e.g., jbossfoo.

The test.release_shortname property should be set to valid release shortname. e.g., jbossfoo-<major_version>-<minor_version>.<micro_version>.

pp-integrator's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar dwalluck avatar jbartece avatar thescouser89 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.