Skip to content

Commit

Permalink
regen conformance tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaid-Ajaj committed Nov 15, 2024
1 parent 2993aed commit 3e5c8a1
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ resources:
properties:
value:
fn::invoke:
Function: simple-invoke:secretInvoke
Arguments:
function: simple-invoke:secretInvoke
arguments:
value: hello
secretResponse: ${first.value}
Return: secret
return: secret
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,26 @@ outputs:
# inputs are plain and the invoke response is plain
nonSecret:
fn::invoke:
Function: simple-invoke:secretInvoke
Arguments:
function: simple-invoke:secretInvoke
arguments:
value: hello
secretResponse: false
Return: response
return: response
# referencing value from resource
# // invoke response is secret => whole output is secret
firstSecret:
fn::invoke:
Function: simple-invoke:secretInvoke
Arguments:
function: simple-invoke:secretInvoke
arguments:
value: hello
secretResponse: ${res.value}
Return: response
return: response
# inputs are secret, invoke response is plain => whole output is secret
secondSecret:
fn::invoke:
Function: simple-invoke:secretInvoke
Arguments:
function: simple-invoke:secretInvoke
arguments:
value:
fn::secret: goodbye
secretResponse: false
Return: response
return: response
Original file line number Diff line number Diff line change
Expand Up @@ -5,60 +5,60 @@ resources:
properties:
string1:
fn::invoke:
Function: config-grpc:toSecret
Arguments:
function: config-grpc:toSecret
arguments:
string1: SECRET
Return: string1
return: string1
int1:
fn::invoke:
Function: config-grpc:toSecret
Arguments:
function: config-grpc:toSecret
arguments:
int1: 1.23456789e+09
Return: int1
return: int1
num1:
fn::invoke:
Function: config-grpc:toSecret
Arguments:
function: config-grpc:toSecret
arguments:
num1: 123456.789
Return: num1
return: num1
bool1:
fn::invoke:
Function: config-grpc:toSecret
Arguments:
function: config-grpc:toSecret
arguments:
bool1: true
Return: bool1
return: bool1
listString1:
fn::invoke:
Function: config-grpc:toSecret
Arguments:
function: config-grpc:toSecret
arguments:
listString1:
- SECRET
- SECRET2
Return: listString1
return: listString1
listString2: # TODO[pulumi/pulumi#17535] this currently breaks Go compilation unfortunately.
# # mapString1 = invoke("config-grpc:index:toSecret", {mapString1 = { key1 = "SECRET", key2 = "SECRET2" }}).mapString1
- VALUE
- fn::invoke:
Function: config-grpc:toSecret
Arguments:
function: config-grpc:toSecret
arguments:
string1: SECRET
Return: string1
return: string1
mapString2: # TODO[pulumi/pulumi#17535] this breaks Go compilation as well.
# # os1 = invoke("config-grpc:index:toSecret", {objString1 = { x = "SECRET" }}).objString1
key1: value1
key2:
fn::invoke:
Function: config-grpc:toSecret
Arguments:
function: config-grpc:toSecret
arguments:
string1: SECRET
Return: string1
return: string1
objString2:
x:
fn::invoke:
Function: config-grpc:toSecret
Arguments:
function: config-grpc:toSecret
arguments:
string1: SECRET
Return: string1
return: string1
config:
type: config-grpc:ConfigFetcher
options:
Expand Down

0 comments on commit 3e5c8a1

Please sign in to comment.