github.com/verrazzano/verrazzano@v1.7.1/tests/e2e/metrics/deploymetrics/deploymetrics_suite_test.go (about)

     1  // Copyright (c) 2021, 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 deploymetrics
     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  var skipVerify bool
    17  var istioInjection string
    18  
    19  func init() {
    20  	flag.BoolVar(&skipDeploy, "skipDeploy", false, "skipDeploy skips the call to install the application")
    21  	flag.BoolVar(&skipUndeploy, "skipUndeploy", false, "skipUndeploy skips the call to install the application")
    22  	flag.StringVar(&namespace, "namespace", generatedNamespace, "namespace is the app namespace")
    23  	flag.BoolVar(&skipVerify, "skipVerify", false, "skipVerify skips the post deployment app validations")
    24  	flag.StringVar(&istioInjection, "istioInjection", "enabled", "istioInjection enables the injection of istio side cars")
    25  }
    26  
    27  func TestDeploymentMetrics(test *testing.T) {
    28  	t.RegisterFailHandler()
    29  	ginkgo.RunSpecs(test, "Deployment Metrics Suite")
    30  }