checks: no longer experimental (#33184)

This commit is contained in:
Liam Cervante 2023-05-11 20:17:49 +02:00 committed by GitHub
parent b56af3a36a
commit 192cb255a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 13 deletions

View File

@ -73,8 +73,6 @@ func MarshalCheckStates(results *states.CheckResults) []byte {
// object in the configuration even if Terraform Core encountered an error
// before being able to determine the dynamic instances of the checkable object.
type checkResultStatic struct {
ExperimentalNote experimentalNote `json:"//"`
// Address is the address of the checkable object this result relates to.
Address staticObjectAddr `json:"address"`
@ -119,9 +117,3 @@ type checkProblem struct {
// intentionally an object to allow us to add other data over time, such
// as the source location where the failing condition was defined.
}
type experimentalNote struct{}
func (n experimentalNote) MarshalJSON() ([]byte, error) {
return []byte(`"EXPERIMENTAL: see docs for details"`), nil
}

View File

@ -110,7 +110,6 @@ func TestMarshalCheckStates(t *testing.T) {
},
[]any{
map[string]any{
"//": "EXPERIMENTAL: see docs for details",
"address": map[string]any{
"kind": "check",
"to_display": "check.a",
@ -132,7 +131,6 @@ func TestMarshalCheckStates(t *testing.T) {
"status": "fail",
},
map[string]any{
"//": "EXPERIMENTAL: see docs for details",
"address": map[string]any{
"kind": "output_value",
"module": "module.child",
@ -156,7 +154,6 @@ func TestMarshalCheckStates(t *testing.T) {
"status": "fail",
},
map[string]any{
"//": "EXPERIMENTAL: see docs for details",
"address": map[string]any{
"kind": "resource",
"mode": "managed",
@ -182,7 +179,6 @@ func TestMarshalCheckStates(t *testing.T) {
"status": "fail",
},
map[string]any{
"//": "EXPERIMENTAL: see docs for details",
"address": map[string]any{
"kind": "output_value",
"name": "a",
@ -199,7 +195,6 @@ func TestMarshalCheckStates(t *testing.T) {
"status": "fail",
},
map[string]any{
"//": "EXPERIMENTAL: see docs for details",
"address": map[string]any{
"kind": "resource",
"mode": "managed",