Skip to content

Commit aea6949

Browse files
authored
Merge pull request #1177 from hashicorp/TF-27429-go-tfe-support-for-queries
QueryRuns beta interface
2 parents 4318b5e + b438d95 commit aea6949

File tree

7 files changed

+665
-4
lines changed

7 files changed

+665
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,16 @@
33
## Bug Fixes
44

55
* Fixes `IngressAttributes` field decoding in `PolicySetVersion` by @rageshganeshkumar [#1164](https://github.com/hashicorp/go-tfe/pull/1164)
6+
* Fixes issue [1061](https://github.com/hashicorp/go-tfe/issues/1061), validation accepts all RunStatus including `"cost_estimated"` by @KenCox-Hashicorp [#1171](https://github.com/hashicorp/go-tfe/pull/1171)
67

78
## Enhancements
89
* Add support for querying and filtering private registry modules based on a search query, `provider`, `registry_name` and `organization_name`, by @gautambaghel [#1179](https://github.com/hashicorp/go-tfe/pull/1179)
910
* Adds support for `RegistryModule` VCS source_directory and tag_prefix options, by @jillrami [#1154] (https://github.com/hashicorp/go-tfe/pull/1154)
1011
* Adds endpoint for reruning a stack deployment by @hwatkins05-hashicorp/@Maed223 [#1176](https://github.com/hashicorp/go-tfe/pull/1176)
1112
* Adds `ReadByName` for `StackDeploymentGroup` by @Maed223 [#1181](https://github.com/hashicorp/go-tfe/pull/1181)
13+
* Adds BETA support for listing `QueryRuns`, which is EXPERIMENTAL, SUBJECT TO CHANGE, and may not be available to all users by @brandonc [#1177](https://github.com/hashicorp/go-tfe/pull/1177)
1214

1315

14-
## Bug Fixes
15-
* Fixes issue [1061](https://github.com/hashicorp/go-tfe/issues/1061), validation accepts all RunStatus including `"cost_estimated"` by @KenCox-Hashicorp [#1171](https://github.com/hashicorp/go-tfe/pull/1171)
16-
1716
# v1.89.0
1817

1918
## Enhancements

errors.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,8 @@ var (
392392

393393
ErrInvalidTestRunID = errors.New("invalid value for test run id")
394394

395+
ErrInvalidQueryRunID = errors.New("invalid value for query run id")
396+
395397
ErrTerraformVersionValidForPlanOnly = errors.New("setting terraform-version is only valid when plan-only is set to true")
396398

397399
ErrStateMustBeOmitted = errors.New("when uploading state, the State and JSONState strings must be omitted from options")

generate_mocks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ mockgen -source=registry_module.go -destination=mocks/registry_module_mocks.go -
4848
mockgen -source=registry_provider.go -destination=mocks/registry_provider_mocks.go -package=mocks
4949
mockgen -source=registry_provider_platform.go -destination=mocks/registry_provider_platform_mocks.go -package=mocks
5050
mockgen -source=registry_provider_version.go -destination=mocks/registry_provider_version_mocks.go -package=mocks
51+
mockgen -source=query_runs.go -destination=mocks/query_runs_mocks.go -package=mocks
5152
mockgen -source=run.go -destination=mocks/run_mocks.go -package=mocks
5253
mockgen -source=run_event.go -destination=mocks/run_events_mocks.go -package=mocks
5354
mockgen -source=run_task.go -destination=mocks/run_tasks_mocks.go -package=mocks
@@ -77,4 +78,3 @@ mockgen -source=project.go -destination=mocks/project_mocks.go -package=mocks
7778
mockgen -source=registry_no_code_module.go -destination=mocks/registry_no_code_module_mocks.go -package=mocks
7879
mockgen -source=registry_module.go -destination=mocks/registry_module_mocks.go -package=mocks
7980
mockgen -source=workspace_resources.go -destination=mocks/workspace_resources.go -package=mocks
80-
mockgen -source=registry_module.go -destination=mocks/registry_module_mocks.go -package=mocks

mocks/query_runs_mocks.go

Lines changed: 129 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)