-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix saved plan test regressions, fixtures
- Loading branch information
1 parent
31cf55f
commit e6c0e7b
Showing
4 changed files
with
121 additions
and
5 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
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
116 changes: 116 additions & 0 deletions
116
internal/command/views/testdata/plans/redacted-plan.json
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,116 @@ | ||
{ | ||
"plan_format_version": "1.1", | ||
"resource_drift": [], | ||
"resource_changes": [ | ||
{ | ||
"address": "null_resource.foo", | ||
"mode": "managed", | ||
"type": "null_resource", | ||
"name": "foo", | ||
"provider_name": "registry.terraform.io/hashicorp/null", | ||
"change": { | ||
"actions": [ | ||
"create" | ||
], | ||
"before": null, | ||
"after": { | ||
"triggers": null | ||
}, | ||
"after_unknown": { | ||
"id": true | ||
}, | ||
"before_sensitive": false, | ||
"after_sensitive": {} | ||
} | ||
} | ||
], | ||
"relevant_attributes": [], | ||
"output_changes": {}, | ||
"provider_schemas": { | ||
"registry.terraform.io/hashicorp/null": { | ||
"provider": { | ||
"version": 0, | ||
"block": { | ||
"description_kind": "plain" | ||
} | ||
}, | ||
"resource_schemas": { | ||
"null_resource": { | ||
"version": 0, | ||
"block": { | ||
"attributes": { | ||
"id": { | ||
"type": "string", | ||
"description": "This is set to a random value at create time.", | ||
"description_kind": "plain", | ||
"computed": true | ||
}, | ||
"triggers": { | ||
"type": [ | ||
"map", | ||
"string" | ||
], | ||
"description": "A map of arbitrary strings that, when changed, will force the null resource to be replaced, re-running any associated provisioners.", | ||
"description_kind": "plain", | ||
"optional": true | ||
} | ||
}, | ||
"description": "The `null_resource` resource implements the standard resource lifecycle but takes no further action.\n\nThe `triggers` argument allows specifying an arbitrary set of values that, when changed, will cause the resource to be replaced.", | ||
"description_kind": "plain" | ||
} | ||
} | ||
}, | ||
"data_source_schemas": { | ||
"null_data_source": { | ||
"version": 0, | ||
"block": { | ||
"attributes": { | ||
"has_computed_default": { | ||
"type": "string", | ||
"description": "If set, its literal value will be stored and returned. If not, its value defaults to `\"default\"`. This argument exists primarily for testing and has little practical use.", | ||
"description_kind": "plain", | ||
"optional": true, | ||
"computed": true | ||
}, | ||
"id": { | ||
"type": "string", | ||
"description": "This attribute is only present for some legacy compatibility issues and should not be used. It will be removed in a future version.", | ||
"description_kind": "plain", | ||
"deprecated": true, | ||
"computed": true | ||
}, | ||
"inputs": { | ||
"type": [ | ||
"map", | ||
"string" | ||
], | ||
"description": "A map of arbitrary strings that is copied into the `outputs` attribute, and accessible directly for interpolation.", | ||
"description_kind": "plain", | ||
"optional": true | ||
}, | ||
"outputs": { | ||
"type": [ | ||
"map", | ||
"string" | ||
], | ||
"description": "After the data source is \"read\", a copy of the `inputs` map.", | ||
"description_kind": "plain", | ||
"computed": true | ||
}, | ||
"random": { | ||
"type": "string", | ||
"description": "A random value. This is primarily for testing and has little practical use; prefer the [hashicorp/random provider](https://registry.terraform.io/providers/hashicorp/random) for more practical random number use-cases.", | ||
"description_kind": "plain", | ||
"computed": true | ||
} | ||
}, | ||
"description": "The `null_data_source` data source implements the standard data source lifecycle but does not\ninteract with any external APIs.\n\nHistorically, the `null_data_source` was typically used to construct intermediate values to re-use elsewhere in configuration. The\nsame can now be achieved using [locals](https://www.terraform.io/docs/language/values/locals.html).\n", | ||
"description_kind": "plain", | ||
"deprecated": true | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"provider_format_version": "1.0" | ||
} |