Skip to content

Commit 1bf5c9a

Browse files
CLOUDP-141434: Add RootCertType to the atlas go client (#319)
1 parent 3397c40 commit 1bf5c9a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

mongodbatlas/clusters.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ type Cluster struct {
169169
ConnectionStrings *ConnectionStrings `json:"connectionStrings,omitempty"`
170170
Links []*Link `json:"links,omitempty"`
171171
VersionReleaseSystem string `json:"versionReleaseSystem,omitempty"`
172+
RootCertType string `json:"rootCertType,omitempty"`
172173
}
173174

174175
// ProcessArgs represents the advanced configuration options for the cluster.

mongodbatlas/clusters_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ func TestClusters_Create(t *testing.T) {
390390
SrvAddress: "mongodb+srv://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017",
391391
StateName: "IDLE",
392392
VersionReleaseSystem: "LTS",
393+
RootCertType: "ISRGROOTX1",
393394
}
394395

395396
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) {
442443
"srvAddress": "mongodb+srv://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017",
443444
"stateName": "IDLE",
444445
"versionReleaseSystem": "LTS",
446+
"rootCertType": "ISRGROOTX1",
445447
}
446448

447449
jsonBlob := `

0 commit comments

Comments
 (0)