-
Notifications
You must be signed in to change notification settings - Fork 17
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
Run Kiali tests in OSSMC #357
Conversation
8caee49
to
d5de326
Compare
5fe65e0
to
a66f35f
Compare
5f436c3
to
7cfcf3e
Compare
testing via upstream-istio-pipeline/2165 |
export CYPRESS_OC_CLUSTER_USER=<value> # defaults to jenkins, opt. kubeadmin | ||
export CYPRESS_OC_CLUSTER_PASS=<value> # no defaults | ||
export CYPRESS_OC_IDP=<value> # defaults to my_htpasswd_provider | ||
export CYPRESS_USERNAME=<value> # defaults to jenkins, opt. kubeadmin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Originally I chose different variable names to be double sure that settings from kiali/kiali will not interfere with OSSMC suite. This is no longer a concern
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great!
'cypress-react-selector': { | ||
root: '#root' | ||
}, | ||
OSSMC: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only nitpick, but this is why I would prefer to have two different configs, so there is no risk for them to be overwritten when copying the code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually there are two configs, the cypress.config
from Kiali repo and cypress.config
from OSSMC repo. What I don't see is to have two configs just for OSSMC.
Describe the change
When we reused Kiali's source code as the foundation for the OSSMC plugin, we assumed that Kiali's Cypress tests would also be valid for OSSMC. In that case, we only needed to create Cypress tests for specific OSSMC pages, such as the Istio config list page or specific navigation scenarios. However, recent issues (see issue #330) have shown that the same test scenarios can behave differently in Kiali and OSSMC.
To address this, we have modified the OSSMC Cypress test infrastructure to run the same Kiali test scenarios in OSSMC. We have introduced the
@ossmc
Cypress tag to run only those Kiali tests that are applicable to OSSMC (excluding multi-cluster, wizards, etc.).Actions performed to enable running Kiali tests:
USERNAME
,PASSWD
,AUTH_PROVIDER
, etc.)@ossmc
Cypress tag to include a Cypress test in the OSSMC test suite.@skip-ossmc
Cypress tag to exclude specific Cypress tests from features included in OSSMC.kiali
andopenshift
folders)visit
andrequest
Cypress commands since there are slight differences in page URLs and APIs between Kiali and OSSMC.Steps to test the PR
yarn cypress:run
and verify that OSSMC cypress test passIssue reference
#356