open-cluster-management.io/governance-policy-propagator@v0.13.0/main_test.go (about) 1 //go:build e2e 2 // +build e2e 3 4 // Copyright (c) 2020 Red Hat, Inc. 5 // Copyright Contributors to the Open Cluster Management project 6 7 package main 8 9 import ( 10 "os" 11 "testing" 12 ) 13 14 // TestRunMain wraps the main() function in order to build a test binary and collection coverage for 15 // E2E/Integration tests. Controller CLI flags are also passed in here. 16 func TestRunMain(t *testing.T) { 17 os.Args = append(os.Args, 18 "--leader-elect=false", 19 "--enable-webhooks=false", 20 "--compliance-history-api-port=8385", 21 "--compliance-history-api-cert=dev-tls.crt", 22 "--compliance-history-api-key=dev-tls.key", 23 ) 24 25 main() 26 }