pulumi/tests/integration
Paul Stack c4e74d8ffc
Validate stack name on stack init with non default secrets provider (#3519)
Fixes: #3248

Before, we got a panic. in the createStack, when we had a non-default
secrets provider, we were assuming the name of the stack was correct
if we were in non-interactive mode

This commit adds a guard against this by doing a final validation of
the stack name *before* we even get into the createStack func

This means, that we get the following (and not the panic)

```
▶ pulumi stack init -s "org/" --secrets-provider="gcpkms://"
error: A stack name may only contain alphanumeric, hyphens, underscores, and periods
```
2019-11-19 16:58:23 +01:00
..
aliases Add requirements.txt to all test projects 2019-08-23 15:02:58 -07:00
cloud_secrets_provider Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
config_basic Support lists and maps in config (#3342) 2019-11-01 13:41:27 -07:00
config_capture_e2e/nodejs Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
delete_before_create Consistent dependencies (#2517) 2019-03-05 20:34:51 -08:00
dependency_steps Consistent dependencies (#2517) 2019-03-05 20:34:51 -08:00
double_pending_delete Consistent dependencies (#2517) 2019-03-05 20:34:51 -08:00
duplicate_urns Consistent dependencies (#2517) 2019-03-05 20:34:51 -08:00
dynamic/python Add requirements.txt to all test projects 2019-08-23 15:02:58 -07:00
ee_perf Use prefered `new pulumi.Config()` form 2019-01-31 16:11:57 -08:00
empty Add support for "go run" style execution (#3503) 2019-11-14 09:25:55 -08:00
explicit_provider Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
get_created Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
invalid_package_json Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
partial_state Consistent dependencies (#2517) 2019-03-05 20:34:51 -08:00
partial_values Propagate inputs to outputs during preview. (#3327) 2019-11-11 12:09:34 -08:00
project_main Remove existing lock files 2018-11-12 15:33:58 -08:00
project_main_abs Fix pending delete replacement failure (#658) 2017-12-07 09:44:38 -08:00
project_main_parent Fix pending delete replacement failure (#658) 2017-12-07 09:44:38 -08:00
protect_resources Consistent dependencies (#2517) 2019-03-05 20:34:51 -08:00
provider_secret_config Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
query Allow `query` on local backend stack snapshots 2019-10-29 16:47:15 -07:00
read Update us to the same target ES version that Nodejs uses. (#3213) 2019-09-10 16:19:12 -07:00
recreate_resource_check Consistent dependencies (#2517) 2019-03-05 20:34:51 -08:00
secret_outputs Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
single_resource Suppress JSON outputs in preview correctly (#2771) 2019-05-25 12:10:38 +02:00
stack_bad_parenting Consistent dependencies (#2517) 2019-03-05 20:34:51 -08:00
stack_dependencies Remove existing lock files 2018-11-12 15:33:58 -08:00
stack_outputs Add **preview** .NET Core support for pulumi. (#3399) 2019-10-25 16:59:50 -07:00
stack_parenting Consistent dependencies (#2517) 2019-03-05 20:34:51 -08:00
stack_project_name Consistent dependencies (#2517) 2019-03-05 20:34:51 -08:00
stack_reference Add **preview** .NET Core support for pulumi. (#3399) 2019-10-25 16:59:50 -07:00
stack_reference_secrets Enable full strict mode. (#3218) 2019-09-11 16:21:35 -07:00
steps Consistent dependencies (#2517) 2019-03-05 20:34:51 -08:00
transformations Add Python resource transformations support (#3319) 2019-10-14 19:35:00 -05:00
integration_test.go Validate stack name on stack init with non default secrets provider (#3519) 2019-11-19 16:58:23 +01:00