pulumi/tests
Fraser Waters 28180082fd
Add NewUniqueName (#9852)
* Add NewUniqueName

NewUniqueHexV2 tried to generate deterministic names via sequence
numbers, but this was insufficent to generate names that worked for many
scenarios. We're going to try to generate names based on more sources of
data, but there's no need to keep updating providers and provider code
each time we change the data set. Instead we're going to pass the byte
slice to Check and use that as a random source, the engine will then be
free to change how those random bytes get generated (including possibly
just generating them completly randomly)

This adds a new function for generating unique names that will work with
that idea. It takes a byte slice and uses that to generate a random
number sequence to fill in the random part of the name. This new method
also takes a "charset" option as currently there's a number of resources
spread across different providers that have their own name generation
code due to them needing a different charset to [a-f0-9].

At a later point we can probably remove NewUniqueHexV2. While it's
technically part of our exported public API nothing should be using it
(and a search across github doesn't show any hits).

* Add to CHANGELOG

* Use frand
2022-06-15 20:11:20 +01:00
..
examples ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
integration Fix TestStackParenting (#9853) 2022-06-13 17:26:06 -07:00
testprovider Allow attaching to running providers (#8979) 2022-04-19 12:41:18 +01:00
README.md Update tests and add integration test 2021-08-24 14:29:27 -07:00
about_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
config_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
go.mod Add NewUniqueName (#9852) 2022-06-15 20:11:20 +01:00
go.sum Add NewUniqueName (#9852) 2022-06-15 20:11:20 +01:00
history_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
login_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
main_test.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
stack_test.go Add gzip flag to filestate backend (#9610) 2022-05-23 12:13:21 -07:00

README.md

Integration Tests

This module provides integration tests for the Pulumi CLI.

The tests can be run via:

make test_all