github.com/verrazzano/verrazzano@v1.7.1/tests/e2e/examples/helidon/helidon_example_suite_test.go (about) 1 // Copyright (c) 2021, 2023, 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 helidon 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 var helloHelidonAppConfig string 19 var helloHelidonComponent string 20 21 func init() { 22 flag.BoolVar(&skipDeploy, "skipDeploy", false, "skipDeploy skips the call to install the application") 23 flag.BoolVar(&skipUndeploy, "skipUndeploy", false, "skipUndeploy skips the call to install the application") 24 flag.StringVar(&namespace, "namespace", generatedNamespace, "namespace is the app namespace") 25 flag.BoolVar(&skipVerify, "skipVerify", false, "skipVerify skips the post deployment app validations") 26 flag.StringVar(&istioInjection, "istioInjection", "enabled", "istioInjection enables the injection of istio side cars") 27 flag.StringVar(&helloHelidonAppConfig, "appconfig", "", "appconfig is the the path to the desired Application Configuration to use") 28 flag.StringVar(&helloHelidonComponent, "component", "", "component is the the path to the desired Component to use") 29 } 30 31 func TestHelidonExample(test *testing.T) { 32 t.RegisterFailHandler() 33 ginkgo.RunSpecs(test, "Hello Helidon Suite") 34 }