pulumi/sdk/nodejs/tests
Justin Van Patten 8259c2b24e [sdk/nodejs] Fix regression when passing a provider to a MLC
https://github.com/pulumi/pulumi/pull/11093 changed the Node.js SDK to pass a provider specified in a MLC's `ResourceOptions.provider` to the engine.

Unfortunately, this regresses behavior that existing programs rely on. For example:

```ts
import * as aws from "@pulumi/aws";
import * as awsx from "@pulumi/awsx";

const myRegion = new aws.Provider("us-east-1", {
  region: "us-east-1",
});

const vpc = new awsx.ec2.Vpc("awsx-nodejs-default-args", {}, { provider: myRegion });
```

In the above program, an explicit _aws_ provider is being passed to the _awsx_ `VPC` component, with the intention that the _aws_ provider will be used as the provider for all of `Vpc`'s children.

With the change in https://github.com/pulumi/pulumi/pull/11093, the engine would try to call `Construct` for the `Vpc` using the specified `aws` provider, which does not work (it fails with `plugins that can construct components must support secrets`).

This change reverts the change from https://github.com/pulumi/pulumi/pull/11093 that included the `provider` in the `RegisterResourceRequest` for MLCs, and adds a regression test to lock-in the previous behavior.

Note: We do want to be able to support specifying a MLC's provider (to allow explicit providers for MLCs), but we'll address that in a separate change.
2022-12-02 09:54:07 -08:00
..
automation [sdk/nodejs] Cleanup use of `asyncTest` and `assertAsyncThrows` 2022-11-09 15:08:08 -08:00
mockpackage JavaScript fnSerialization match package.json exports (#8893) 2022-02-08 10:22:56 -08:00
runtime [sdk/nodejs] Fix regression when passing a provider to a MLC 2022-12-02 09:54:07 -08:00
sxs_ts_test ci: fix sxs test 2022-03-06 14:45:26 -08:00
config.spec.ts Replace equal and deepEqual with strictEqual and deepStrictEqual (#5607) 2020-10-21 10:21:47 -07:00
constants.ts ci: improve x-plat testing on Windows 2022-03-06 14:45:26 -08:00
init.spec.ts Add license headers 2018-05-22 15:02:47 -07:00
iterable.spec.ts [sdk/nodejs] Cleanup use of `asyncTest` and `assertAsyncThrows` 2022-11-09 15:08:08 -08:00
options.spec.ts [sdk/nodejs] Cleanup use of `asyncTest` and `assertAsyncThrows` 2022-11-09 15:08:08 -08:00
output.spec.ts [sdk/nodejs] Cleanup use of `asyncTest` and `assertAsyncThrows` 2022-11-09 15:08:08 -08:00
provider.spec.ts [sdk/nodejs] Cleanup use of `asyncTest` and `assertAsyncThrows` 2022-11-09 15:08:08 -08:00
resource.spec.ts [sdk/nodejs] Cleanup use of `asyncTest` and `assertAsyncThrows` 2022-11-09 15:08:08 -08:00
unwrap.spec.ts [sdk/nodejs] Cleanup use of `asyncTest` and `assertAsyncThrows` 2022-11-09 15:08:08 -08:00
util.ts [sdk/nodejs] Cleanup use of `asyncTest` and `assertAsyncThrows` 2022-11-09 15:08:08 -08:00