Skip to content

Commit

Permalink
Fix test to remove extra bracket
Browse files Browse the repository at this point in the history
  • Loading branch information
rquitales committed Sep 13, 2023
1 parent 96bf86b commit 481634e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion testdata/stringLiteral/cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ kind: ConfigMap
metadata:
name: myapp-no-brackets
data:
key: "{\"uid\": \"${datasource\""
key: "{\"uid\": \"$datasource\""
2 changes: 1 addition & 1 deletion testdata/stringLiteral/expected/expectedStringLiteral.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
Data =
{
{ "key", "{\\\"uid\\\": \\\"${datasource\\\"" },
{ "key", "{\\\"uid\\\": \\\"$datasource\\\"" },
},
});
Expand Down
2 changes: 1 addition & 1 deletion testdata/stringLiteral/expected/expectedStringLiteral.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func main() {
Name: pulumi.String("myapp-no-brackets"),
},
Data: pulumi.StringMap{
"key": pulumi.String(fmt.Sprintf("{\\\"uid\\\": \\\"${datasource\\\"")),
"key": pulumi.String(fmt.Sprintf("{\\\"uid\\\": \\\"$datasource\\\"")),
},
})
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion testdata/stringLiteral/expected/expectedStringLiteral.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static void stack(Context ctx) {
.metadata(ObjectMetaArgs.builder()
.name("myapp-no-brackets")
.build())
.data(Map.of("key", "{\\\"uid\\\": \\\"${datasource\\\""))
.data(Map.of("key", "{\\\"uid\\\": \\\"$datasource\\\""))
.build());

}
Expand Down
2 changes: 1 addition & 1 deletion testdata/stringLiteral/expected/expectedStringLiteral.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@
name="myapp-no-brackets",
),
data={
"key": "{\\\"uid\\\": \\\"${datasource\\\"",
"key": "{\\\"uid\\\": \\\"$datasource\\\"",
})
2 changes: 1 addition & 1 deletion testdata/stringLiteral/expected/expectedStringLiteral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ const myapp_no_bracketsConfigMap = new kubernetes.core.v1.ConfigMap("myapp_no_br
name: "myapp-no-brackets",
},
data: {
key: `{\"uid\": \"${datasource\"`,
key: `{\"uid\": \"$datasource\"`,
},
});

0 comments on commit 481634e

Please sign in to comment.