Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(E2E): Make sure the E2E tests can fully test that the application is reachable on K8s (using an Ingress on GH) #672

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rm3l
Copy link
Member

@rm3l rm3l commented Jan 21, 2025

Description

This is a gap I wanted to close with the current nightly checks.
On OCP, the tests ensure access via the Route created by the Operator, but on K8s (like here in GH against Minikube), this would just be skipped.
In a few situations, I had to manually run the tests against OCP to check that everything worked as expected from a user standpoint.
Without waiting for https://issues.redhat.com/browse/RHIDP-2176 to be implemented, this tries to check such access at least, mainly because that's also how we instruct our users on managed K8s clusters to access their Operator-backed instances.

Which issue(s) does this PR fix or relate to

PR acceptance criteria

  • Tests
  • Documentation

How to test changes / Special notes to the reviewer

Example of a successful run with the changes here: https://github.com/rm3l/redhat-developer-hub-operator/actions/runs/12877252854

Copy link

openshift-ci bot commented Jan 21, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from rm3l. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rm3l rm3l force-pushed the devweek/012025/ci_e2e_on_k8s_using_ingress branch from 289c8ff to a6ce537 Compare January 21, 2025 11:36
…on is reachable on K8s (using an Ingress on GH)

This is a gap I wanted to close with the current nightly checks.
On OCP, the tests ensure access via the Route created by the Operator,
but on K8s (like here in GH against Minikube), this would just be
skipped.
In a few situations, I had to manually run the tests against OCP to
check that everything worked as expected from a user standpoint.
Without waiting for issues.redhat.com/browse/RHIDP-2176 to be
implemented, this tries to check such access at least, mainly because
that's also how we instruct our users on managed K8s clusters to access
their Operator-backed instances.

This way, the test can create an Ingress Resource and ensure the application is fully reachable,
using the same steps an end-user would perform to make expose their Operator-backed app.
@rm3l rm3l force-pushed the devweek/012025/ci_e2e_on_k8s_using_ingress branch from a6ce537 to 431fb74 Compare January 21, 2025 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant