github.com/verrazzano/verrazzano@v1.7.1/tests/e2e/workloads/oam/oam_workload_suite_test.go (about)

     1  // Copyright (c) 2022, Oracle and/or its affiliates.
     2  // Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  
     4  package oam
     5  
     6  import (
     7  	"flag"
     8  	"testing"
     9  
    10  	"github.com/onsi/ginkgo/v2"
    11  )
    12  
    13  var skipDeploy bool
    14  var skipUndeploy bool
    15  var namespace string
    16  
    17  // init initializes variables from command line arguments
    18  func init() {
    19  	flag.BoolVar(&skipDeploy, "skipDeploy", false, "skipDeploy skips the call to install the application")
    20  	flag.BoolVar(&skipUndeploy, "skipUndeploy", false, "skipUndeploy skips the call to uninstall the application")
    21  	flag.StringVar(&namespace, "namespace", generatedNamespace, "namespace is the app namespace")
    22  }
    23  
    24  // TestOAMWorkloads runs the OAM workload test suite that tests various OAM workload types
    25  func TestOAMWorkloads(test *testing.T) {
    26  	t.RegisterFailHandler()
    27  	ginkgo.RunSpecs(test, "Test Suite to validate the support for OAM workloads")
    28  }