pulumi/sdk/go/pulumi
Thomas Gummerer b5077dc7d3
fix MockMonitor reporting DeletedWith wasn't supported (#14118)
We should support all features in mocks that we are supporting
otherwise. We did a similar thing in pulumi-dotnet:
https://github.com/pulumi/pulumi-dotnet/pull/93.

However here we're not simply changing hasSupport to true.
1e09626bc7
has a good explanation of why we only support specific values here.
However really we only need to disable support for `outputValues`, and
that only if output values are disabled. Originally this was true if
`PULUMI_ENABLE_OUTPUT_VALUES` was set, but that environment variable was
later inverted: 3027d01f25.

This ended up being a little bit more complicated than just passing
true, but I think it's more correct this way. I'm also happy to change
it back to just passing through `true` if that's preferred. Once we
decided on whether this is the right way to do it vs. just passing
`true` unconditionally I'll also update `java` and `dotnet` (if we're
going this way) to do the same.

Fixes #13355

## Checklist

- [x] I have run `make tidy` to update any new dependencies
- [x] I have run `make lint` to verify my code passes the lint check
  - [ ] I have formatted my code using `gofumpt`

<!--- Please provide details if the checkbox below is to be left
unchecked. -->
- [ ] I have added tests that prove my fix is effective or that my
feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [x] I have run `make changelog` and committed the
`changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the
Pulumi Cloud,
then the service should honor older versions of the CLI where this
change would not exist.
You must then bump the API version in
/pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi
Cloud API version
<!-- @Pulumi employees: If yes, you must submit corresponding changes in
the service repo. -->
2023-10-09 14:21:54 +00:00
..
config Add --secret to config set hints when needed 2023-06-22 17:25:30 +01:00
generate [sdk/go] Fix issues with templates (#13872) 2023-09-04 19:51:13 +00:00
internals sdk/internal: pulumi.NewOutput => ctx.NewOutput 2023-01-13 13:31:28 -08:00
provider all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
alias.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
alias_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
asset.go [sdk/{go,dotnet] Unmarshal invalid assets. (#7579) 2021-07-21 13:40:36 -07:00
context.go sdk/go: Move Output implementation to internal 2023-07-25 18:13:35 -07:00
context_test.go fix MockMonitor reporting DeletedWith wasn't supported (#14118) 2023-10-09 14:21:54 +00:00
internals.go sdk/go: Move Output implementation to internal 2023-07-25 18:13:35 -07:00
log.go chore: Update doc comments, coding style, fix lint 2022-10-13 13:50:49 -07:00
mocks.go fix MockMonitor reporting DeletedWith wasn't supported (#14118) 2023-10-09 14:21:54 +00:00
printf.go Redesign the Go SDK resource/input/output system. (#3506) 2020-01-18 10:08:37 -05:00
printf_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
provider.go sdk/go: Move Output implementation to internal 2023-07-25 18:13:35 -07:00
provider_linked.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
provider_test.go Use context.Background in tests (#14029) 2023-09-25 12:25:26 +00:00
resource.go [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
resource_set.go unused: Remove unused functions and types 2023-01-12 09:55:34 -08:00
resource_test.go Use context.Background in tests (#14029) 2023-09-25 12:25:26 +00:00
rpc.go sdk/go: Move Output implementation to internal 2023-07-25 18:13:35 -07:00
rpc_test.go sdk/go: Move Output implementation to internal 2023-07-25 18:13:35 -07:00
run.go sdk/go: Prefer contract.Assertf over Assert 2023-02-15 10:22:43 -08:00
run_test.go sdk/go: Move Output implementation to internal 2023-07-25 18:13:35 -07:00
stack_reference.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
stack_reference_test.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
transformation.go Support transformations in Go (#3978) 2020-03-02 13:59:11 -08:00
type_conversions.go [codegen/go] Improve optional params in invoke 2022-02-01 11:44:40 -08:00
types.go sdk/go: Add pulumix subpackage (#13509) 2023-08-28 15:38:23 +00:00
types_builtins.go sdk/go: Add pulumix subpackage (#13509) 2023-08-28 15:38:23 +00:00
types_builtins_test.go sdk/go: Move Output implementation to internal 2023-07-25 18:13:35 -07:00
types_contravariance_test.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
types_test.go sdk/go: Move Output implementation to internal 2023-07-25 18:13:35 -07:00
urnset.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00