Skip to content

Commit

Permalink
INTMDB-801: Add State and Hostnames fields to Data Federation (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaangiolillo committed May 15, 2023
1 parent fc9a22b commit 0f62064
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mongodbatlas/data_federation.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ type DataFederationInstance struct {
DataProcessRegion *DataProcessRegion `json:"dataProcessRegion,omitempty"`
Storage *DataFederationStorage `json:"storage,omitempty"`
Name string `json:"name,omitempty"`
State string `json:"state,omitempty"`
Hostnames []string `json:"hostnames,omitempty"`
}

// DataFederationStorage represents the storage configuration for a data lake.
Expand Down
6 changes: 5 additions & 1 deletion mongodbatlas/data_federation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ func TestDataFederation_Create(t *testing.T) {
"region" : "VIRGINIA_USA"
},
"name": "UserMetricData",
"state": "ACTIVE",
"hostnames": ["test.mongodb-dev.net"],
"storage": {
"databases": [
{
Expand Down Expand Up @@ -471,7 +473,9 @@ func TestDataFederation_Create(t *testing.T) {
CloudProvider: "AWS",
Region: "VIRGINIA_USA",
},
Name: "UserMetricData",
Name: "UserMetricData",
State: "ACTIVE",
Hostnames: []string{"test.mongodb-dev.net"},
Storage: &DataFederationStorage{
Databases: []*DataFederationDatabase{
{
Expand Down

0 comments on commit 0f62064

Please sign in to comment.