pulumi/pkg/codegen
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
..
docs [codegen/python] Rename conflicting ResourceArgs classes (#7171) 2021-06-10 10:41:49 -07:00
dotnet [codegen/dotnet] Fix plain properties (#7180) 2021-06-04 09:25:20 -07:00
go Fix Go init.go codegen to be govet compliant (#7195) 2021-06-04 13:57:04 +03:00
hcl2 Add an option to skip resource typechecking. (#7305) 2021-06-15 10:22:57 -07:00
importer [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
internal/test [codegen/python] Rename conflicting ResourceArgs classes (#7171) 2021-06-10 10:41:49 -07:00
nodejs [codegen/go] Fix emitted type of resources and types (#7158) 2021-05-27 16:02:19 -07:00
python [codegen/python] Cache the package version (#7293) 2021-06-14 10:22:57 -07:00
schema [codegen/schema] Fix intermittent failing test (#7304) 2021-06-16 07:14:53 -07:00
docs.go Fix inconsistent object type naming. (#6686) 2021-04-15 19:03:28 -07:00
docs_test.go
utilities.go Add helper methods to StringSet 2021-06-09 12:02:32 +02:00
utilities_test.go Add helper methods to StringSet 2021-06-09 12:02:32 +02:00
utilities_types.go Distinguish between inputty and plain args types. (#6811) 2021-04-19 16:40:39 -07:00