mirror of
https://github.com/opentofu/opentofu.git
synced 2025-12-18 15:46:08 -05:00
Rename github.com/placeholderplaceholderplaceholder/opentf to github.com/opentofu/opentofu (#461)
This commit is contained in:
parent
ff3d0b2c61
commit
c8acedd885
901 changed files with 2937 additions and 2942 deletions
2
.github/scripts/get_product_version.sh
vendored
2
.github/scripts/get_product_version.sh
vendored
|
|
@ -28,7 +28,7 @@ LDFLAGS="-w -s"
|
|||
if [[ "$EXPERIMENTS_ENABLED" == 1 ]]; then
|
||||
LDFLAGS="${LDFLAGS} -X 'main.experimentsAllowed=yes'"
|
||||
fi
|
||||
LDFLAGS="${LDFLAGS} -X 'github.com/placeholderplaceholderplaceholder/opentf/version.dev=no'"
|
||||
LDFLAGS="${LDFLAGS} -X 'github.com/opentofu/opentofu/version.dev=no'"
|
||||
|
||||
echo "Building OpenTF CLI ${VERSION}"
|
||||
if [[ "$EXPERIMENTS_ENABLED" == 1 ]]; then
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ builds:
|
|||
|
||||
ldflags:
|
||||
- "-s -w"
|
||||
- "-X 'github.com/placeholderplaceholderplaceholder/opentf/version.dev=no'"
|
||||
- "-X 'github.com/opentofu/opentofu/version.dev=no'"
|
||||
|
||||
goos:
|
||||
- linux
|
||||
|
|
|
|||
4
.tfdev
4
.tfdev
|
|
@ -1,6 +1,6 @@
|
|||
version_info {
|
||||
version_var = "github.com/placeholderplaceholderplaceholder/opentf/version.Version"
|
||||
prerelease_var = "github.com/placeholderplaceholderplaceholder/opentf/version.Prerelease"
|
||||
version_var = "github.com/opentofu/opentofu/version.Version"
|
||||
prerelease_var = "github.com/opentofu/opentofu/version.Prerelease"
|
||||
}
|
||||
|
||||
version_exec = false
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ OpenTF accepts certain options passed using `ldflags` at build time which contro
|
|||
OpenTF will include a `-dev` flag when reporting its own version (ex: 1.5.0-dev) unless `version.dev` is set to `no`:
|
||||
|
||||
```
|
||||
go build -ldflags "-w -s -X 'github.com/placeholderplaceholderplaceholder/opentf/version.dev=no'" -o bin/ .
|
||||
go build -ldflags "-w -s -X 'github.com/opentofu/opentofu/version.dev=no'" -o bin/ .
|
||||
```
|
||||
|
||||
### Experimental Features
|
||||
|
|
|
|||
16
commands.go
16
commands.go
|
|
@ -14,14 +14,14 @@ import (
|
|||
"github.com/hashicorp/terraform-svchost/disco"
|
||||
"github.com/mitchellh/cli"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/addrs"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/cliconfig"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/views"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/webbrowser"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/getproviders"
|
||||
pluginDiscovery "github.com/placeholderplaceholderplaceholder/opentf/internal/plugin/discovery"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/terminal"
|
||||
"github.com/opentofu/opentofu/internal/addrs"
|
||||
"github.com/opentofu/opentofu/internal/command"
|
||||
"github.com/opentofu/opentofu/internal/command/cliconfig"
|
||||
"github.com/opentofu/opentofu/internal/command/views"
|
||||
"github.com/opentofu/opentofu/internal/command/webbrowser"
|
||||
"github.com/opentofu/opentofu/internal/getproviders"
|
||||
pluginDiscovery "github.com/opentofu/opentofu/internal/plugin/discovery"
|
||||
"github.com/opentofu/opentofu/internal/terminal"
|
||||
)
|
||||
|
||||
// runningInAutomationEnvName gives the name of an environment variable that
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ in more detail in a corresponding section below.
|
|||
Each time a user runs the `opentf` program, aside from some initial
|
||||
bootstrapping in the root package (not shown in the diagram) execution
|
||||
transfers immediately into one of the "command" implementations in
|
||||
[the `command` package](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/command).
|
||||
[the `command` package](https://pkg.go.dev/github.com/opentofu/opentofu/internal/command).
|
||||
The mapping between the user-facing command names and
|
||||
their corresponding `command` package types can be found in the `commands.go`
|
||||
file in the root of the repository.
|
||||
|
|
@ -35,7 +35,7 @@ but it applies to the main OpenTF workflow commands `opentf plan` and
|
|||
For these commands, the role of the command implementation is to read and parse
|
||||
any command line arguments, command line options, and environment variables
|
||||
that are needed for the given command and use them to produce a
|
||||
[`backend.Operation`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/backend#Operation)
|
||||
[`backend.Operation`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/backend#Operation)
|
||||
object that describes an action to be taken.
|
||||
|
||||
An _operation_ consists of:
|
||||
|
|
@ -52,12 +52,12 @@ An _operation_ consists of:
|
|||
The operation is then passed to the currently-selected
|
||||
[backend](https://www.placeholderplaceholderplaceholder.io/docs/backends/index.html). Each backend name
|
||||
corresponds to an implementation of
|
||||
[`backend.Backend`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/backend#Backend), using a
|
||||
[`backend.Backend`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/backend#Backend), using a
|
||||
mapping table in
|
||||
[the `backend/init` package](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/backend/init).
|
||||
[the `backend/init` package](https://pkg.go.dev/github.com/opentofu/opentofu/internal/backend/init).
|
||||
|
||||
Backends that are able to execute operations additionally implement
|
||||
[`backend.Enhanced`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/backend#Enhanced);
|
||||
[`backend.Enhanced`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/backend#Enhanced);
|
||||
the command-handling code calls `Operation` with the operation it has
|
||||
constructed, and then the backend is responsible for executing that action.
|
||||
|
||||
|
|
@ -68,7 +68,7 @@ backend and Terraform Cloud's backends (`remote`, `cloud`) perform operations.
|
|||
|
||||
Thus, most backends do _not_ implement this interface, and so the `command` package wraps these
|
||||
backends in an instance of
|
||||
[`local.Local`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/backend/local#Local),
|
||||
[`local.Local`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/backend/local#Local),
|
||||
causing the operation to be executed locally within the `opentf` process itself.
|
||||
|
||||
## Backends
|
||||
|
|
@ -78,41 +78,41 @@ A _backend_ determines where OpenTF should store its state snapshots.
|
|||
As described above, the `local` backend also executes operations on behalf of most other
|
||||
backends. It uses a _state manager_
|
||||
(either
|
||||
[`statemgr.Filesystem`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr#Filesystem) if the
|
||||
[`statemgr.Filesystem`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/states/statemgr#Filesystem) if the
|
||||
local backend is being used directly, or an implementation provided by whatever
|
||||
backend is being wrapped) to retrieve the current state for the workspace
|
||||
specified in the operation, then uses the _config loader_ to load and do
|
||||
initial processing/validation of the configuration specified in the
|
||||
operation. It then uses these, along with the other settings given in the
|
||||
operation, to construct a
|
||||
[`terraform.Context`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#Context),
|
||||
[`terraform.Context`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#Context),
|
||||
which is the main object that actually performs OpenTF operations.
|
||||
|
||||
The `local` backend finally calls an appropriate method on that context to
|
||||
begin execution of the relevant command, such as
|
||||
[`Plan`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#Context.Plan)
|
||||
[`Plan`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#Context.Plan)
|
||||
or
|
||||
[`Apply`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#Context.Apply), which in turn constructs a graph using a _graph builder_,
|
||||
[`Apply`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#Context.Apply), which in turn constructs a graph using a _graph builder_,
|
||||
described in a later section.
|
||||
|
||||
## Configuration Loader
|
||||
|
||||
The top-level configuration structure is represented by model types in
|
||||
[package `configs`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/configs).
|
||||
[package `configs`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/configs).
|
||||
A whole configuration (the root module plus all of its descendent modules)
|
||||
is represented by
|
||||
[`configs.Config`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/configs#Config).
|
||||
[`configs.Config`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/configs#Config).
|
||||
|
||||
The `configs` package contains some low-level functionality for constructing
|
||||
configuration objects, but the main entry point is in the sub-package
|
||||
[`configload`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/configs/configload]),
|
||||
[`configload`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/configs/configload]),
|
||||
via
|
||||
[`configload.Loader`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/configs/configload#Loader).
|
||||
[`configload.Loader`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/configs/configload#Loader).
|
||||
A loader deals with all of the details of installing child modules
|
||||
(during `opentf init`) and then locating those modules again when a
|
||||
configuration is loaded by a backend. It takes the path to a root module
|
||||
and recursively loads all of the child modules to produce a single
|
||||
[`configs.Config`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/configs#Config)
|
||||
[`configs.Config`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/configs#Config)
|
||||
representing the entire configuration.
|
||||
|
||||
OpenTF expects configuration files written in the OpenTF language, which
|
||||
|
|
@ -132,17 +132,17 @@ A _state manager_ is responsible for storing and retrieving snapshots of the
|
|||
[OpenTF state](https://www.placeholderplaceholderplaceholder.io/docs/language/state/index.html)
|
||||
for a particular workspace. Each manager is an implementation of
|
||||
some combination of interfaces in
|
||||
[the `statemgr` package](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr),
|
||||
[the `statemgr` package](https://pkg.go.dev/github.com/opentofu/opentofu/internal/states/statemgr),
|
||||
with most practical managers implementing the full set of operations
|
||||
described by
|
||||
[`statemgr.Full`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr#Full)
|
||||
[`statemgr.Full`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/states/statemgr#Full)
|
||||
provided by a _backend_. The smaller interfaces exist primarily for use in
|
||||
other function signatures to be explicit about what actions the function might
|
||||
take on the state manager; there is little reason to write a state manager
|
||||
that does not implement all of `statemgr.Full`.
|
||||
|
||||
The implementation
|
||||
[`statemgr.Filesystem`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr#Filesystem) is used
|
||||
[`statemgr.Filesystem`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/states/statemgr#Filesystem) is used
|
||||
by default (by the `local` backend) and is responsible for the familiar
|
||||
`terraform.tfstate` local file that most OpenTF users start with, before
|
||||
they switch to [remote state](https://www.placeholderplaceholderplaceholder.io/docs/language/state/remote.html).
|
||||
|
|
@ -151,7 +151,7 @@ Each of these saves and retrieves state via a remote network service
|
|||
appropriate to the backend that creates it.
|
||||
|
||||
A state manager accepts and returns a state snapshot as a
|
||||
[`states.State`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/states#State)
|
||||
[`states.State`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/states#State)
|
||||
object. The state manager is responsible for exactly how that object is
|
||||
serialized and stored, but all state managers at the time of writing use
|
||||
the same JSON serialization format, storing the resulting JSON bytes in some
|
||||
|
|
@ -160,7 +160,7 @@ kind of arbitrary blob store.
|
|||
## Graph Builder
|
||||
|
||||
A _graph builder_ is called by a
|
||||
[`terraform.Context`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#Context)
|
||||
[`terraform.Context`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#Context)
|
||||
method (e.g. `Plan` or `Apply`) to produce the graph that will be used
|
||||
to represent the necessary steps for that operation and the dependency
|
||||
relationships between them.
|
||||
|
|
@ -170,7 +170,7 @@ In most cases, the
|
|||
graphs each represent a specific object in the configuration, or something
|
||||
derived from those configuration objects. For example, each `resource` block
|
||||
in the configuration has one corresponding
|
||||
[`GraphNodeConfigResource`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#GraphNodeConfigResource)
|
||||
[`GraphNodeConfigResource`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#GraphNodeConfigResource)
|
||||
vertex representing it in the "plan" graph. (OpenTF Core uses terminology
|
||||
inconsistently, describing graph _vertices_ also as graph _nodes_ in various
|
||||
places. These both describe the same concept.)
|
||||
|
|
@ -187,23 +187,23 @@ graph from the set of changes described in the plan that is being applied.
|
|||
|
||||
The graph builders all work in terms of a sequence of _transforms_, which
|
||||
are implementations of
|
||||
[`terraform.GraphTransformer`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#GraphTransformer).
|
||||
[`terraform.GraphTransformer`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#GraphTransformer).
|
||||
Implementations of this interface just take a graph and mutate it in any
|
||||
way needed, and so the set of available transforms is quite varied. Some
|
||||
important examples include:
|
||||
|
||||
* [`ConfigTransformer`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#ConfigTransformer),
|
||||
* [`ConfigTransformer`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#ConfigTransformer),
|
||||
which creates a graph vertex for each `resource` block in the configuration.
|
||||
|
||||
* [`StateTransformer`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#StateTransformer),
|
||||
* [`StateTransformer`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#StateTransformer),
|
||||
which creates a graph vertex for each resource instance currently tracked
|
||||
in the state.
|
||||
|
||||
* [`ReferenceTransformer`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#ReferenceTransformer),
|
||||
* [`ReferenceTransformer`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#ReferenceTransformer),
|
||||
which analyses the configuration to find dependencies between resources and
|
||||
other objects and creates any necessary "happens after" edges for these.
|
||||
|
||||
* [`ProviderTransformer`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#ProviderTransformer),
|
||||
* [`ProviderTransformer`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#ProviderTransformer),
|
||||
which associates each resource or resource instance with exactly one
|
||||
provider configuration (implementing
|
||||
[the inheritance rules](https://www.placeholderplaceholderplaceholder.io/docs/language/modules/develop/providers.html))
|
||||
|
|
@ -217,7 +217,7 @@ builder uses a different subset of these depending on the needs of the
|
|||
operation that is being performed.
|
||||
|
||||
The result of graph building is a
|
||||
[`terraform.Graph`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#Graph), which
|
||||
[`terraform.Graph`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#Graph), which
|
||||
can then be processed using a _graph walker_.
|
||||
|
||||
## Graph Walk
|
||||
|
|
@ -225,17 +225,17 @@ can then be processed using a _graph walker_.
|
|||
The process of walking the graph visits each vertex of that graph in a way
|
||||
which respects the "happens after" edges in the graph. The walk algorithm
|
||||
itself is implemented in
|
||||
[the low-level `dag` package](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/dag#AcyclicGraph.Walk)
|
||||
[the low-level `dag` package](https://pkg.go.dev/github.com/opentofu/opentofu/internal/dag#AcyclicGraph.Walk)
|
||||
(where "DAG" is short for [_Directed Acyclic Graph_](https://en.wikipedia.org/wiki/Directed_acyclic_graph)), in
|
||||
[`AcyclicGraph.Walk`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/dag#AcyclicGraph.Walk).
|
||||
[`AcyclicGraph.Walk`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/dag#AcyclicGraph.Walk).
|
||||
However, the "interesting" OpenTF walk functionality is implemented in
|
||||
[`terraform.ContextGraphWalker`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#ContextGraphWalker),
|
||||
[`terraform.ContextGraphWalker`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#ContextGraphWalker),
|
||||
which implements a small set of higher-level operations that are performed
|
||||
during the graph walk:
|
||||
|
||||
* `EnterPath` is called once for each module in the configuration, taking a
|
||||
module address and returning a
|
||||
[`terraform.EvalContext`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#EvalContext)
|
||||
[`terraform.EvalContext`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#EvalContext)
|
||||
that tracks objects within that module. `terraform.Context` is the _global_
|
||||
context for the entire operation, while `terraform.EvalContext` is a
|
||||
context for processing within a single module, and is the primary means
|
||||
|
|
@ -247,7 +247,7 @@ will evaluate multiple vertices concurrently. Vertex evaluation code must
|
|||
therefore make careful use of concurrency primitives such as mutexes in order
|
||||
to coordinate access to shared objects such as the `states.State` object.
|
||||
In most cases, we use the helper wrapper
|
||||
[`states.SyncState`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/states#SyncState)
|
||||
[`states.SyncState`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/states#SyncState)
|
||||
to safely implement concurrent reads and writes from the shared state.
|
||||
|
||||
## Vertex Evaluation
|
||||
|
|
@ -280,27 +280,27 @@ a plan operation would include the following high-level steps:
|
|||
this operation.
|
||||
|
||||
Each execution step for a vertex is an implementation of
|
||||
[`terraform.Execute`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/erraform#Execute).
|
||||
[`terraform.Execute`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/erraform#Execute).
|
||||
As with graph transforms, the behavior of these implementations varies widely:
|
||||
whereas graph transforms can take any action against the graph, an `Execute`
|
||||
implementation can take any action against the `EvalContext`.
|
||||
|
||||
The implementation of `terraform.EvalContext` used in real processing
|
||||
(as opposed to testing) is
|
||||
[`terraform.BuiltinEvalContext`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#BuiltinEvalContext).
|
||||
[`terraform.BuiltinEvalContext`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#BuiltinEvalContext).
|
||||
It provides coordinated access to plugins, the current state, and the current
|
||||
plan via the `EvalContext` interface methods.
|
||||
|
||||
In order to be executed, a vertex must implement
|
||||
[`terraform.GraphNodeExecutable`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#GraphNodeExecutable),
|
||||
[`terraform.GraphNodeExecutable`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#GraphNodeExecutable),
|
||||
which has a single `Execute` method that handles. There are numerous `Execute`
|
||||
implementations with different behaviors, but some prominent examples are:
|
||||
|
||||
* [NodePlannableResource.Execute](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#NodePlannableResourceInstance.Execute), which handles the `plan` operation.
|
||||
* [NodePlannableResource.Execute](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#NodePlannableResourceInstance.Execute), which handles the `plan` operation.
|
||||
|
||||
* [`NodeApplyableResourceInstance.Execute`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#NodeApplyableResourceInstance.Execute), which handles the main `apply` operation.
|
||||
* [`NodeApplyableResourceInstance.Execute`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#NodeApplyableResourceInstance.Execute), which handles the main `apply` operation.
|
||||
|
||||
* [`NodeDestroyResourceInstance.Execute`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#EvalWriteState), which handles the main `destroy` operation.
|
||||
* [`NodeDestroyResourceInstance.Execute`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#EvalWriteState), which handles the main `destroy` operation.
|
||||
|
||||
A vertex must complete successfully before the graph walk will begin evaluation
|
||||
for other vertices that have "happens after" edges. Evaluation can fail with one
|
||||
|
|
@ -320,11 +320,11 @@ The high-level process for expression evaluation is:
|
|||
to. For example, the expression `aws_instance.example[1]` refers to one of
|
||||
the instances created by a `resource "aws_instance" "example"` block in
|
||||
configuration. This analysis is performed by
|
||||
[`lang.References`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/lang#References),
|
||||
[`lang.References`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/lang#References),
|
||||
or more often one of the helper wrappers around it:
|
||||
[`lang.ReferencesInBlock`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/lang#ReferencesInBlock)
|
||||
[`lang.ReferencesInBlock`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/lang#ReferencesInBlock)
|
||||
or
|
||||
[`lang.ReferencesInExpr`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/lang#ReferencesInExpr)
|
||||
[`lang.ReferencesInExpr`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/lang#ReferencesInExpr)
|
||||
|
||||
1. Retrieve from the state the data for the objects that are referred to and
|
||||
create a lookup table of the values from these objects that the
|
||||
|
|
@ -338,11 +338,11 @@ The high-level process for expression evaluation is:
|
|||
object) against the data and function lookup tables.
|
||||
|
||||
In practice, steps 2 through 4 are usually run all together using one
|
||||
of the methods on [`lang.Scope`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/lang#Scope);
|
||||
of the methods on [`lang.Scope`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/lang#Scope);
|
||||
most commonly,
|
||||
[`lang.EvalBlock`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/lang#Scope.EvalBlock)
|
||||
[`lang.EvalBlock`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/lang#Scope.EvalBlock)
|
||||
or
|
||||
[`lang.EvalExpr`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/lang#Scope.EvalExpr).
|
||||
[`lang.EvalExpr`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/lang#Scope.EvalExpr).
|
||||
|
||||
Expression evaluation produces a dynamic value represented as a
|
||||
[`cty.Value`](https://pkg.go.dev/github.com/zclconf/go-cty/cty#Value).
|
||||
|
|
@ -367,7 +367,7 @@ known when the main graph is constructed, but become known while evaluating
|
|||
other vertices in the main graph.
|
||||
|
||||
This special behavior applies to vertex objects that implement
|
||||
[`terraform.GraphNodeDynamicExpandable`](https://pkg.go.dev/github.com/placeholderplaceholderplaceholder/opentf/internal/opentf#GraphNodeDynamicExpandable).
|
||||
[`terraform.GraphNodeDynamicExpandable`](https://pkg.go.dev/github.com/opentofu/opentofu/internal/opentf#GraphNodeDynamicExpandable).
|
||||
Such vertices have their own nested _graph builder_, _graph walk_,
|
||||
and _vertex evaluation_ steps, with the same behaviors as described in these
|
||||
sections for the main graph. The difference is in which graph transforms
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
// branch or any other development branch.
|
||||
//
|
||||
syntax = "proto3";
|
||||
option go_package = "github.com/placeholderplaceholderplaceholder/opentf/internal/tfplugin5";
|
||||
option go_package = "github.com/opentofu/opentofu/internal/tfplugin5";
|
||||
|
||||
package tfplugin5;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
// branch or any other development branch.
|
||||
//
|
||||
syntax = "proto3";
|
||||
option go_package = "github.com/placeholderplaceholderplaceholder/opentf/internal/tfplugin5";
|
||||
option go_package = "github.com/opentofu/opentofu/internal/tfplugin5";
|
||||
|
||||
package tfplugin5;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
// branch or any other development branch.
|
||||
//
|
||||
syntax = "proto3";
|
||||
option go_package = "github.com/placeholderplaceholderplaceholder/opentf/internal/tfplugin5";
|
||||
option go_package = "github.com/opentofu/opentofu/internal/tfplugin5";
|
||||
|
||||
package tfplugin5;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
// branch or any other development branch.
|
||||
//
|
||||
syntax = "proto3";
|
||||
option go_package = "github.com/placeholderplaceholderplaceholder/opentf/internal/tfplugin6";
|
||||
option go_package = "github.com/opentofu/opentofu/internal/tfplugin6";
|
||||
|
||||
package tfplugin6;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
// branch or any other development branch.
|
||||
//
|
||||
syntax = "proto3";
|
||||
option go_package = "github.com/placeholderplaceholderplaceholder/opentf/internal/tfplugin6";
|
||||
option go_package = "github.com/opentofu/opentofu/internal/tfplugin6";
|
||||
|
||||
package tfplugin6;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
// branch or any other development branch.
|
||||
//
|
||||
syntax = "proto3";
|
||||
option go_package = "github.com/placeholderplaceholderplaceholder/opentf/internal/tfplugin6";
|
||||
option go_package = "github.com/opentofu/opentofu/internal/tfplugin6";
|
||||
|
||||
package tfplugin6;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
// branch or any other development branch.
|
||||
//
|
||||
syntax = "proto3";
|
||||
option go_package = "github.com/placeholderplaceholderplaceholder/opentf/internal/tfplugin6";
|
||||
option go_package = "github.com/opentofu/opentofu/internal/tfplugin6";
|
||||
|
||||
package tfplugin6;
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
// branch or any other development branch.
|
||||
//
|
||||
syntax = "proto3";
|
||||
option go_package = "github.com/placeholderplaceholderplaceholder/opentf/internal/tfplugin6";
|
||||
option go_package = "github.com/opentofu/opentofu/internal/tfplugin6";
|
||||
|
||||
package tfplugin6;
|
||||
|
||||
|
|
|
|||
2
go.mod
2
go.mod
|
|
@ -1,4 +1,4 @@
|
|||
module github.com/placeholderplaceholderplaceholder/opentf
|
||||
module github.com/opentofu/opentofu
|
||||
|
||||
require (
|
||||
cloud.google.com/go/kms v1.10.1
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
package addrs
|
||||
|
||||
import "github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
import "github.com/opentofu/opentofu/internal/tfdiags"
|
||||
|
||||
// DiagnosticExtraCheckRule provides an interface for diagnostic ExtraInfo to
|
||||
// retrieve an embedded CheckRule from within a tfdiags.Diagnostic.
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ import (
|
|||
|
||||
"github.com/hashicorp/hcl/v2"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
func TestCheckRuleDiagnosticExtra_WrapsExtra(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import (
|
|||
"github.com/hashicorp/hcl/v2"
|
||||
"github.com/hashicorp/hcl/v2/hclsyntax"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
// Checkable is an interface implemented by all address types that can contain
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import (
|
|||
"github.com/zclconf/go-cty/cty"
|
||||
"github.com/zclconf/go-cty/cty/gocty"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
// ModuleInstance is an address for a particular module instance within the
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import (
|
|||
"strings"
|
||||
|
||||
tfaddr "github.com/hashicorp/terraform-registry-address"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/getmodules"
|
||||
"github.com/opentofu/opentofu/internal/getmodules"
|
||||
)
|
||||
|
||||
// ModuleSource is the general type for all three of the possible module source
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import (
|
|||
"fmt"
|
||||
|
||||
"github.com/hashicorp/hcl/v2"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
// MoveEndpoint is to AbsMoveable and ConfigMoveable what Target is to
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import (
|
|||
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
// anyKeyImpl is the InstanceKey representation indicating a wildcard, which
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import (
|
|||
|
||||
"github.com/hashicorp/hcl/v2"
|
||||
"github.com/hashicorp/hcl/v2/hclsyntax"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
func TestModuleInstanceMoveDestination(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/hashicorp/hcl/v2"
|
||||
"github.com/hashicorp/hcl/v2/hclsyntax"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
// OutputValue is the address of an output value, in the context of the module
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import (
|
|||
"github.com/hashicorp/hcl/v2/hclsyntax"
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
// Reference describes a reference to an address with source location
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import (
|
|||
"github.com/hashicorp/hcl/v2/hclsyntax"
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
func TestParseRefInTestingScope(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/hashicorp/hcl/v2/hclsyntax"
|
||||
|
||||
"github.com/hashicorp/hcl/v2"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
// Target describes a targeted address with source location information.
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/go-test/deep"
|
||||
"github.com/hashicorp/hcl/v2"
|
||||
"github.com/hashicorp/hcl/v2/hclsyntax"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
func TestParseTarget(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import (
|
|||
"github.com/hashicorp/hcl/v2"
|
||||
tfaddr "github.com/hashicorp/terraform-registry-address"
|
||||
svchost "github.com/hashicorp/terraform-svchost"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
// Provider encapsulates a single provider type. In the future this will be
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
|
||||
"github.com/hashicorp/hcl/v2"
|
||||
|
|
|
|||
|
|
@ -15,19 +15,19 @@ import (
|
|||
|
||||
svchost "github.com/hashicorp/terraform-svchost"
|
||||
"github.com/mitchellh/go-homedir"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/addrs"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/clistate"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/views"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs/configload"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs/configschema"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/depsfile"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/opentf"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans/planfile"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/addrs"
|
||||
"github.com/opentofu/opentofu/internal/command/clistate"
|
||||
"github.com/opentofu/opentofu/internal/command/views"
|
||||
"github.com/opentofu/opentofu/internal/configs"
|
||||
"github.com/opentofu/opentofu/internal/configs/configload"
|
||||
"github.com/opentofu/opentofu/internal/configs/configschema"
|
||||
"github.com/opentofu/opentofu/internal/depsfile"
|
||||
"github.com/opentofu/opentofu/internal/opentf"
|
||||
"github.com/opentofu/opentofu/internal/plans"
|
||||
"github.com/opentofu/opentofu/internal/plans/planfile"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import (
|
|||
"github.com/mitchellh/cli"
|
||||
"github.com/mitchellh/colorstring"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/opentf"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/terminal"
|
||||
"github.com/opentofu/opentofu/internal/opentf"
|
||||
"github.com/opentofu/opentofu/internal/terminal"
|
||||
)
|
||||
|
||||
// CLI is an optional interface that can be implemented to be initialized
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ package init
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend/remote-state/inmem"
|
||||
"github.com/opentofu/opentofu/internal/backend/remote-state/inmem"
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -9,23 +9,23 @@ import (
|
|||
"sync"
|
||||
|
||||
"github.com/hashicorp/terraform-svchost/disco"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
|
||||
backendLocal "github.com/placeholderplaceholderplaceholder/opentf/internal/backend/local"
|
||||
backendRemote "github.com/placeholderplaceholderplaceholder/opentf/internal/backend/remote"
|
||||
backendAzure "github.com/placeholderplaceholderplaceholder/opentf/internal/backend/remote-state/azure"
|
||||
backendConsul "github.com/placeholderplaceholderplaceholder/opentf/internal/backend/remote-state/consul"
|
||||
backendCos "github.com/placeholderplaceholderplaceholder/opentf/internal/backend/remote-state/cos"
|
||||
backendGCS "github.com/placeholderplaceholderplaceholder/opentf/internal/backend/remote-state/gcs"
|
||||
backendHTTP "github.com/placeholderplaceholderplaceholder/opentf/internal/backend/remote-state/http"
|
||||
backendInmem "github.com/placeholderplaceholderplaceholder/opentf/internal/backend/remote-state/inmem"
|
||||
backendKubernetes "github.com/placeholderplaceholderplaceholder/opentf/internal/backend/remote-state/kubernetes"
|
||||
backendOSS "github.com/placeholderplaceholderplaceholder/opentf/internal/backend/remote-state/oss"
|
||||
backendPg "github.com/placeholderplaceholderplaceholder/opentf/internal/backend/remote-state/pg"
|
||||
backendS3 "github.com/placeholderplaceholderplaceholder/opentf/internal/backend/remote-state/s3"
|
||||
backendCloud "github.com/placeholderplaceholderplaceholder/opentf/internal/cloud"
|
||||
backendLocal "github.com/opentofu/opentofu/internal/backend/local"
|
||||
backendRemote "github.com/opentofu/opentofu/internal/backend/remote"
|
||||
backendAzure "github.com/opentofu/opentofu/internal/backend/remote-state/azure"
|
||||
backendConsul "github.com/opentofu/opentofu/internal/backend/remote-state/consul"
|
||||
backendCos "github.com/opentofu/opentofu/internal/backend/remote-state/cos"
|
||||
backendGCS "github.com/opentofu/opentofu/internal/backend/remote-state/gcs"
|
||||
backendHTTP "github.com/opentofu/opentofu/internal/backend/remote-state/http"
|
||||
backendInmem "github.com/opentofu/opentofu/internal/backend/remote-state/inmem"
|
||||
backendKubernetes "github.com/opentofu/opentofu/internal/backend/remote-state/kubernetes"
|
||||
backendOSS "github.com/opentofu/opentofu/internal/backend/remote-state/oss"
|
||||
backendPg "github.com/opentofu/opentofu/internal/backend/remote-state/pg"
|
||||
backendS3 "github.com/opentofu/opentofu/internal/backend/remote-state/s3"
|
||||
backendCloud "github.com/opentofu/opentofu/internal/cloud"
|
||||
)
|
||||
|
||||
// backends is the list of available backends. This is a global variable
|
||||
|
|
|
|||
|
|
@ -13,13 +13,13 @@ import (
|
|||
"sort"
|
||||
"sync"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/views"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs/configschema"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/logging"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/opentf"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/command/views"
|
||||
"github.com/opentofu/opentofu/internal/configs/configschema"
|
||||
"github.com/opentofu/opentofu/internal/logging"
|
||||
"github.com/opentofu/opentofu/internal/opentf"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -10,16 +10,16 @@ import (
|
|||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/addrs"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/views"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/logging"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/opentf"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statefile"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/addrs"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/command/views"
|
||||
"github.com/opentofu/opentofu/internal/logging"
|
||||
"github.com/opentofu/opentofu/internal/opentf"
|
||||
"github.com/opentofu/opentofu/internal/plans"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/statefile"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
// test hook called between plan+apply during opApply
|
||||
|
|
|
|||
|
|
@ -14,20 +14,20 @@ import (
|
|||
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/addrs"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/arguments"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/clistate"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/views"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs/configschema"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/depsfile"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/initwd"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/providers"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/terminal"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/addrs"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/command/arguments"
|
||||
"github.com/opentofu/opentofu/internal/command/clistate"
|
||||
"github.com/opentofu/opentofu/internal/command/views"
|
||||
"github.com/opentofu/opentofu/internal/configs/configschema"
|
||||
"github.com/opentofu/opentofu/internal/depsfile"
|
||||
"github.com/opentofu/opentofu/internal/initwd"
|
||||
"github.com/opentofu/opentofu/internal/plans"
|
||||
"github.com/opentofu/opentofu/internal/providers"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/terminal"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
func TestLocal_applyBasic(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -10,13 +10,13 @@ import (
|
|||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs/configload"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/opentf"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans/planfile"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/configs"
|
||||
"github.com/opentofu/opentofu/internal/configs/configload"
|
||||
"github.com/opentofu/opentofu/internal/opentf"
|
||||
"github.com/opentofu/opentofu/internal/plans/planfile"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -11,21 +11,21 @@ import (
|
|||
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/arguments"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/clistate"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/views"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs/configload"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs/configschema"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/initwd"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/opentf"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans/planfile"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statefile"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/terminal"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/command/arguments"
|
||||
"github.com/opentofu/opentofu/internal/command/clistate"
|
||||
"github.com/opentofu/opentofu/internal/command/views"
|
||||
"github.com/opentofu/opentofu/internal/configs/configload"
|
||||
"github.com/opentofu/opentofu/internal/configs/configschema"
|
||||
"github.com/opentofu/opentofu/internal/initwd"
|
||||
"github.com/opentofu/opentofu/internal/opentf"
|
||||
"github.com/opentofu/opentofu/internal/plans"
|
||||
"github.com/opentofu/opentofu/internal/plans/planfile"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/statefile"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/terminal"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
func TestLocalRun(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -9,15 +9,15 @@ import (
|
|||
"io"
|
||||
"log"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/genconfig"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/logging"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/opentf"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans/planfile"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statefile"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/genconfig"
|
||||
"github.com/opentofu/opentofu/internal/logging"
|
||||
"github.com/opentofu/opentofu/internal/opentf"
|
||||
"github.com/opentofu/opentofu/internal/plans"
|
||||
"github.com/opentofu/opentofu/internal/plans/planfile"
|
||||
"github.com/opentofu/opentofu/internal/states/statefile"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
func (b *Local) opPlan(
|
||||
|
|
|
|||
|
|
@ -12,20 +12,20 @@ import (
|
|||
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/addrs"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/arguments"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/clistate"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/views"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs/configschema"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/depsfile"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/initwd"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/opentf"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/plans/planfile"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/providers"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/terminal"
|
||||
"github.com/opentofu/opentofu/internal/addrs"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/command/arguments"
|
||||
"github.com/opentofu/opentofu/internal/command/clistate"
|
||||
"github.com/opentofu/opentofu/internal/command/views"
|
||||
"github.com/opentofu/opentofu/internal/configs/configschema"
|
||||
"github.com/opentofu/opentofu/internal/depsfile"
|
||||
"github.com/opentofu/opentofu/internal/initwd"
|
||||
"github.com/opentofu/opentofu/internal/opentf"
|
||||
"github.com/opentofu/opentofu/internal/plans"
|
||||
"github.com/opentofu/opentofu/internal/plans/planfile"
|
||||
"github.com/opentofu/opentofu/internal/providers"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/terminal"
|
||||
)
|
||||
|
||||
func TestLocal_planBasic(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -9,11 +9,11 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/logging"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/logging"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
func (b *Local) opRefresh(
|
||||
|
|
|
|||
|
|
@ -9,18 +9,18 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/addrs"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/arguments"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/clistate"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/command/views"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs/configschema"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/depsfile"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/initwd"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/opentf"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/providers"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/terminal"
|
||||
"github.com/opentofu/opentofu/internal/addrs"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/command/arguments"
|
||||
"github.com/opentofu/opentofu/internal/command/clistate"
|
||||
"github.com/opentofu/opentofu/internal/command/views"
|
||||
"github.com/opentofu/opentofu/internal/configs/configschema"
|
||||
"github.com/opentofu/opentofu/internal/depsfile"
|
||||
"github.com/opentofu/opentofu/internal/initwd"
|
||||
"github.com/opentofu/opentofu/internal/opentf"
|
||||
"github.com/opentofu/opentofu/internal/providers"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/terminal"
|
||||
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statefile"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states/statefile"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
func TestLocal_impl(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ package local
|
|||
import (
|
||||
"log"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
)
|
||||
|
||||
// backend.CLI impl.
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/opentf"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/opentf"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
// StateHook is a hook that continuously updates the state by calling
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/opentf"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/opentf"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
func TestStateHook_impl(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import (
|
|||
"os"
|
||||
"testing"
|
||||
|
||||
_ "github.com/placeholderplaceholderplaceholder/opentf/internal/logging"
|
||||
_ "github.com/opentofu/opentofu/internal/logging"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
|
|
|
|||
|
|
@ -9,13 +9,13 @@ import (
|
|||
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/addrs"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs/configschema"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/opentf"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/providers"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/addrs"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/configs/configschema"
|
||||
"github.com/opentofu/opentofu/internal/opentf"
|
||||
"github.com/opentofu/opentofu/internal/providers"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
// TestLocal returns a configured Local struct with temporary paths and
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ import (
|
|||
"github.com/hashicorp/go-azure-helpers/authentication"
|
||||
"github.com/hashicorp/go-azure-helpers/sender"
|
||||
"github.com/manicminer/hamilton/environments"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/httpclient"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/version"
|
||||
"github.com/opentofu/opentofu/internal/httpclient"
|
||||
"github.com/opentofu/opentofu/version"
|
||||
"github.com/tombuildsstuff/giovanni/storage/2018-11-09/blob/blobs"
|
||||
"github.com/tombuildsstuff/giovanni/storage/2018-11-09/blob/containers"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import (
|
|||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/legacy/helper/schema"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/legacy/helper/schema"
|
||||
)
|
||||
|
||||
// New creates a new backend for Azure remote state.
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ import (
|
|||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
"github.com/tombuildsstuff/giovanni/storage/2018-11-09/blob/blobs"
|
||||
"github.com/tombuildsstuff/giovanni/storage/2018-11-09/blob/containers"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ import (
|
|||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/legacy/helper/acctest"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/legacy/helper/acctest"
|
||||
)
|
||||
|
||||
func TestBackend_impl(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ import (
|
|||
|
||||
"github.com/hashicorp/go-multierror"
|
||||
"github.com/hashicorp/go-uuid"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
"github.com/tombuildsstuff/giovanni/storage/2018-11-09/blob/blobs"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ import (
|
|||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/legacy/helper/acctest"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/legacy/helper/acctest"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/tombuildsstuff/giovanni/storage/2018-11-09/blob/blobs"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import (
|
|||
"net/http/httputil"
|
||||
|
||||
"github.com/Azure/go-autorest/autorest"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/logging"
|
||||
"github.com/opentofu/opentofu/internal/logging"
|
||||
)
|
||||
|
||||
func buildSender() autorest.Sender {
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ import (
|
|||
"time"
|
||||
|
||||
consulapi "github.com/hashicorp/consul/api"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/legacy/helper/schema"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/legacy/helper/schema"
|
||||
)
|
||||
|
||||
// New creates a new backend for Consul remote state.
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import (
|
|||
"time"
|
||||
|
||||
"github.com/hashicorp/consul/sdk/testutil"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
)
|
||||
|
||||
func TestBackend_impl(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ import (
|
|||
|
||||
consulapi "github.com/hashicorp/consul/api"
|
||||
multierror "github.com/hashicorp/go-multierror"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -16,9 +16,9 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
func TestRemoteClient_impl(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/legacy/helper/schema"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/legacy/helper/schema"
|
||||
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common"
|
||||
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/profile"
|
||||
sts "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/sts/v20180813"
|
||||
|
|
|
|||
|
|
@ -10,10 +10,10 @@ import (
|
|||
"sort"
|
||||
"strings"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
// Define file suffix
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -16,8 +16,8 @@ import (
|
|||
"time"
|
||||
|
||||
multierror "github.com/hashicorp/go-multierror"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
tag "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tag/v20180813"
|
||||
"github.com/tencentyun/cos-go-sdk-v5"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -13,10 +13,10 @@ import (
|
|||
"strings"
|
||||
|
||||
"cloud.google.com/go/storage"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/httpclient"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/legacy/helper/schema"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/version"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/httpclient"
|
||||
"github.com/opentofu/opentofu/internal/legacy/helper/schema"
|
||||
"github.com/opentofu/opentofu/version"
|
||||
"golang.org/x/oauth2"
|
||||
"google.golang.org/api/impersonate"
|
||||
"google.golang.org/api/option"
|
||||
|
|
|
|||
|
|
@ -12,10 +12,10 @@ import (
|
|||
"cloud.google.com/go/storage"
|
||||
"google.golang.org/api/iterator"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -15,10 +15,10 @@ import (
|
|||
|
||||
kms "cloud.google.com/go/kms/apiv1"
|
||||
"cloud.google.com/go/storage"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/httpclient"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/version"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/httpclient"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/version"
|
||||
"google.golang.org/api/option"
|
||||
kmspb "google.golang.org/genproto/googleapis/cloud/kms/v1"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ import (
|
|||
|
||||
"cloud.google.com/go/storage"
|
||||
multierror "github.com/hashicorp/go-multierror"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -16,11 +16,11 @@ import (
|
|||
|
||||
"github.com/hashicorp/go-retryablehttp"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/legacy/helper/schema"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/logging"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/legacy/helper/schema"
|
||||
"github.com/opentofu/opentofu/internal/logging"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
func New() backend.Backend {
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs"
|
||||
"github.com/opentofu/opentofu/internal/configs"
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
)
|
||||
|
||||
func TestBackend_impl(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ import (
|
|||
"net/url"
|
||||
|
||||
"github.com/hashicorp/go-retryablehttp"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
// httpClient is a remote client that stores data in Consul or HTTP REST.
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/hashicorp/go-retryablehttp"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
)
|
||||
|
||||
func TestHTTPClient_impl(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -26,10 +26,10 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/golang/mock/gomock"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/addrs"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/addrs"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/configs"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -11,11 +11,11 @@ import (
|
|||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/legacy/helper/schema"
|
||||
statespkg "github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/legacy/helper/schema"
|
||||
statespkg "github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
// we keep the states and locks in package-level variables, so that they can be
|
||||
|
|
|
|||
|
|
@ -10,11 +10,11 @@ import (
|
|||
|
||||
"github.com/hashicorp/hcl/v2"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
statespkg "github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
statespkg "github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
|
||||
_ "github.com/placeholderplaceholderplaceholder/opentf/internal/logging"
|
||||
_ "github.com/opentofu/opentofu/internal/logging"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ package inmem
|
|||
import (
|
||||
"crypto/md5"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
// RemoteClient is a remote client that stores data in memory for testing.
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import (
|
|||
"testing"
|
||||
|
||||
"github.com/hashicorp/hcl/v2"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
)
|
||||
|
||||
func TestRemoteClient_impl(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -12,10 +12,10 @@ import (
|
|||
"path/filepath"
|
||||
|
||||
"github.com/mitchellh/go-homedir"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/httpclient"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/legacy/helper/schema"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/version"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/httpclient"
|
||||
"github.com/opentofu/opentofu/internal/legacy/helper/schema"
|
||||
"github.com/opentofu/opentofu/version"
|
||||
k8sSchema "k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"k8s.io/client-go/dynamic"
|
||||
"k8s.io/client-go/kubernetes"
|
||||
|
|
|
|||
|
|
@ -9,10 +9,10 @@ import (
|
|||
"fmt"
|
||||
"sort"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
k8serrors "k8s.io/apimachinery/pkg/api/errors"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"
|
||||
|
|
|
|||
|
|
@ -6,9 +6,9 @@ package kubernetes
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
func TestRemoteClient_impl(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -31,10 +31,10 @@ import (
|
|||
"github.com/jmespath/go-jmespath"
|
||||
"github.com/mitchellh/go-homedir"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/httpclient"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/legacy/helper/schema"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/version"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/httpclient"
|
||||
"github.com/opentofu/opentofu/internal/legacy/helper/schema"
|
||||
"github.com/opentofu/opentofu/version"
|
||||
)
|
||||
|
||||
// Deprecated in favor of flattening assume_role_* options
|
||||
|
|
|
|||
|
|
@ -14,10 +14,10 @@ import (
|
|||
"github.com/aliyun/aliyun-oss-go-sdk/oss"
|
||||
"github.com/aliyun/aliyun-tablestore-go-sdk/tablestore"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ import (
|
|||
|
||||
"github.com/aliyun/aliyun-oss-go-sdk/oss"
|
||||
"github.com/aliyun/aliyun-tablestore-go-sdk/tablestore"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs/hcl2shim"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/configs/hcl2shim"
|
||||
)
|
||||
|
||||
// verify that we are doing ACC tests or the OSS tests specifically
|
||||
|
|
|
|||
|
|
@ -19,8 +19,8 @@ import (
|
|||
uuid "github.com/hashicorp/go-uuid"
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -12,10 +12,10 @@ import (
|
|||
"bytes"
|
||||
"crypto/md5"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statefile"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statefile"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
// NOTE: Before running this testcase, please create a OTS instance called 'tf-oss-remote'
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ import (
|
|||
"strconv"
|
||||
|
||||
"github.com/lib/pq"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/legacy/helper/schema"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/legacy/helper/schema"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@ package pg
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
func (b *Backend) Workspaces() ([]string, error) {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
package pg
|
||||
|
||||
// Create the test database: createdb terraform_backend_pg_test
|
||||
// TF_ACC=1 GO111MODULE=on go test -v -mod=vendor -timeout=2m -parallel=4 github.com/placeholderplaceholderplaceholder/opentf/backend/remote-state/pg
|
||||
// TF_ACC=1 GO111MODULE=on go test -v -mod=vendor -timeout=2m -parallel=4 github.com/opentofu/opentofu/backend/remote-state/pg
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
|
|
@ -16,10 +16,10 @@ import (
|
|||
|
||||
"github.com/hashicorp/hcl/v2/hcldec"
|
||||
"github.com/lib/pq"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
// Function to skip a test unless in ACCeptance test mode.
|
||||
|
|
|
|||
|
|
@ -10,8 +10,8 @@ import (
|
|||
|
||||
uuid "github.com/hashicorp/go-uuid"
|
||||
_ "github.com/lib/pq"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
// RemoteClient is a remote client that stores data in a Postgres database
|
||||
|
|
|
|||
|
|
@ -4,15 +4,15 @@
|
|||
package pg
|
||||
|
||||
// Create the test database: createdb terraform_backend_pg_test
|
||||
// TF_ACC=1 GO111MODULE=on go test -v -mod=vendor -timeout=2m -parallel=4 github.com/placeholderplaceholderplaceholder/opentf/backend/remote-state/pg
|
||||
// TF_ACC=1 GO111MODULE=on go test -v -mod=vendor -timeout=2m -parallel=4 github.com/opentofu/opentofu/backend/remote-state/pg
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"fmt"
|
||||
"testing"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
)
|
||||
|
||||
func TestRemoteClient_impl(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -13,12 +13,12 @@ import (
|
|||
"github.com/aws/aws-sdk-go/service/dynamodb"
|
||||
"github.com/aws/aws-sdk-go/service/s3"
|
||||
awsbase "github.com/hashicorp/aws-sdk-go-base"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs/configschema"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/httpclient"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/logging"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/version"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/configs/configschema"
|
||||
"github.com/opentofu/opentofu/internal/httpclient"
|
||||
"github.com/opentofu/opentofu/internal/logging"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/version"
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
"github.com/zclconf/go-cty/cty/gocty"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -12,8 +12,8 @@ import (
|
|||
awsbase "github.com/hashicorp/aws-sdk-go-base"
|
||||
mockdata "github.com/hashicorp/aws-sdk-go-base"
|
||||
servicemocks "github.com/hashicorp/aws-sdk-go-base"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs/hcl2shim"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/configs/hcl2shim"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
type DiagsValidator func(*testing.T, tfdiags.Diagnostics)
|
||||
|
|
|
|||
|
|
@ -14,10 +14,10 @@ import (
|
|||
"github.com/aws/aws-sdk-go/aws/awserr"
|
||||
"github.com/aws/aws-sdk-go/service/s3"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
func (b *Backend) Workspaces() ([]string, error) {
|
||||
|
|
|
|||
|
|
@ -18,12 +18,12 @@ import (
|
|||
"github.com/aws/aws-sdk-go/service/s3"
|
||||
"github.com/google/go-cmp/cmp"
|
||||
awsbase "github.com/hashicorp/aws-sdk-go-base"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs/configschema"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/configs/hcl2shim"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/configs/configschema"
|
||||
"github.com/opentofu/opentofu/internal/configs/hcl2shim"
|
||||
"github.com/opentofu/opentofu/internal/states"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
"github.com/zclconf/go-cty/cty"
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -21,8 +21,8 @@ import (
|
|||
"github.com/aws/aws-sdk-go/service/s3"
|
||||
multierror "github.com/hashicorp/go-multierror"
|
||||
uuid "github.com/hashicorp/go-uuid"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
// Store the last saved serial in dynamo with this suffix for consistency checks.
|
||||
|
|
|
|||
|
|
@ -11,10 +11,10 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/backend"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/remote"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statefile"
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/states/statemgr"
|
||||
"github.com/opentofu/opentofu/internal/backend"
|
||||
"github.com/opentofu/opentofu/internal/states/remote"
|
||||
"github.com/opentofu/opentofu/internal/states/statefile"
|
||||
"github.com/opentofu/opentofu/internal/states/statemgr"
|
||||
)
|
||||
|
||||
func TestRemoteClient_impl(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ package s3
|
|||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/placeholderplaceholderplaceholder/opentf/internal/tfdiags"
|
||||
"github.com/opentofu/opentofu/internal/tfdiags"
|
||||
)
|
||||
|
||||
func diagnosticString(diag tfdiags.Diagnostic) string {
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue