-
Notifications
You must be signed in to change notification settings - Fork 45
Adds documentaion for kuttl tests #542
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -241,3 +241,19 @@ or in Visual Studio Code by defining the following in your settings.json: | |
| "KUBEBUILDER_ASSETS":"<location of kubebuilder-envtest installation>" | ||
| }, | ||
| ``` | ||
|
|
||
| ## Run kuttl test | ||
| The easiest way is to run kuttl test in fresh system with crc deployed with | ||
|
|
||
|
Contributor
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. Before running tests all neutron deps should be ready like ovn,rabbitmq,infra,keystone etc operators along with respective CRs If image is available then neutron_kuttl target itself can be used by passing NEUTRON_IMG and repo params. |
||
| - **create enough pv's** | ||
|
Contributor
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. from install_yamls directory |
||
| `PV_NUM=30 make crc_storage` | ||
| - make your changes in neutron-operator | ||
| - add required kuttl tests | ||
|
Contributor
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. If there are API/CRD changes then also need to run: make install |
||
| - start webhook `make run-with-webhook` | ||
|
Contributor
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. s/webhook/operator locally |
||
|
|
||
| - navigate to install_yamls | ||
| - run kuttl tests | ||
| `make neutron_kuttl_run OPERATOR_BASE_DIR=/home/stack/repos NAMESPACE=neutron-kuttl-tests` | ||
|
|
||
| - To run a single test | ||
| `make neutron_kuttl_run OPERATOR_BASE_DIR=/home/stack/repos NAMESPACE=neutron-kuttl-tests KUTTL_ARGS="--test notifications"` | ||
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.
s/test/tests