You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -106,12 +107,16 @@ type CloudFunctionsGen2Cmd struct {
106
107
FunctionSourcestring`arg:"required" help:"The full path of the zip file that contains the code source that needs to run within the CloudFunction"`
107
108
}
108
109
110
+
typeCleanupCmdstruct{}
111
+
109
112
typeArgsstruct {
110
113
// This subcommand is a special case, it doesn't run any tests. It just
111
114
// applies the persistent resources which are used across tests. See
112
115
// tf/persistent/README.md for details on what is in there.
113
116
ApplyPersistent*ApplyPersistent`arg:"subcommand:apply-persistent" help:"Terraform apply the resources in tf/persistent and exit (does not run tests)."`
114
117
118
+
Cleanup*CleanupCmd`arg:"subcommand:cleanup" help:"Clean up resources for a test run"`
119
+
115
120
Local*LocalCmd`arg:"subcommand:local" help:"Deploy the test server locally with docker and execute tests"`
116
121
Gke*GkeCmd`arg:"subcommand:gke" help:"Deploy the test server on GKE and execute tests"`
117
122
Gce*GceCmd`arg:"subcommand:gce" help:"Deploy the test server on GCE and execute tests"`
@@ -135,6 +140,7 @@ type Args struct {
135
140
// resources created for debugging. If not provided, we generate a hex
136
141
// string.
137
142
TestRunIDstring`arg:"--test-run-id,env:TEST_RUN_ID" help:"Optional test run id to use to partition terraform resources"`
143
+
SkipCleanupbool`arg:"--skip-cleanup" help:"Skip automatic cleanup after tests (default: false). If enabled, you must run the 'cleanup' subcommand manually or via trigger."`
0 commit comments