-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test coverage for handling of numeric values by Plan.UnmarshalJSON (
#111)
- Loading branch information
1 parent
970acde
commit a2ced5d
Showing
2 changed files
with
131 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ | ||
"format_version": "1.2", | ||
"terraform_version": "1.6.5", | ||
"planned_values": { | ||
"root_module": { | ||
"resources": [ | ||
{ | ||
"address": "example_resource.test", | ||
"mode": "managed", | ||
"type": "example_resource", | ||
"name": "test", | ||
"provider_name": "registry.terraform.io/hashicorp/example", | ||
"schema_version": 0, | ||
"values": { | ||
"configurable_attribute": 1.23, | ||
"id": "one" | ||
}, | ||
"sensitive_values": {} | ||
} | ||
] | ||
} | ||
}, | ||
"resource_changes": [ | ||
{ | ||
"address": "example_resource.test", | ||
"mode": "managed", | ||
"type": "example_resource", | ||
"name": "test", | ||
"provider_name": "registry.terraform.io/hashicorp/example", | ||
"change": { | ||
"actions": [ | ||
"create" | ||
], | ||
"before": null, | ||
"after": { | ||
"configurable_attribute": 1.23, | ||
"id": "one" | ||
}, | ||
"after_unknown": {}, | ||
"before_sensitive": false, | ||
"after_sensitive": {} | ||
} | ||
} | ||
], | ||
"configuration": { | ||
"provider_config": { | ||
"example": { | ||
"name": "example", | ||
"full_name": "registry.terraform.io/hashicorp/example" | ||
} | ||
}, | ||
"root_module": { | ||
"resources": [ | ||
{ | ||
"address": "example_resource.test", | ||
"mode": "managed", | ||
"type": "example_resource", | ||
"name": "test", | ||
"provider_config_key": "example", | ||
"expressions": { | ||
"configurable_attribute": { | ||
"constant_value": 1.23 | ||
}, | ||
"id": { | ||
"constant_value": "one" | ||
} | ||
}, | ||
"schema_version": 0 | ||
} | ||
] | ||
} | ||
}, | ||
"timestamp": "2023-12-07T13:55:56Z", | ||
"errored": false | ||
} |