-
Notifications
You must be signed in to change notification settings - Fork 55
SREP-1164 : Update README file for running E2E Tests for CAD #517
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
Open
ratnam915
wants to merge
5
commits into
openshift:main
Choose a base branch
from
ratnam915:feature/SREP-1164
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+46
−8
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f331245
Update README file for running E2E Tests for CAD
ratnam915 bcdc480
Made changes to the README file
ratnam915 aee0e75
Merge branch 'openshift:main' into feature/SREP-1164
ratnam915 1c04980
Made OCM configuration changes to support local testing
ratnam915 a6c139e
E2E README file changed post OCM code change
ratnam915 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,34 @@ | |
When updating your operator it's beneficial to add e2e tests for new functionality AND ensure existing functionality is not breaking using e2e tests. | ||
To do this, following steps are recommended | ||
|
||
1. Run "make e2e-binary-build" to make sure e2e tests build | ||
2. Deploy your new version of operator in a test cluster | ||
3. Run "go install github.com/onsi/ginkgo/ginkgo@latest" | ||
1. Run "make e2e-binary-build" to make sure e2e tests build | ||
|
||
2. Run "go install github.com/onsi/ginkgo/ginkgo@latest" | ||
|
||
3. Create a ROSA Cluster which would be used for E2E testing using the below command: | ||
|
||
rosa create cluster --cluster-name=<cluster-name> --profile <default-aws-profile> | ||
|
||
4. Get kubeadmin credentials from your cluster using | ||
|
||
ocm get /api/clusters_mgmt/v1/clusters/(cluster-id)/credentials | jq -r .kubeconfig > /(path-to)/kubeconfig | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not part of this PR, but the sentence above:
That doesn't seem to apply here. |
||
|
||
5. Run test suite using | ||
5. AWS Credentials | ||
These are needed for interacting with the cluster. You can find them in the ~/.aws/credentials file. | ||
Check for the access key and the secret key from the <default-aws-profile> used for creating the cluster. | ||
export AWS_ACCESS_KEY_ID=<your AWS access key ID> | ||
export AWS_SECRET_ACCESS_KEY=<your AWS secret access key> | ||
|
||
6. PAGERDUTY ROUTING KEY | ||
|
||
This is required for the PagerDuty alerts that are being sent as part of the testing: | ||
|
||
https://redhat.pagerduty.com/service-directory/P4BLYHK/integrations | ||
|
||
The value can be picked up from the Integration Key in the above link | ||
|
||
export CAD_PAGERDUTY_ROUTING_KEY=<url-integration-key-value> | ||
|
||
7. Run test suite using | ||
|
||
DISABLE_JUNIT_REPORT=true KUBECONFIG=/(path-to)/kubeconfig ./(path-to)/bin/ginkgo --tags=osde2e -v test/e2e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
polish: we need to export the cluster id as OCM_CLUSTER_ID here