pulumi/pkg/backend/display/testdata/json-yaml
Aaron Friel c2e41beff2
Fix rendering of output events in rendering update diffs (#17029)
This fixes a bug found while working on another internal issue. This bug
is reproduced in the first commit which adds tests, clearly showing the
behavior of the incoherent rendering. The second commit makes the change
and updates the tests.

Fixes #17028

Fixes all outputs being printed adjacent without context, as seen in the
linked issue and the first commit:

```
    --outputs:--
    readme: "line 1\nline2\nline3\nline4"
        --outputs:--
        arn                : "arn:aws:iam::616138583583:role/eks-role-24b1266"
        assumeRolePolicy   : (json) {
            Statement: [
                [0]: {
                    Action   : "sts:AssumeRole"
                    Effect   : "Allow"
                    Principal: {
                        Service: "eks.amazonaws.com"
                    }
                    Sid      : ""
                }
            ]
            Version  : "2008-10-17"
        }

        createDate         : "2022-02-09T23:14:50Z"
        id                 : "eks-role-24b1266"
        inlinePolicies     : [
            [0]: {
                name  : ""
                policy: ""
            }
        ]
        managedPolicyArns  : [
            [0]: "arn:aws:iam::aws:policy/AmazonEKSClusterPolicy"
            [1]: "arn:aws:iam::aws:policy/AmazonEKSServicePolicy"
        ]
        uniqueId           : "AROAY65FYVYPWXZQUXMBX"
        --outputs:--
        id       : "eks-role-24b1266-20220209231452499500000001"
        --outputs:--
        id       : "eks-role-24b1266-20220209231452597100000002"
        --outputs:--
```
2024-08-27 18:37:03 +00:00
..
json-text-change.json Fix JSON/YAML diffs (#15171) 2024-01-18 14:19:54 +00:00
json-text-change.json.create-diff.txt Fix rendering of output events in rendering update diffs (#17029) 2024-08-27 18:37:03 +00:00
json-text-change.json.stderr.txt Fix JSON/YAML diffs (#15171) 2024-01-18 14:19:54 +00:00
json-text-change.json.stdout.txt Fix JSON/YAML diffs (#15171) 2024-01-18 14:19:54 +00:00
json.json Fix JSON/YAML diffs (#15171) 2024-01-18 14:19:54 +00:00
json.json.create-diff.txt Fix rendering of output events in rendering update diffs (#17029) 2024-08-27 18:37:03 +00:00
json.json.stderr.txt Fix JSON/YAML diffs (#15171) 2024-01-18 14:19:54 +00:00
json.json.stdout.txt Fix JSON/YAML diffs (#15171) 2024-01-18 14:19:54 +00:00
yaml-text-change.json Fix JSON/YAML diffs (#15171) 2024-01-18 14:19:54 +00:00
yaml-text-change.json.create-diff.txt Fix rendering of output events in rendering update diffs (#17029) 2024-08-27 18:37:03 +00:00
yaml-text-change.json.stderr.txt Fix JSON/YAML diffs (#15171) 2024-01-18 14:19:54 +00:00
yaml-text-change.json.stdout.txt Fix JSON/YAML diffs (#15171) 2024-01-18 14:19:54 +00:00
yaml.json Fix JSON/YAML diffs (#15171) 2024-01-18 14:19:54 +00:00
yaml.json.create-diff.txt Fix rendering of output events in rendering update diffs (#17029) 2024-08-27 18:37:03 +00:00
yaml.json.stderr.txt Fix JSON/YAML diffs (#15171) 2024-01-18 14:19:54 +00:00
yaml.json.stdout.txt Fix JSON/YAML diffs (#15171) 2024-01-18 14:19:54 +00:00