Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/test/tests

The easiest way is to run kuttl test in fresh system with crc deployed with

Copy link
Contributor

Choose a reason for hiding this comment

The 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
neutron_kuttl in install_yamls does that but also does the cleanup. So either that have to be made optional or all required resources have to be deployed individually

If image is available then neutron_kuttl target itself can be used by passing NEUTRON_IMG and repo params.

- **create enough pv's**
Copy link
Contributor

Choose a reason for hiding this comment

The 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
Copy link
Contributor

Choose a reason for hiding this comment

The 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`
Copy link
Contributor

Choose a reason for hiding this comment

The 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"`