sparse-intern-71089
07/02/2020, 8:23 PMfaint-table-42725
07/02/2020, 9:59 PMtoken
refers to the function being called. For example, if you look at https://github.com/pulumi/pulumi-aws/blob/master/sdk/python/pulumi_aws/acm/get_certificate.py#L103faint-table-42725
07/02/2020, 10:00 PM__ret__ = pulumi.runtime.invoke('aws:acm/getCertificate:getCertificate', __args__, opts=opts).value
faint-table-42725
07/02/2020, 10:00 PMaws:acm/getCertificate:getCertificate
is what token
will be when you call pulumi_aws.acm.get_certificate(...)
faint-table-42725
07/02/2020, 10:02 PM{}
for most functions if you don’t care about doing anything with them in your tests. If you do, you can compare against token
and then decide what relevant thing you want to return for your testing.