pulumi/tests
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
..
integration Validate stack name on stack init with non default secrets provider (#3519) 2019-11-19 16:58:23 +01:00
templates add pulumi policy new (#3423) 2019-10-30 11:00:44 -07:00
history_test.go Restore the missing helper function 2019-08-23 19:08:57 +02:00
main_test.go Update test frameworks to new packages 2018-09-05 08:16:14 -07:00
stack_test.go Fix renaming a freshly created stack using the local backend 2019-08-16 13:39:34 -07:00