test-operator

module
v0.0.0-...-9117f35 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2026 License: Apache-2.0

README

test-operator

This is a test operator that automates testing of an OpenStack deployment running on an OpenShift cluster. The operator supports execution of the following tests:

Getting Started

First, you will need an OpenStack Platform running on top of OpenShift. See:

to get you started. It will get you through the installation of such environment.

Then proceed to our documentation.

Contributing

Please, make sure that pre-commit checks pass prior to proposing a PR.

  1. Install pre-commit tool
python3 -m venv .venv
. .venv/bin/activate
python3 -m pip install pre-commit
pre-commit install --install-hooks
  1. Execute pre-commit checks
pre-commit run --show-diff-on-failure --color=always --all-files --verbose
Test It Out

Run the following commands if you want to quickly test your test-operator related changes locally.

  1. Install the CRDs into the cluster:
make install
  1. Run your controller (this will run in the foreground, so switch to a new terminal if you want to leave it running):
ENABLE_WEBHOOKS=false make run

NOTE: You can also run this in one step by running: ENABLE_WEBHOOKS=false make install run

Now that test-operator is automatically deployed in the podified environment, you need to additionally delete the test-operator controller manager to test local changes. For more information, check out the section Running Test Operator Locally in our documentation.

License

Copyright 2023.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
api module
Package main is the entry point for the test-operator controller manager.
Package main is the entry point for the test-operator controller manager.
internal
ansibletest
Package ansibletest provides constants and utilities for Ansible-based testing functionality
Package ansibletest provides constants and utilities for Ansible-based testing functionality
controller
Package controller implements the Kubernetes controllers for managing test framework operations
Package controller implements the Kubernetes controllers for managing test framework operations
horizontest
Package horizontest provides constants and utilities for horizon testing functionality
Package horizontest provides constants and utilities for horizon testing functionality
tempest
Package tempest provides constants and utilities for OpenStack Tempest testing functionality
Package tempest provides constants and utilities for OpenStack Tempest testing functionality
tobiko
Package tobiko provides constants and utilities for OpenStack Tobiko testing functionality
Package tobiko provides constants and utilities for OpenStack Tobiko testing functionality
util
Package util provides common utility functions and constants for test operations
Package util provides common utility functions and constants for test operations
webhook/v1beta1
Package v1beta1 contains webhook implementations for v1beta1 API resources
Package v1beta1 contains webhook implementations for v1beta1 API resources

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL