Documentation
¶
Index ¶
- func ApplyPersistent(ctx context.Context, projectID string, autoApprove bool, logger *log.Logger) error
- func ApplyPersistentCollector(ctx context.Context, projectID string, autoApprove bool, logger *log.Logger) error
- func CleanupTf(ctx context.Context, projectID string, testRunID string, logger *log.Logger) error
- type PubsubInfo
- type SubscriptionMode
- type TopicInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyPersistent ¶
Types ¶
type PubsubInfo ¶
type PubsubInfo struct {
RequestTopic TopicInfo `json:"request_topic"`
ResponseTopic TopicInfo `json:"response_topic"`
}
func SetupTf ¶
func SetupTf( ctx context.Context, projectID string, testRunID string, tfDir string, tfVars map[string]string, logger *log.Logger, ) (*PubsubInfo, error)
Runs the sequence of terraform commands most environments need, returns the parsed PubsubInfo from `terraform output -json`.
1. Run terraform init 2. Create a new terraform workspace for the test run ID 3. Run terraform apply 4. Get output results from terraform output
Cleanup method runs terraform destroy and then deletes the workspace.
type SubscriptionMode ¶
type SubscriptionMode string
const ( Push SubscriptionMode = "push" Pull SubscriptionMode = "pull" )
Click to show internal directories.
Click to hide internal directories.