mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
checks: no longer experimental (#33184)
This commit is contained in:
parent
b56af3a36a
commit
192cb255a6
@ -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
|
||||
}
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user