Add test to validate that lifted properties on output-wrapped Resources.
@@ -54,3 +54,24 @@ res.outprop3.apply(prop => {
assert.equal(prop, undefined);
});
+let resOutput = pulumi.output(res);
+resOutput.urn.apply(urn => {
+ console.log(`URN: ${urn}`);
+ assert.equal(urn, "test:index:MyResource::testResource1");
+});
+resOutput.id.apply(id => {
+ console.log(`ID: ${id}`);
+ assert.equal(id, "testResource1");
+});
+resOutput.outprop1.apply(prop => {
+ console.log(`OutProp1: ${prop}`);
+ assert.equal(prop, "output properties ftw");
+});
+resOutput.outprop2.apply(prop => {
+ console.log(`OutProp2: ${prop}`);
+ assert.equal(prop, 998.6);
+});
+resOutput.outprop3.apply(prop => {
+ console.log(`OutProp3: ${prop}`);
+ assert.equal(prop, undefined);
+});
