Skip to content

Conversation

@rhusar
Copy link
Member

@rhusar rhusar commented Apr 11, 2024

…on non-OpenAPI compliant runtime

Fixes
https://issues.redhat.com/browse/WFLY-19229

@rhusar rhusar requested a review from emmartins as a code owner April 11, 2024 14:20
@rhusar
Copy link
Member Author

rhusar commented Apr 11, 2024

The whole BasicRuntimeIT is a mess as well... it's being overriden (http://localhost:8080/) but in the templates this forms URIs without the context path - and since it only chcecks for 200, it would pass anwyay...

@rhusar
Copy link
Member Author

rhusar commented Apr 11, 2024

The whole BasicRuntimeIT is a mess as well... it's being overriden (http://localhost:8080/) but in the templates this forms URIs without the context path - and since it only chcecks for 200, it would pass anwyay...

Will open a Jira when Jira is back online.

@emmartins
Copy link
Contributor

emmartins commented Apr 11, 2024 via email

@emmartins
Copy link
Contributor

emmartins commented Apr 11, 2024 via email

@rhusar
Copy link
Member Author

rhusar commented Apr 11, 2024

FYI the server host is overriden on server provisioning/bootable jar environment, and on those the app is deployed at root context, i.e. thus no context path

On Thu, 11 Apr 2024 at 16:50, Radoslav Husar @.> wrote: The whole BasicRuntimeIT is a mess as well... it's being overriden ( http://localhost:8080/) but in the templates this forms URIs without the context path - and since it only chcecks for 200, it would pass anwyay... Will open a Jira when Jira is back online. — Reply to this email directly, view it on GitHub <#894 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEDY6CUDHIBTLR7MA57SVLY42WLXAVCNFSM6AAAAABGCM7BKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJQGAYDONZUHA . You are receiving this because your review was requested.Message ID: @.>

Gotcha, good point. So only affecting this specific scenario.

*/
public class BasicRuntimeIT {

private static final String DEFAULT_SERVER_HOST = "http://localhost:8080/microprofile-openapi";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will need to double "later" check but I believe this fails the standard distribution testing, where app is not app web root and testing command doesn't override -Dserver.host
that is (for now) the default environment, thus all basic tests have the deployment path in the default const.

Copy link
Member Author

@rhusar rhusar Jun 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK please go ahead and check (rebased now only just to see what tests think now)

But the /openapi is always at the same location...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean that is something not from the deployment itself?
Ok I see you change the basic test logic, honestly the idea with those basics were to be the same for all QS and just to check the deployment is running (by checking it's default webpage is there and at most it's content is expected), so maybe keep the old test (yet checking the content) and add this a additional functional one?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will give you a better look and opinion tomorrow, just need to review a pair of PR first in the morning

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emmartins Sure, we can do that too. I will close and reopen with a new test.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will give you a better look and opinion tomorrow, just need to review a pair of PR first in the morning

OK i ll wait till tomorrow, then close and reopen with a new test instead.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will give you a better look and opinion tomorrow, just need to review a pair of PR first in the morning

@emmartins btw did you make a final decision on this yet?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@emmartins No update?

…on non-OpenAPI compliant runtime

Fix BasicRuntimeIT does not add /context-path when SERVER_HOST/server.host is overriden.
@openshift-ci
Copy link

openshift-ci bot commented Jun 17, 2024

@rhusar: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/wildfly-quickstart-e2e d2e1b69 link true /test wildfly-quickstart-e2e

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@emmartins
Copy link
Contributor

hi @rhusar, doing project housekeeping and found this one abandoned. I did check it out and I think what we should do here is:

  • keep the basic existent test as it is
  • add this new test to verify $serverHost/../openapi
    WDYT?

@rhusar
Copy link
Member Author

rhusar commented Sep 8, 2025

@emmartins Sounds good to me - I ll update this tomorrow then.

@rhusar
Copy link
Member Author

rhusar commented Sep 9, 2025

@emmartins OK then, opening a PR where this is split the code into a separate test case.

Superseded by #1077

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants