terraform/internal/command/jsonprovider
Sarah French f88d09544e
PSS: Add tests showing provider commands being used with PSS (#37959)
* test: Add E2E test for using pluggable state storage with the `providers` command

Note: I've excluded the `terraform providers locks` and `terraform providers mirror` commands as they don't interact with backends.

* test: Add integration test for using pluggable state storage with the `providers` command

* refactor: Change ioutil.ReadDir to os.ReadDir

* test: Add integration test for using pluggable state storage with the `providers schema` command

* feat: Allow state store schema's to be included when schemas are marshalled into JSON output

* test: Assert that state stores are present in provider schemas returned from `providers schema`.

* test: Update existing tests to accommodate state stores being in provider schema output

* test: Update E2E test for `providers` commands to be better scoped to testing use of a state store to access and use state when generating output.

This complements TestProvidersSchema that tests that state stores in a provider are reflected in the JSON representations of the schemas that the command returns.

* chore: Replace `io/ioutil` with `io` in `providers schema` tests
2025-12-17 19:44:36 +00:00
..
attribute.go Marshall resource identity schemas in jsonprovider (#36675) 2025-03-12 09:53:03 +01:00
attribute_test.go Marshall resource identity schemas in jsonprovider (#36675) 2025-03-12 09:53:03 +01:00
block.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
block_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
doc.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00
provider.go PSS: Add tests showing provider commands being used with PSS (#37959) 2025-12-17 19:44:36 +00:00
provider_test.go PSS: Add tests showing provider commands being used with PSS (#37959) 2025-12-17 19:44:36 +00:00
schema.go actions: move schema to single action type and remove linked resources 2025-09-15 17:09:22 +02:00
schema_test.go Update copyright file headers to BUSL-1.1 2023-08-10 23:43:27 +01:00