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

Not possible to use K8s service with a port for Grafana #9

Open
ernesgonzalez33 opened this issue May 27, 2022 · 0 comments
Open

Not possible to use K8s service with a port for Grafana #9

ernesgonzalez33 opened this issue May 27, 2022 · 0 comments

Comments

@ernesgonzalez33
Copy link
Contributor

If using the Kubernetes Service instead of the Ingress URL for the GRAFANA_URL variable, the test fails since it looks for the URL to resemble ${GRAFANA_URL}/login but in selenium, it would not include the port so it would be expecting the port to show.

This is the part of the code where this could be fixed:

@When("A user opens Grafana.")
public void verify_forward_to_login_page() {
webDriver.get(grafanaUrl);
assertEquals(String.format("%s/login", grafanaUrl), webDriver.getCurrentUrl(), "The user should be forwarded to the login-page.");
}

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

No branches or pull requests

1 participant