Skip to content

Commit

Permalink
GFI-151: add ecs_support to teams_location
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssamw committed Apr 22, 2024
1 parent 04b36cd commit 6f6d756
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/1826.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
gateway: added ecs_support field to teams_location resource
```
1 change: 1 addition & 0 deletions teams_locations.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ type TeamsLocation struct {
AnonymizedLogsEnabled bool `json:"anonymized_logs_enabled"`
IPv4Destination string `json:"ipv4_destination"`
ClientDefault bool `json:"client_default"`
ECSSupport *bool `json:"ecs_support,omitempty"`

CreatedAt *time.Time `json:"created_at,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
Expand Down
8 changes: 8 additions & 0 deletions teams_locations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func TestTeamsLocations(t *testing.T) {
"anonymized_logs_enabled": false,
"ipv4_destination": null,
"client_default": false,
"ecs_support": false,
"created_at": "2020-05-18T22:07:03Z",
"updated_at": "2020-05-18T22:07:05Z"
}
Expand All @@ -60,6 +61,7 @@ func TestTeamsLocations(t *testing.T) {
AnonymizedLogsEnabled: false,
IPv4Destination: "",
ClientDefault: false,
ECSSupport: BoolPtr(false),
CreatedAt: &createdAt,
UpdatedAt: &updatedAt,
}}
Expand Down Expand Up @@ -98,6 +100,7 @@ func TestTeamsLocation(t *testing.T) {
"anonymized_logs_enabled": false,
"ipv4_destination": null,
"client_default": false,
"ecs_support": false,
"created_at": "2020-05-18T22:07:03Z",
"updated_at": "2020-05-18T22:07:05Z"
}
Expand All @@ -118,6 +121,7 @@ func TestTeamsLocation(t *testing.T) {
AnonymizedLogsEnabled: false,
IPv4Destination: "",
ClientDefault: false,
ECSSupport: BoolPtr(false),
CreatedAt: &createdAt,
UpdatedAt: &updatedAt,
}
Expand Down Expand Up @@ -156,6 +160,7 @@ func TestCreateTeamsLocation(t *testing.T) {
"anonymized_logs_enabled": false,
"ipv4_destination": null,
"client_default": false,
"ecs_support": false,
"created_at": "2020-05-18T22:07:03Z",
"updated_at": "2020-05-18T22:07:05Z"
}
Expand All @@ -176,6 +181,7 @@ func TestCreateTeamsLocation(t *testing.T) {
AnonymizedLogsEnabled: false,
IPv4Destination: "",
ClientDefault: false,
ECSSupport: BoolPtr(false),
CreatedAt: &createdAt,
UpdatedAt: &updatedAt,
}
Expand Down Expand Up @@ -218,6 +224,7 @@ func TestUpdateTeamsLocation(t *testing.T) {
"anonymized_logs_enabled": false,
"ipv4_destination": null,
"client_default": false,
"ecs_support": false,
"created_at": "2020-05-18T22:07:03Z",
"updated_at": "2020-05-18T22:07:05Z"
}
Expand All @@ -238,6 +245,7 @@ func TestUpdateTeamsLocation(t *testing.T) {
AnonymizedLogsEnabled: false,
IPv4Destination: "",
ClientDefault: false,
ECSSupport: BoolPtr(false),
CreatedAt: &createdAt,
UpdatedAt: &updatedAt,
}
Expand Down

0 comments on commit 6f6d756

Please sign in to comment.