Skip to content

Commit 871db88

Browse files
committed
Move test code and metadata to tests-extension directory
Relocates all test-related code into the isolated test module: Test code moved: - test/extended/event_ttl.go → test/extended/tests-extension/event_ttl.go - test/extended/main.go → test/extended/tests-extension/main.go - cmd/cluster-kube-apiserver-operator-tests-ext → test/extended/tests-extension/cmd/ Metadata moved: - .openshift-tests-extension/ → test/extended/tests-extension/.openshift-tests-extension/ Import path updates: - Updated cmd/main.go to import from tests-extension module This consolidates all test extension components (code, binary entry point, and test metadata) into a single self-contained directory that uses its own go.mod for dependency management. The test binary and metadata now live alongside the test code in test/extended/tests-extension/, making the test module completely independent from the operator codebase.
1 parent dd4c3c1 commit 871db88

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

test/extended/README.md renamed to test/extended/tests-extension/README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ They use the framework: https://github.com/openshift-eng/openshift-tests-extensi
1010
| Command | Description |
1111
|--------------------------------------------------------------------------------------------|--------------------------------------------------------------------------|
1212
| `make tests-ext-build` | Builds the test extension binary. |
13-
| `./cluster-kube-apiserver-operator-tests-ext list` | Lists all available test cases. |
14-
| `./cluster-kube-apiserver-operator-tests-ext run-suite <suite-name>` | Runs a test suite. e.g., `openshift/cluster-kube-apiserver-operator/conformance/parallel` |
15-
| `./cluster-kube-apiserver-operator-tests-ext run <test-name>` | Runs one specific test. |
13+
| `test/extended/tests-extension/cluster-kube-apiserver-operator-tests-ext list` | Lists all available test cases. |
14+
| `test/extended/tests-extension/cluster-kube-apiserver-operator-tests-ext run-suite <suite-name>` | Runs a test suite. e.g., `openshift/cluster-kube-apiserver-operator/conformance/parallel` |
15+
| `test/extended/tests-extension/cluster-kube-apiserver-operator-tests-ext run <test-name>` | Runs one specific test. |
1616

1717

1818
## How to Run the Tests Locally
@@ -22,6 +22,7 @@ Use the environment variable `KUBECONFIG` to point to your cluster configuration
2222

2323
```shell
2424
export KUBECONFIG=path/to/kubeconfig
25+
test/extended/tests-extension/cluster-kube-apiserver-operator-tests-ext run <test-name>
2526
./cluster-kube-apiserver-operator-tests-ext run <test-name>
2627
```
2728

cmd/cluster-kube-apiserver-operator-tests-ext/main.go renamed to test/extended/tests-extension/cmd/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"github.com/spf13/cobra"
2121

2222
// The import below is necessary to ensure that the OAS operator tests are registered with the extension.
23-
_ "github.com/openshift/cluster-kube-apiserver-operator/test/extended"
23+
_ "github.com/openshift/cluster-kube-apiserver-operator/test/extended/tests-extension"
2424
)
2525

2626
func main() {
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)