Commit Graph

3 Commits

Author SHA1 Message Date
Fraser Waters 8c85d428a8
Conformance tests check GetRequiredPackages ()
This also updates Python, Go, and NodeJS to use GetRequiredPackages
instead of GetRequiredPlugins, as they get tested via conformance
testing.
2024-12-09 15:03:14 +00:00
Zaid Ajaj f403bbb7b5
[go/conformance] Fix l2-resource-config conformance test ()
### Description

This PR fixes l2-resource-config conformance test in Go. The problem was
that we weren't emitting the version of the package as part the default
resource options unless we have `respectSchemaVersion: true` in the Go
language options in our test schemas. The fix is to emit the exact
version not only when `respectSchemaVersion: true` but also when the
package supports packing and the version is specified (as the case with
the conformance test providers)
2024-09-29 11:28:04 +00:00
Zaid Ajaj 54e0bba6ff
[go/conformance] Fix l2-resource-primitives test ()
### Description

This PR fixes the l2-resource-primitives conformance test in Go. The
problem was that expressions of the form `UnaryOperationExpr(Negate,
NumberExpr(N))` didn't get _lifted_ properly: we emitted `-N` instead of
`pulumi.Float64(-N)`.

The solution here is to rewrite the expression first from
`UnaryOperationExpr(Negate, NumberExpr(N))` into `NumberExpr(-N)` and
only then lift it like any other number.
2024-09-26 05:15:38 +00:00