pulumi/tests/integration/construct_component_provide.../nodejs
Abhinav Gupta 84a7b1ce9c
test: Add failing test case for #12593
Information in the original issue is a bit limited,
but we know that the error occured when the user
passed a `provider=x` to a multi-language component,
which then instantiate a resource handled by that provider
with itself as the parent.
The expected behavior was for the resource to use the explicit provider,
but instead, it used the default global provider.

The reproduction does roughly the same for Go, Python, and Node,
except it instantiates three resources:

1. using the default provider
2. using an explicit provider specified with `provider=x`
3. using an explicit provider specified with `providers=[x]`
3. using an explicit provider specified with `providers={pkg: x}`

Case (2) fails as expected from #12593 for Python.

```
--- PASS: TestConstructProviderPropagationGo (14.66s)
--- PASS: TestConstructProviderPropagationNode (15.03s)
--- FAIL: TestConstructProviderPropagationPython (17.63s)
```
2023-04-13 18:12:18 -07:00
..
.gitignore test: Add failing test case for #12593 2023-04-13 18:12:18 -07:00
Pulumi.yaml test: Add failing test case for #12593 2023-04-13 18:12:18 -07:00
index.ts test: Add failing test case for #12593 2023-04-13 18:12:18 -07:00
package.json test: Add failing test case for #12593 2023-04-13 18:12:18 -07:00