mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
ea8ad0b15a
The cloud package intends to implement a new integration for Terraform Cloud/Enterprise. The purpose of this integration is to better support TFC users; it will shed some overly generic UX and architecture, behavior changes that are otherwise backwards incompatible in the remote backend, and technical debt - all of which are vestiges from before Terraform Cloud existed. This initial commit is largely a porting of the existing 'remote' backend, which will serve as an underlying implementation detail and not be a typical user-level backend. This is because to re-implement the literal backend interface is orthogonal to the purpose of this integration, and can always be migrated away from later. As this backend is considered an implementation detail, it will not be registered as a declarable backend. Within these changes it is, for easy of initial development and a clean diff.
26 lines
447 B
Go
26 lines
447 B
Go
package cloud
|
|
|
|
import (
|
|
"flag"
|
|
"os"
|
|
"testing"
|
|
"time"
|
|
|
|
_ "github.com/hashicorp/terraform/internal/logging"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
flag.Parse()
|
|
|
|
// Make sure TF_FORCE_LOCAL_BACKEND is unset
|
|
os.Unsetenv("TF_FORCE_LOCAL_BACKEND")
|
|
|
|
// Reduce delays to make tests run faster
|
|
backoffMin = 1.0
|
|
backoffMax = 1.0
|
|
planConfigurationVersionsPollInterval = 1 * time.Millisecond
|
|
runPollInterval = 1 * time.Millisecond
|
|
|
|
os.Exit(m.Run())
|
|
}
|