-
Notifications
You must be signed in to change notification settings - Fork 218
[WIP][NE-2131] OTE - Implement initial framework and tests #1284
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
rikatz
wants to merge
11
commits into
openshift:master
Choose a base branch
from
rikatz:ote-local-utils
base: master
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.
Open
Changes from 4 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
5abb6bc
[NE-2131] Add e2e framework
rikatz 92626cc
[NE-2131] Migrate GatewayAPI e2e test
rikatz 1913b15
[NE-2131] Migrate GatewayAPI Controller e2e test
rikatz fa45e54
[NE-2131] Add OTE binary
rikatz e886094
[NE-2131] Initial OTE work - vendor files
rikatz 2a3b89e
[NE-2131] Implement regular user client
rikatz 1ef54d9
[NE-2131] Fix specs to user the proper client construction
rikatz 54e4efc
[NE-2131] Add readme, implement test build
rikatz 0320130
[NE-2131] Vendor new dependencies
rikatz ce5e53c
[NE-2131] Remove gatewayapicontroller from serial tests
rikatz 9d664d3
test with ote names - should be dropped
rikatz 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| /ingress-operator | ||
| /ingress-operator-ext-tests | ||
| /pkg/manifests/manifests | ||
|
|
||
| tmp/ | ||
|
|
||
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 |
|---|---|---|
| @@ -0,0 +1,70 @@ | ||
| /* | ||
rikatz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| This command is used to run the OLMv1 tests extension for OpenShift. | ||
| It registers the OLMv1 tests with the OpenShift Tests Extension framework | ||
| and provides a command-line interface to execute them. | ||
| For further information, please refer to the documentation at: | ||
| https://github.com/openshift-eng/openshift-tests-extension/blob/main/cmd/example-tests/main.go | ||
| */ | ||
| package main | ||
rikatz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| import ( | ||
| "fmt" | ||
| "os" | ||
|
|
||
| "github.com/openshift-eng/openshift-tests-extension/pkg/cmd" | ||
| e "github.com/openshift-eng/openshift-tests-extension/pkg/extension" | ||
| g "github.com/openshift-eng/openshift-tests-extension/pkg/ginkgo" | ||
| "github.com/spf13/cobra" | ||
|
|
||
| "github.com/openshift/cluster-ingress-operator/test/extended/framework" | ||
| _ "github.com/openshift/cluster-ingress-operator/test/extended/specs" | ||
| ) | ||
|
|
||
| func main() { | ||
| registry := e.NewRegistry() | ||
| ext := e.NewExtension("openshift", "payload", "cluster-ingress-operator") | ||
|
|
||
| ext.AddSuite( | ||
| e.Suite{ | ||
| Name: "cluster-ingress-operator/parallel", | ||
| Parents: []string{"openshift/conformance/parallel"}, | ||
| Qualifiers: []string{ | ||
| `!(name.contains("[Serial]") || name.contains("[Slow]"))`, | ||
| }, | ||
| }) | ||
|
|
||
| ext.AddSuite( | ||
| e.Suite{ | ||
| Name: "cluster-ingress-operator/serial", | ||
| Parents: []string{"openshift/conformance/serial"}, | ||
| Qualifiers: []string{ | ||
| `(name.contains("[Serial]") || name.contains("[Slow]"))`, | ||
| }, | ||
| }) | ||
|
|
||
| specs, err := g.BuildExtensionTestSpecsFromOpenShiftGinkgoSuite() | ||
rikatz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| if err != nil { | ||
| panic(fmt.Sprintf("couldn't build extension test specs from ginkgo: %+v", err.Error())) | ||
| } | ||
|
|
||
| // Initialize the environment before running any tests. | ||
| specs.AddBeforeAll(func() { | ||
| framework.Init() | ||
| }) | ||
|
|
||
| ext.AddSpecs(specs) | ||
| registry.Register(ext) | ||
|
|
||
| root := &cobra.Command{ | ||
| Long: "Cluster Ingress Operator Tests Extension", | ||
| } | ||
|
|
||
| root.AddCommand(cmd.DefaultExtensionCommands(registry)...) | ||
|
|
||
| if err := func() error { | ||
| return root.Execute() | ||
| }(); err != nil { | ||
| os.Exit(1) | ||
| } | ||
| } | ||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.