pulumi/sdk/dotnet/Pulumi.Automation.Tests
Aaron Friel 91842d2241 [sdk/dotnet] Fix inconsistent automation test
This test was flakey for me when building on Windows & *nix using different versions of the dotnet
framework or depending on whether I had an up to date Pulumi version installed. The regex match is
to blame.

On old versions during CI when we do build a version locally, we expect a message on stdout advising
that a new version is available. If the user hasn't built the language provider locally or has the
current version built, we expect an empty string.

Rather than use regex, which had inconsistent matching behavior and as usual, caused two problems,
we just test if the string is nonempty first.

Once and for all, this test resolves this test passing the matrix consisting of:

 Pulumi version   |    OS   | .NET SDK
 ---------------- | ------- | --------
 3.21.1 (old)     | Windows | 3.1
 3.21.1 (old)     | Windows | 6.0
 3.21.1 (old)     | Linux   | 3.1
 3.21.1 (old)     | Linux   | 6.0
 3.22.2 (current) | Windows | 3.1
 3.22.2 (current) | Windows | 6.0
 3.22.2 (current) | Linux   | 3.1
 3.22.2 (current) | Linux   | 6.0
2022-01-19 13:36:49 -08:00
..
Data Add `make tidy` command to apply `go mod tidy` on every go.mod (#8635) 2021-12-23 17:37:39 -05:00
Serialization [dotnet] Fix Resharper code issues (#7178) 2021-06-10 10:32:33 -04:00
CommandExceptionTests.cs Set PULUMI_CONFIG_PASSPHRASE for Automation Tests (#7502) 2021-07-20 17:18:30 -07:00
EventLogWatcherTests.cs [dotnet] Fix Resharper code issues (#7178) 2021-06-10 10:32:33 -04:00
LocalPulumiCmdTests.cs [sdk/dotnet] Fix inconsistent automation test 2022-01-19 13:36:49 -08:00
LocalWorkspaceTests.cs Fix for 8518 automation API issue with set_config "-value" (#8614) 2021-12-23 13:44:56 -05:00
Pulumi.Automation.Tests.csproj Support microsoft logging extensions with inline programs (#7117) 2021-06-10 23:06:57 -04:00
xunit.runner.json Support microsoft logging extensions with inline programs (#7117) 2021-06-10 23:06:57 -04:00