pulumi/pkg
Justin Van Patten 258fb00bc2
[codegen/schema] Fix intermittent failing test (#7304)
The `bad-methods-2.json` test ensures there is an error when trying to use a function as a method twice.

The schema looks like:

```
"methods": {
    "bar": "xyz:index:Foo/bar",
    "baz": "xyz:index:Foo/bar"
}
```

And the expected error is:

> function xyz:index:Foo/bar for method baz is already a method

However, when the schema is unmarshalled into a map, the keys in the map are unordered (just as JSON keys in objects are unordered), so occaisonally we'd see an error mentioning method `bar` rather than `baz`:

> function xyz:index:Foo/bar for method bar is already a method

To address this, we'll fix the portion of the code that is generating the error to walk the map in a deterministic order, and we'll also return the list of methods in the same deterministic order as well.
2021-06-16 07:14:53 -07:00
..
backend Render logs consistently in watch and logs (#7235) 2021-06-08 11:20:59 +10:00
cmd/pulumi [cli/import] - Handle panic during import codegen (#7265) 2021-06-10 19:24:15 -07:00
codegen [codegen/schema] Fix intermittent failing test (#7304) 2021-06-16 07:14:53 -07:00
engine [cli] Protect against panic when using incorrect token type in pulumi import (#7202) 2021-06-04 15:08:40 +03:00
graph [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
operations [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
resource [sdk/nodejs] Warn when a secret config is read as a non-secret (#6896) 2021-05-18 09:48:08 -07:00
secrets [cli] Prevent regression in loading passphrase secrets provider from state (#6976) 2021-05-06 14:40:44 +01:00
testing/integration Tracing enhancements for CLI perf metrics capture (#7279) 2021-06-15 13:25:03 -04:00
util [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
version duplicate version to ensure linking is properly handled 2020-03-19 12:49:34 -07:00
go.mod Bumping version of go-cloud to v.0.23.0 (#7204) 2021-06-03 15:28:33 -07:00
go.sum Bumping version of go-cloud to v.0.23.0 (#7204) 2021-06-03 15:28:33 -07:00