diff --git a/mongodbatlas/clusters.go b/mongodbatlas/clusters.go index 0904bc393..00a371fe4 100644 --- a/mongodbatlas/clusters.go +++ b/mongodbatlas/clusters.go @@ -169,6 +169,7 @@ type Cluster struct { ConnectionStrings *ConnectionStrings `json:"connectionStrings,omitempty"` Links []*Link `json:"links,omitempty"` VersionReleaseSystem string `json:"versionReleaseSystem,omitempty"` + RootCertType string `json:"rootCertType,omitempty"` } // ProcessArgs represents the advanced configuration options for the cluster. diff --git a/mongodbatlas/clusters_test.go b/mongodbatlas/clusters_test.go index be370280d..f8218c178 100644 --- a/mongodbatlas/clusters_test.go +++ b/mongodbatlas/clusters_test.go @@ -390,6 +390,7 @@ func TestClusters_Create(t *testing.T) { SrvAddress: "mongodb+srv://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017", StateName: "IDLE", VersionReleaseSystem: "LTS", + RootCertType: "ISRGROOTX1", } mux.HandleFunc(fmt.Sprintf("/api/atlas/v1.0/groups/%s/clusters", groupID), func(w http.ResponseWriter, r *http.Request) { @@ -442,6 +443,7 @@ func TestClusters_Create(t *testing.T) { "srvAddress": "mongodb+srv://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017", "stateName": "IDLE", "versionReleaseSystem": "LTS", + "rootCertType": "ISRGROOTX1", } jsonBlob := `