pulumi/tests/integration/nodejs
Will Jones 1515db22f1 Support `pulumi.Config` in dynamic providers
As well as responding to `Configure` gRPC calls, a resource provider
binary can also accept configuration from the engine via the
`PULUMI_CONFIG` environment variable. Presently, the engine will only
send configuration namespaced to the provider in question, and will
strip namespaces when doing so. So, given an example host configuration
of:

```
config:
  aws:region: eu-west-1
  foo:bar: baz
```

an `aws` provider will be provided with
`PULUMI_CONFIG='{"region":"eu-west-1"}'`, whereas a `gcp` provider will
receive `PULUMI_CONFIG='{}'`, matching neither `aws:region` nor
`foo:bar`.

This is problematic for dynamic providers, since they are authored in
and typically considered part of the user's program, and not as a
separate entity. Consequently it is not unreasonable for a dynamic
provider author to expect to have access to the entirety of the Pulumi
configuration through e.g. `pulumi.Config`, just like any other code in
their program -- #17050 and #4512 are two examples.

This commit makes us live up to this expectation. Dynamic providers now
receive all configuration values, with the namespaces preserved so that
existing `pulumi.Config` code can work in a dynamic provider like it
works everywhere else.

Fixes #17050
2024-09-10 17:21:20 +01:00
..
codepaths Unskip tests skipped in #15555, #15556, #15557 (#15573) 2024-03-05 09:12:53 +00:00
codepaths-nested Unskip tests skipped in #15555, #15556, #15557 (#15573) 2024-03-05 09:12:53 +00:00
codepaths-no-dependencies [sdk/nodejs] Allow missing package.json dependencies (#16433) 2024-06-21 10:04:12 +00:00
codepaths-tsc Fix codepaths computation when working dir is nested relative to package.json (#15601) 2024-03-08 16:16:47 +00:00
codepaths-workspaces Unskip tests skipped in #15555, #15556, #15557 (#15573) 2024-03-05 09:12:53 +00:00
codepaths-workspaces-tsc Fix codepaths computation when working dir is nested relative to package.json (#15601) 2024-03-08 16:16:47 +00:00
compiler_options [langhost/node] More ESM support: `nodeargs`, main entrypoints, and tests (#8655) 2022-01-04 18:54:38 -08:00
esm-js [langhost/node] More ESM support: `nodeargs`, main entrypoints, and tests (#8655) 2022-01-04 18:54:38 -08:00
esm-js-main [langhost/node] More ESM support: `nodeargs`, main entrypoints, and tests (#8655) 2022-01-04 18:54:38 -08:00
esm-package-json-in-parent-dir-without-main [sdk/nodejs] Support loading package.json from parent dir 2023-06-29 07:57:43 -07:00
esm-srcdir-ts Regenerate test `package-lock.json` files (#16387) 2024-06-13 10:52:59 +00:00
esm-ts [langhost/node] More ESM support: `nodeargs`, main entrypoints, and tests (#8655) 2022-01-04 18:54:38 -08:00
esm-ts-compiled Bump nodejs integration test version 2022-11-15 16:36:18 -08:00
esm-ts-default-export [sdk/nodejs] Support top-level default exports in ESM (#8766) 2022-01-22 18:33:28 -08:00
esm-ts-nested-src [sdk/nodejs] Support loading package.json from parent dir 2023-06-29 07:57:43 -07:00
esm-ts-specifier-resolution-node [langhost/node] More ESM support: `nodeargs`, main entrypoints, and tests (#8655) 2022-01-04 18:54:38 -08:00
esm-with-package-json-in-parent-dir [sdk/nodejs] Support loading package.json from parent dir 2023-06-29 07:57:43 -07:00
main-overrides-package-json Only look for main in package.json if no entyrpoint was set via Pulumi.yaml (#16363) 2024-06-11 11:36:34 +00:00
npm-and-yarn-not-a-workspace Detect npm and yarn workspaces setups (#15421) 2024-02-16 08:25:12 +00:00
npm-and-yarn-workspaces Detect npm and yarn workspaces setups (#15421) 2024-02-16 08:25:12 +00:00
omit-stacktrace updated error message to catch syntax errors (#10465) 2022-08-23 21:33:29 -05:00
oom Fix NodeJS OOM detection condition (#17045) 2024-08-22 15:06:16 +00:00
package-json-in-parent-dir-without-main [sdk/nodejs] Support loading package.json from parent dir 2023-06-29 07:57:43 -07:00
parameterized Support `pulumi.Config` in dynamic providers 2024-09-10 17:21:20 +01:00
pnpm-workspace Detect pnpm workspaces (#15525) 2024-06-18 13:37:06 +00:00
pulumi-config Support `pulumi.Config` in dynamic providers 2024-09-10 17:21:20 +01:00
regression-12301 Remove unused `package.json` files from tests (#13162) 2024-07-08 14:09:16 +00:00
ts-with-package-json-in-parent-dir [sdk/nodejs] Support loading package.json from parent dir 2023-06-29 07:57:43 -07:00
undefined-stack-output Warn about undefined stack outputs 2023-07-28 14:33:04 +01:00
yarn-workspaces-nohoist Detect npm and yarn workspaces setups (#15421) 2024-02-16 08:25:12 +00:00
.gitignore [langhost/node] More ESM support: `nodeargs`, main entrypoints, and tests (#8655) 2022-01-04 18:54:38 -08:00