Skip to content

Commit

Permalink
rename enabled to in use for gateway certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssamw committed Aug 27, 2024
1 parent e4ee7f2 commit 3a85591
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .changelog/2937.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
GIN-341: renamed enabled to in use for gateway certificates
```
2 changes: 1 addition & 1 deletion teams_certificates.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

type TeamsCertificate struct {
Enabled *bool `json:"enabled"`
InUse *bool `json:"in_use"`
ID string `json:"id"`
BindingStatus string `json:"binding_status"`
QsPackId string `json:"qs_pack_id"`
Expand Down
14 changes: 7 additions & 7 deletions teams_certificates_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestTeamsCertificate(t *testing.T) {
"errors": [],
"messages": [],
"result": {
"enabled": false,
"in_use": false,
"id": "80c8a54e-d55c-46c6-86bb-e8a3c90472f4",
"binding_status": "inactive",
"qs_pack_id": "00000000-0000-0000-0000-000000000000",
Expand All @@ -42,7 +42,7 @@ func TestTeamsCertificate(t *testing.T) {
actual, err := client.TeamsCertificate(context.Background(), testAccountID, testCertID)

if assert.NoError(t, err) {
assert.Equal(t, *actual.Enabled, false)
assert.Equal(t, *actual.InUse, false)
assert.Equal(t, actual.ID, testCertID)
assert.Equal(t, actual.BindingStatus, "inactive")
assert.Equal(t, actual.Type, "gateway_managed")
Expand All @@ -62,7 +62,7 @@ func TestTeamsCertificatesList(t *testing.T) {
"messages": [],
"result": [
{
"enabled": false,
"in_use": false,
"id": "43a36083-987b-4321-95ab-4052771c4e6f",
"binding_status": "inactive",
"qs_pack_id": "00000000-0000-0000-0000-000000000000",
Expand All @@ -73,7 +73,7 @@ func TestTeamsCertificatesList(t *testing.T) {
"expires_on": "2122-10-29T16:59:47Z"
},
{
"enabled": false,
"in_use": false,
"id": "4a9d6ecf-0fdd-4676-818a-ee6b45f17f9b",
"binding_status": "inactive",
"qs_pack_id": "00000000-0000-0000-0000-000000000000",
Expand Down Expand Up @@ -111,7 +111,7 @@ func TestTeamsAccountGenerateCertificate(t *testing.T) {
"errors": [],
"messages": [],
"result": {
"enabled": false,
"in_use": false,
"id": "80c8a54e-d55c-46c6-86bb-e8a3c90472f4",
"binding_status": "inactive",
"qs_pack_id": "00000000-0000-0000-0000-000000000000",
Expand Down Expand Up @@ -149,7 +149,7 @@ func TestTeamsActivateCertificate(t *testing.T) {
"errors": [],
"messages": [],
"result": {
"enabled": false,
"in_use": false,
"id": "80c8a54e-d55c-46c6-86bb-e8a3c90472f4",
"binding_status": "pending_deployment",
"qs_pack_id": "00000000-0000-0000-0000-000000000000",
Expand Down Expand Up @@ -183,7 +183,7 @@ func TestTeamsDeactivateCertificate(t *testing.T) {
"errors": [],
"messages": [],
"result": {
"enabled": false,
"in_use": false,
"id": "80c8a54e-d55c-46c6-86bb-e8a3c90472f4",
"binding_status": "pending_deletion",
"qs_pack_id": "00000000-0000-0000-0000-000000000000",
Expand Down

0 comments on commit 3a85591

Please sign in to comment.