Skip to content

Instantly share code, notes, and snippets.

@pweil-
Created July 30, 2020 16:13
Show Gist options
  • Save pweil-/62fb19799b9632662c96443ba87f9873 to your computer and use it in GitHub Desktop.
Save pweil-/62fb19799b9632662c96443ba87f9873 to your computer and use it in GitHub Desktop.
package e2e
import (
"github.com/kube-reporting/metering-operator/test/deployframework"
"github.com/kube-reporting/metering-operator/test/reportingframework"
"testing"
)
type PreInstallFunc func(ctx *deployframework.DeployerCtx) error
type InstallTestCase struct {
Name string
ExtraEnvVars []string
TestFunc func(t *testing.T, testReportingFramework *reportingframework.ReportingFramework)
}
var (
df *deployframework.DeployFramework
kubeConfig string
logLevel string
runTestsLocal bool
runDevSetup bool
runAllInstallTests bool
meteringOperatorImageRepo string
meteringOperatorImageTag string
reportingOperatorImageRepo string
reportingOperatorImageTag string
meteringOperatorImage string
reportingOperatorImage string
namespacePrefix string
testOutputPath string
repoPath string
repoVersion string
registryImage string
subscriptionChannel string
upgradeFromSubscriptionChannel string
catalogSourceName string
catalogSourceNamespace string
kubeNamespaceCharLimit = 63
namespacePrefixCharLimit = 10
packageName = "metering-ocp"
preUpgradeTestDirName = "pre-upgrade"
postUpgradeTestDirName = "post-upgrade"
gatherTestArtifactsScript = "gather-test-install-artifacts.sh"
testMeteringConfigManifestsPath = "/test/e2e/manifests/meteringconfigs/"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment