pulumi/sdk/nodejs/tests/runtime/langhost/cases
Pat Gavlin e1a52693dc
Add support for importing existing resources. (#2893)
A resource can be imported by setting the `import` property in the
resource options bag when instantiating a resource. In order to
successfully import a resource, its desired configuration (i.e. its
inputs) must not differ from its actual configuration (i.e. its state)
as calculated by the resource's provider.

There are a few interesting state transitions hiding here when importing
a resource:
1. No prior resource exists in the checkpoint file. In this case, the
   resource is simply imported.
2. An external resource exists in the checkpoint file. In this case, the
   resource is imported and the old external state is discarded.
3. A non-external resource exists in the checkpoint file and its ID is
   different from the ID to import. In this case, the new resource is
   imported and the old resource is deleted.
4. A non-external resource exists in the checkpoint file, but the ID is
   the same as the ID to import. In this case, the import ID is ignored
   and the resource is treated as it would be in all cases except for
   changes that would replace the resource. In that case, the step
   generator issues an error that indicates that the import ID should be
   removed: were we to move forward with the replace, the new state of
   the stack would fall under case (3), which is almost certainly not
   what the user intends.

Fixes #1662.
2019-07-12 11:12:01 -07:00
..
000.empty Implement free variable calculations 2017-09-04 11:35:21 -07:00
001.one_resource Add auto-parenting 2017-10-15 04:38:26 -07:00
002.ten_resources Add auto-parenting 2017-10-15 04:38:26 -07:00
003.one_complex_resource Resolve missing outputs as `undefined`. (#1427) 2018-05-24 11:22:08 -07:00
004.ten_complex_resources Introduce Output<T> and update Resource construction code to properly handle it. (#834) 2018-02-05 14:44:23 -08:00
005.resource_thens Introduce Output<T> and update Resource construction code to properly handle it. (#834) 2018-02-05 14:44:23 -08:00
006.asset Add auto-parenting 2017-10-15 04:38:26 -07:00
007.promises_io Add auto-parenting 2017-10-15 04:38:26 -07:00
008.ten_depends_on_resources Permit dependsOn that are Outputs (of Outputs) (#2198) 2018-11-19 11:22:55 -05:00
009.invoke Pass "special" properties to `Invoke`. (#1277) 2018-05-01 15:05:42 -07:00
010.runtime_settings Allow multiple Pulumi SDKs side-by-side (#1132) 2018-04-07 08:02:59 -07:00
011.unhandled_error Add a test. 2017-12-13 17:30:43 -08:00
012.assets_archive Test the asset deserialization changes from #677. 2017-12-08 15:37:30 -08:00
013.unhandled_promise_rejection Add a test. 2017-12-13 17:30:43 -08:00
014.read_resource Simplify resource lookup (#1133) 2018-04-07 10:15:58 -07:00
015.runtime_sxs Add logging to tests 2019-05-01 10:04:27 -07:00
016.promise_leak Improve the promise leak experience (#1374) 2018-05-17 15:32:39 -07:00
017.parent_defaults Store information about a CustomResource's provider in __providers. (#2816) 2019-06-11 16:57:37 -07:00
018.logging Fix an issue with NodeJS host logging (#1819) 2018-08-24 16:50:09 -07:00
019.stack_exports Incorporate PR feedback 2018-09-02 12:15:58 -07:00
020.property_dependencies Implement more precise delete-before-replace semantics. (#2369) 2019-01-28 09:46:30 -08:00
021.parent_child_dependencies Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
022.parent_child_dependencies_2 Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
023.parent_child_dependencies_3 Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
024.parent_child_dependencies_4 Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
025.parent_child_dependencies_5 Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
026.parent_child_dependencies_6 Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
027.parent_child_dependencies_7 Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
028.parent_child_dependencies_8 Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
029.parent_child_dependencies_9 Update `@pulumi/pulumi` to version 0.17.0 (#2510) 2019-03-05 17:06:57 -08:00
030.import_resource Add support for importing existing resources. (#2893) 2019-07-12 11:12:01 -07:00
040.run_error Use result.Result in more places. (#2568) 2019-03-19 16:21:50 -07:00
041.component_opt_single_provider Store information about a CustomResource's provider in __providers. (#2816) 2019-06-11 16:57:37 -07:00
042.component_opt_providers_array Store information about a CustomResource's provider in __providers. (#2816) 2019-06-11 16:57:37 -07:00
043.depends_on_non_resource Ensure that the values in 'dependsOn' are actually Resources. (#2605) 2019-03-28 17:27:51 -07:00
044.versions Plumb provider version through language hosts to engine (#2656) 2019-04-23 11:02:51 -07:00
045.ignore_changes Add an ignoreChanges resource option (#2657) 2019-04-22 13:54:48 -07:00