github.com/verrazzano/verrazzano@v1.7.1/tests/e2e/examples/todo/todo_list_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 todo 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 istioInjection string 17 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 install the application") 21 flag.StringVar(&namespace, "namespace", generatedNamespace, "namespace is the app namespace") 22 flag.StringVar(&istioInjection, "istioInjection", "enabled", "istioInjection enables the injection of istio side cars") 23 } 24 25 // TestToDoListExample tests the ToDoList example 26 func TestToDoListExample(test *testing.T) { 27 t.RegisterFailHandler() 28 ginkgo.RunSpecs(test, "ToDo List Example Test Suite") 29 }