-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
echoprovider: Add a new test-only v6 provider that echoes ephemeral p…
…rovider data (#389) * implement EphemeralResoureServer * create testprovider echo * add 1.10.0 version constant * fill out planresourcechange to actually make sense lol * update resource type name * tfversion: Add `SkipIfNotAlpha` version check * changelog * add tests to provider server and go package docs * add copyright headers * add version checks for protov6 * add website docs for ephemeral resources * add changelogs * adjust server implementation to always keep prior state * remove incorrect section about dependency graph * add -v to test runs * add test to verify immutable resource data * comma * documentation updates * doc comment update
- Loading branch information
1 parent
4a88926
commit 33bf5cf
Showing
12 changed files
with
1,126 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: FEATURES | ||
body: 'echoprovider: Introduced new `echoprovider` package, which contains a v6 Terraform | ||
provider that can be used to test ephemeral resource data.' | ||
time: 2024-11-11T16:53:12.399802-05:00 | ||
custom: | ||
Issue: "389" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: NOTES | ||
body: 'echoprovider: The `echoprovider` package is considered experimental and may | ||
be altered or removed in a subsequent release' | ||
time: 2024-11-11T16:52:06.287978-05:00 | ||
custom: | ||
Issue: "389" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copyright (c) HashiCorp, Inc. | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
// Package echoprovider contains a protocol v6 Terraform provider that can be used to transfer data from | ||
// provider configuration to state via a managed resource. This is only meant for provider acceptance testing | ||
// of data that cannot be stored in Terraform artifacts (plan/state), such as an ephemeral resource. | ||
// | ||
// Example Usage: | ||
// | ||
// // Ephemeral resource that is under test | ||
// ephemeral "examplecloud_thing" "this" { | ||
// name = "thing-one" | ||
// } | ||
// | ||
// provider "echo" { | ||
// data = ephemeral.examplecloud_thing.this | ||
// } | ||
// | ||
// resource "echo" "test" {} // The `echo.test.data` attribute will contain the ephemeral data from `ephemeral.examplecloud_thing.this` | ||
package echoprovider |
Oops, something went wrong.