Skip to content

Commit

Permalink
Bug 1843407: oVirt, add oVirt as a provide to openshift tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Gal-Zaidman committed Jun 3, 2020
1 parent a637491 commit 2b37e87
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/openshift-tests/provider.go
Expand Up @@ -15,6 +15,9 @@ import (
exutil "github.com/openshift/origin/test/extended/util"
exutilcloud "github.com/openshift/origin/test/extended/util/cloud"

// Initialize ovirt as a provider
_ "github.com/openshift/origin/test/extended/util/ovirt"

// these are loading important global flags that we need to get and set
_ "k8s.io/kubernetes/test/e2e"
_ "k8s.io/kubernetes/test/e2e/lifecycle"
Expand Down
18 changes: 18 additions & 0 deletions test/extended/util/ovirt/provider.go
@@ -0,0 +1,18 @@
package ovirt

import (
"k8s.io/kubernetes/test/e2e/framework"
)

func init() {
framework.RegisterProvider("ovirt", newProvider)
}

func newProvider() (framework.ProviderInterface, error) {
return &Provider{}, nil
}

// Provider is a structure to handle ovirt for e2e testing
type Provider struct {
framework.NullProvider
}

0 comments on commit 2b37e87

Please sign in to comment.