terraform/internal/cloud
Chris Arcand 1791b71196 cloud: TestCloud_backendWithTags
Implementing this test was quite a rabbithole, as in order to satisfy
backendTestBackendStates() the workspaces returned from
backend.Workspaces() must match exactly, and the shortcut taken to test
pagination in 3cc58813f0 created an
impossible circumstance that got plastered over with the fact that
prefix filtering is done clientside, not by the API as it should be.

Tagging does not rely on clientside filtering, and expects that the
request made to the TFC API returns exactly those workspaces with the
given tags.

These changes include a better way to test pagination, wherein we
actually create over a page worth of valid workspaces in the mock client
and implement a simplified pagination behavior to match how the TFC API
actually works.
2021-10-28 19:29:10 -05:00
..
testdata cloud: Don't ignore .log golden files 2021-10-28 19:29:10 -05:00
backend.go Map CLI workspaces by TFC tags 2021-10-28 19:29:10 -05:00
backend_apply.go Replace generic host error messages for feature support 2021-10-28 19:29:09 -05:00
backend_apply_test.go cloud: TestCloud_backendWithTags 2021-10-28 19:29:10 -05:00
backend_cli.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
backend_colorize.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
backend_common.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
backend_context.go Refactor private workspace fields into workspaceMapping 2021-10-28 19:29:10 -05:00
backend_context_test.go cloud: Backend implements new version of the backend.Local interface 2021-10-28 19:29:09 -05:00
backend_plan.go Replace generic host error messages for feature support 2021-10-28 19:29:09 -05:00
backend_plan_test.go Rename testBackendNoDefault 2021-10-28 19:29:10 -05:00
backend_state.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
backend_state_test.go Update go-tfe to 26689e 2021-10-28 19:29:10 -05:00
backend_test.go cloud: TestCloud_backendWithTags 2021-10-28 19:29:10 -05:00
errors.go Map CLI workspaces by TFC tags 2021-10-28 19:29:10 -05:00
remote_test.go Initial commit of 'cloud' package 2021-10-28 19:29:09 -05:00
testing.go cloud: TestCloud_backendWithTags 2021-10-28 19:29:10 -05:00
tfe_client_mock.go cloud: TestCloud_backendWithTags 2021-10-28 19:29:10 -05:00