Git Product home page Git Product logo

Comments (2)

aguibert avatar aguibert commented on June 2, 2024

hi @rdebusscher, the readiness check is indeed configurable like this:

    @Container
    public static MicroProfileApplication app = new MicroProfileApplication()
                    .withAppContextRoot("/myservice")
                    .withReadinessPath("/myservice/people");

If withReadinessPath is not specified, we attempt to auto-select a readiness path which is described in the javadoc:

    /**
     * Sets the path to be used to determine container readiness. The readiness check will
     * timeout after a sensible amount of time has elapsed.
     * If unspecified, the readiness path with defailt to either:
     * <ol><li>The MicroProfile Health 2.0 readiness endpoint <code>/health/readiness</code>,
     * if MP Health 2.0 API is accessible</li>
     * <li>Otherwise, the application context root</li>
     * </ol>
     *
     * @param readinessUrl The HTTP endpoint to be polled for readiness. Once the endpoint
     *            returns HTTP 200 (OK), the container is considered to be ready.
     * @return the current instance
     */
    public MicroProfileApplication withReadinessPath(String readinessUrl) {

So if the test framework can load MP Health 2.0 API, it assumes in impl is available to the app. I'm guessing you ran into this issue trying to run one of the samples in this repo with Payara? It may have gotten mixed up because the test apps have MP Health 2.0 API on their test classpath, but if Payara doesn't support MP Health 2.0 3.0, then it would not really be correct for a Payara user to be adding MP Health 2.0 API on their test classpath.

from microshed-testing.

aguibert avatar aguibert commented on June 2, 2024

resolved by #59

from microshed-testing.

Related Issues (20)

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.