Skip to content

Commit

Permalink
Fix linting error and add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
JarrettSpiker committed Apr 26, 2024
1 parent 7099cba commit 774956e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
* Adds `Teams` field to `OrganizationMembershipCreateOptions` to allow users to be added to teams at the same time they are invited to an organization. by @JarrettSpiker [#886](https://github.com/hashicorp/go-tfe/pull/886)
* `IsCloud()` returns true when TFP-AppName is "HCP Terraform" by @sebasslash [#891](https://github.com/hashicorp/go-tfe/pull/891)
* `OrganizationScoped` attribute for `OAuthClient` is now generally available by @netramali [#873](https://github.com/hashicorp/go-tfe/pull/873)
* Add `EnforcementLevel` to `Policy` create and update options. This will replace the deprecated `[]Enforce` method for specifying enforcement level. @JarrettSpiker [#895](https://github.com/hashicorp/go-tfe/pull/895)

## Deprecations
* The `Enforce` fields on `Policy`, `PolicyCreateOptions`, and `PolicyUpdateOptions` have been deprecated. Use the `EnforcementLevel` instead. @JarrettSpiker [#895](https://github.com/hashicorp/go-tfe/pull/895)

# v1.50.0

Expand Down
1 change: 0 additions & 1 deletion policy_integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,6 @@ func TestPoliciesUpdate(t *testing.T) {
assert.Equal(t, pBefore.Name, pAfter.Name)
assert.Equal(t, pBefore.EnforcementLevel, EnforcementMandatory)
assert.Equal(t, pAfter.EnforcementLevel, EnforcementAdvisory)

})

t.Run("update query when kind is not OPA", func(t *testing.T) {
Expand Down

0 comments on commit 774956e

Please sign in to comment.