pulumi/pkg/backend/display/testdata/not-truncated
Fraser Waters dd35a2a94f Fix diff display partially parsing JSON/YAML
Fixes https://github.com/pulumi/pulumi/issues/10312

When attempting to decode a string property value as JSON or YAML the
decoder would return a partial parse as valid. This resulted in strings
like "{} stuff" being reported as an empty JSON object, rather than the
literal string "{} stuff".

This also fixes the decoder to ignore whitespace around the value so for
example "   [1, 2]   " is now treated as a JSON array, not a string
literal.
2023-06-22 09:31:10 +01:00
..
stack-output-resource-diff.json add a test 2023-06-01 13:55:36 +02:00
stack-output-resource-diff.json.interactive-80x24-cooked.stderr.txt add a test 2023-06-01 13:55:36 +02:00
stack-output-resource-diff.json.interactive-80x24-cooked.stdout.txt update snapshots with 'View in Browser' links 2023-06-01 13:55:36 +02:00
stack-output-resource-diff.json.interactive-80x24.stderr.txt add a test 2023-06-01 13:55:36 +02:00
stack-output-resource-diff.json.interactive-80x24.stdout.txt update snapshots with 'View in Browser' links 2023-06-01 13:55:36 +02:00
stack-output-resource-diff.json.interactive-100x80-cooked.stderr.txt add a test 2023-06-01 13:55:36 +02:00
stack-output-resource-diff.json.interactive-100x80-cooked.stdout.txt update snapshots with 'View in Browser' links 2023-06-01 13:55:36 +02:00
stack-output-resource-diff.json.interactive-100x80.stderr.txt add a test 2023-06-01 13:55:36 +02:00
stack-output-resource-diff.json.interactive-100x80.stdout.txt update snapshots with 'View in Browser' links 2023-06-01 13:55:36 +02:00
stack-output-resource-diff.json.interactive-200x80-cooked.stderr.txt add a test 2023-06-01 13:55:36 +02:00
stack-output-resource-diff.json.interactive-200x80-cooked.stdout.txt update snapshots with 'View in Browser' links 2023-06-01 13:55:36 +02:00
stack-output-resource-diff.json.interactive-200x80.stderr.txt add a test 2023-06-01 13:55:36 +02:00
stack-output-resource-diff.json.interactive-200x80.stdout.txt update snapshots with 'View in Browser' links 2023-06-01 13:55:36 +02:00
stack-output-resource-diff.json.non-interactive.stderr.txt add a test 2023-06-01 13:55:36 +02:00
stack-output-resource-diff.json.non-interactive.stdout.txt update snapshots with 'View in Browser' links 2023-06-01 13:55:36 +02:00
stack-output-resource-diff.json.stderr.txt add a test 2023-06-01 13:55:36 +02:00
stack-output-resource-diff.json.stdout.txt Don't use printf without a fixed format string 2023-06-21 11:44:06 +01:00
template-body.json Display text-based diff if yaml/json diff is semantically equal 2023-01-17 17:04:41 -08:00
template-body.json.interactive-80x24-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
template-body.json.interactive-80x24-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
template-body.json.interactive-80x24.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
template-body.json.interactive-80x24.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
template-body.json.interactive-100x80-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
template-body.json.interactive-100x80-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
template-body.json.interactive-100x80.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
template-body.json.interactive-100x80.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
template-body.json.interactive-200x80-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
template-body.json.interactive-200x80-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
template-body.json.interactive-200x80.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
template-body.json.interactive-200x80.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
template-body.json.non-interactive.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
template-body.json.non-interactive.stdout.txt [cli] Add an "open in browser" keybinding 2023-03-09 15:52:13 -08:00
template-body.json.stderr.txt Truncate long stack outputs (#10021) 2022-07-12 11:24:21 -07:00
template-body.json.stdout.txt Fix diff display partially parsing JSON/YAML 2023-06-22 09:31:10 +01:00
up-2.json Truncate long stack outputs (#10021) 2022-07-12 11:24:21 -07:00
up-2.json.interactive-80x24-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-2.json.interactive-80x24-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-2.json.interactive-80x24.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-2.json.interactive-80x24.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-2.json.interactive-100x80-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-2.json.interactive-100x80-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-2.json.interactive-100x80.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-2.json.interactive-100x80.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-2.json.interactive-200x80-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-2.json.interactive-200x80-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-2.json.interactive-200x80.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-2.json.interactive-200x80.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-2.json.non-interactive.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-2.json.non-interactive.stdout.txt [cli] Add an "open in browser" keybinding 2023-03-09 15:52:13 -08:00
up-2.json.stderr.txt Truncate long stack outputs (#10021) 2022-07-12 11:24:21 -07:00
up-2.json.stdout.txt Don't use printf without a fixed format string 2023-06-21 11:44:06 +01:00
up-3.json Truncate long stack outputs (#10021) 2022-07-12 11:24:21 -07:00
up-3.json.interactive-80x24-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-3.json.interactive-80x24-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-3.json.interactive-80x24.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-3.json.interactive-80x24.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-3.json.interactive-100x80-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-3.json.interactive-100x80-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-3.json.interactive-100x80.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-3.json.interactive-100x80.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-3.json.interactive-200x80-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-3.json.interactive-200x80-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-3.json.interactive-200x80.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-3.json.interactive-200x80.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-3.json.non-interactive.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-3.json.non-interactive.stdout.txt [cli] Add an "open in browser" keybinding 2023-03-09 15:52:13 -08:00
up-3.json.stderr.txt Truncate long stack outputs (#10021) 2022-07-12 11:24:21 -07:00
up-3.json.stdout.txt Don't use printf without a fixed format string 2023-06-21 11:44:06 +01:00
up-4.json Truncate long stack outputs (#10021) 2022-07-12 11:24:21 -07:00
up-4.json.interactive-80x24-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-4.json.interactive-80x24-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-4.json.interactive-80x24.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-4.json.interactive-80x24.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-4.json.interactive-100x80-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-4.json.interactive-100x80-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-4.json.interactive-100x80.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-4.json.interactive-100x80.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-4.json.interactive-200x80-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-4.json.interactive-200x80-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-4.json.interactive-200x80.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-4.json.interactive-200x80.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-4.json.non-interactive.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-4.json.non-interactive.stdout.txt [cli] Add an "open in browser" keybinding 2023-03-09 15:52:13 -08:00
up-4.json.stderr.txt Truncate long stack outputs (#10021) 2022-07-12 11:24:21 -07:00
up-4.json.stdout.txt Don't use printf without a fixed format string 2023-06-21 11:44:06 +01:00
up-5.json Display outputs last in diff view (#10535) 2022-09-01 12:09:54 -07:00
up-5.json.interactive-80x24-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-5.json.interactive-80x24-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-5.json.interactive-80x24.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-5.json.interactive-80x24.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-5.json.interactive-100x80-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-5.json.interactive-100x80-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-5.json.interactive-100x80.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-5.json.interactive-100x80.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-5.json.interactive-200x80-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-5.json.interactive-200x80-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-5.json.interactive-200x80.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-5.json.interactive-200x80.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up-5.json.non-interactive.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up-5.json.non-interactive.stdout.txt [cli] Add an "open in browser" keybinding 2023-03-09 15:52:13 -08:00
up-5.json.stderr.txt Display outputs last in diff view (#10535) 2022-09-01 12:09:54 -07:00
up-5.json.stdout.txt Don't use printf without a fixed format string 2023-06-21 11:44:06 +01:00
up.json Truncate long stack outputs (#10021) 2022-07-12 11:24:21 -07:00
up.json.interactive-80x24-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up.json.interactive-80x24-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up.json.interactive-80x24.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up.json.interactive-80x24.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up.json.interactive-100x80-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up.json.interactive-100x80-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up.json.interactive-100x80.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up.json.interactive-100x80.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up.json.interactive-200x80-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up.json.interactive-200x80-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up.json.interactive-200x80.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up.json.interactive-200x80.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
up.json.non-interactive.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
up.json.non-interactive.stdout.txt [cli] Add an "open in browser" keybinding 2023-03-09 15:52:13 -08:00
up.json.stderr.txt Truncate long stack outputs (#10021) 2022-07-12 11:24:21 -07:00
up.json.stdout.txt Don't use printf without a fixed format string 2023-06-21 11:44:06 +01:00
webserver-userdata.json Truncate long stack outputs (#10021) 2022-07-12 11:24:21 -07:00
webserver-userdata.json.interactive-80x24-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
webserver-userdata.json.interactive-80x24-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
webserver-userdata.json.interactive-80x24.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
webserver-userdata.json.interactive-80x24.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
webserver-userdata.json.interactive-100x80-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
webserver-userdata.json.interactive-100x80-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
webserver-userdata.json.interactive-100x80.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
webserver-userdata.json.interactive-100x80.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
webserver-userdata.json.interactive-200x80-cooked.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
webserver-userdata.json.interactive-200x80-cooked.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
webserver-userdata.json.interactive-200x80.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
webserver-userdata.json.interactive-200x80.stdout.txt display: Switch "Open in Browser" to "View in Browser" 2023-03-10 10:52:43 -07:00
webserver-userdata.json.non-interactive.stderr.txt [cli] Abstract out terminal interactions 2022-11-08 17:13:56 -08:00
webserver-userdata.json.non-interactive.stdout.txt [cli] Add an "open in browser" keybinding 2023-03-09 15:52:13 -08:00
webserver-userdata.json.stderr Truncate long stack outputs (#10021) 2022-07-12 11:24:21 -07:00
webserver-userdata.json.stderr.txt Truncate long stack outputs (#10021) 2022-07-12 11:24:21 -07:00
webserver-userdata.json.stdout Truncate long stack outputs (#10021) 2022-07-12 11:24:21 -07:00
webserver-userdata.json.stdout.txt Don't use printf without a fixed format string 2023-06-21 11:44:06 +01:00