@@ -351,8 +351,6 @@ func TestClusters_Create(t *testing.T) {
351351 client , mux , teardown := setup ()
352352 defer teardown ()
353353
354- groupID := "1"
355-
356354 createRequest := & Cluster {
357355 ID : "1" ,
358356 AutoScaling : & AutoScaling {DiskGBEnabled : pointy .Bool (true ),
@@ -536,9 +534,6 @@ func TestClusters_Update(t *testing.T) {
536534 client , mux , teardown := setup ()
537535 defer teardown ()
538536
539- groupID := "1"
540- clusterName := "AppData"
541-
542537 updateRequest := & Cluster {
543538 ID : "1" ,
544539 AutoScaling : & AutoScaling {DiskGBEnabled : pointy .Bool (true ),
@@ -601,7 +596,7 @@ func TestClusters_Update(t *testing.T) {
601596 "mongoURI" : "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017" ,
602597 "mongoURIUpdated" : "2017-10-23T21:26:17Z" ,
603598 "mongoURIWithOptions" : "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017/?ssl=true&authSource=admin&replicaSet=mongo-shard-0" ,
604- "name" : "AppData" ,
599+ "name" : clusterName ,
605600 "numShards" : float64 (1 ),
606601 "paused" : false ,
607602 "providerSettings" : map [string ]interface {}{
@@ -652,7 +647,7 @@ func TestClusters_Update(t *testing.T) {
652647 "mongoURI": "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017",
653648 "mongoURIUpdated": "2017-10-23T21:26:17Z",
654649 "mongoURIWithOptions": "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017/?ssl=true&authSource=admin&replicaSet=mongo-shard-0",
655- "name": "AppData ",
650+ "name": "globalCluster ",
656651 "numShards": 1,
657652 "paused": false,
658653 "pitEnabled": false,
@@ -731,8 +726,6 @@ func TestClusters_UpdateProcessArgs(t *testing.T) {
731726 client , mux , teardown := setup ()
732727 defer teardown ()
733728
734- groupID := "1"
735- clusterName := "AppData"
736729 tlsProtocol := "TLS1_2"
737730 defaultReadConcern := "available"
738731 defaultWriteConcern := "1"
@@ -812,9 +805,6 @@ func TestClusters_GetProcessArgs(t *testing.T) {
812805 client , mux , teardown := setup ()
813806 defer teardown ()
814807
815- groupID := "1"
816- clusterName := "test-cluster"
817-
818808 mux .HandleFunc (fmt .Sprintf ("/api/atlas/v1.0/groups/%s/clusters/%s/processArgs" , groupID , clusterName ), func (w http.ResponseWriter , r * http.Request ) {
819809 testMethod (t , r , http .MethodGet )
820810 fmt .Fprint (w , `{
@@ -862,9 +852,6 @@ func TestClusters_Get(t *testing.T) {
862852 client , mux , teardown := setup ()
863853 defer teardown ()
864854
865- groupID := "1"
866- clusterName := "appData"
867-
868855 mux .HandleFunc (fmt .Sprintf ("/api/atlas/v1.0/groups/%s/clusters/%s" , groupID , clusterName ), func (w http.ResponseWriter , r * http.Request ) {
869856 testMethod (t , r , http .MethodGet )
870857 fmt .Fprint (w , `{
@@ -911,7 +898,7 @@ func TestClusters_Get(t *testing.T) {
911898 "mongoURI": "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017",
912899 "mongoURIUpdated": "2017-10-23T21:26:17Z",
913900 "mongoURIWithOptions": "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017/?ssl=true&authSource=admin&replicaSet=mongo-shard-0",
914- "name": "AppData ",
901+ "name": "globalCluster ",
915902 "numShards": 1,
916903 "paused": false,
917904 "pitEnabled": false,
@@ -977,7 +964,7 @@ func TestClusters_Get(t *testing.T) {
977964 MongoURI : "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017" ,
978965 MongoURIUpdated : "2017-10-23T21:26:17Z" ,
979966 MongoURIWithOptions : "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017/?ssl=true&authSource=admin&replicaSet=mongo-shard-0" ,
980- Name : "AppData" ,
967+ Name : clusterName ,
981968 NumShards : pointy .Int64 (1 ),
982969 Paused : pointy .Bool (false ),
983970 PitEnabled : pointy .Bool (false ),
@@ -1012,9 +999,6 @@ func TestClusters_Status(t *testing.T) {
1012999 client , mux , teardown := setup ()
10131000 defer teardown ()
10141001
1015- groupID := "1"
1016- clusterName := "appData"
1017-
10181002 mux .HandleFunc (fmt .Sprintf ("/api/atlas/v1.0/groups/%s/clusters/%s/status" , groupID , clusterName ), func (w http.ResponseWriter , r * http.Request ) {
10191003 testMethod (t , r , http .MethodGet )
10201004 fmt .Fprint (w , `{ "changeStatus": "PENDING" }` )
@@ -1036,14 +1020,11 @@ func TestClusters_LoadSampleDataset(t *testing.T) {
10361020 client , mux , teardown := setup ()
10371021 defer teardown ()
10381022
1039- groupID := "1"
1040- clusterName := "appData"
1041-
10421023 mux .HandleFunc (fmt .Sprintf ("/api/atlas/v1.0/groups/%s/sampleDatasetLoad/%s" , groupID , clusterName ), func (w http.ResponseWriter , r * http.Request ) {
10431024 testMethod (t , r , http .MethodPost )
10441025 fmt .Fprint (w , `{
10451026 "_id": "1",
1046- "clusterName": "appData ",
1027+ "clusterName": "globalCluster ",
10471028 "completeDate": null,
10481029 "createDate": "2021-03-26T16:30:47Z",
10491030 "errorMessage": null,
@@ -1071,7 +1052,6 @@ func TestClusters_GetSampleDatasetStatus(t *testing.T) {
10711052 client , mux , teardown := setup ()
10721053 defer teardown ()
10731054
1074- groupID := "1"
10751055 jobID := "1"
10761056
10771057 mux .HandleFunc (fmt .Sprintf ("/api/atlas/v1.0/groups/%s/sampleDatasetLoad/%s" , groupID , jobID ), func (w http.ResponseWriter , r * http.Request ) {
@@ -1106,8 +1086,6 @@ func TestCloudProviderRegions_Get(t *testing.T) {
11061086 client , mux , teardown := setup ()
11071087 defer teardown ()
11081088
1109- groupID := "5b6212af90dc76637950a2c6"
1110-
11111089 path := fmt .Sprintf ("/api/atlas/v1.0/groups/%s/clusters/provider/regions" , groupID )
11121090
11131091 mux .HandleFunc (path , func (w http.ResponseWriter , r * http.Request ) {
@@ -1313,9 +1291,6 @@ func TestClusters_Upgrade(t *testing.T) {
13131291 client , mux , teardown := setup ()
13141292 defer teardown ()
13151293
1316- groupID := "1"
1317- clusterName := "AppData"
1318-
13191294 upgradeRequest := & Cluster {
13201295 ID : "1" ,
13211296 AutoScaling : & AutoScaling {DiskGBEnabled : pointy .Bool (true ),
@@ -1378,7 +1353,7 @@ func TestClusters_Upgrade(t *testing.T) {
13781353 "mongoURI" : "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017" ,
13791354 "mongoURIUpdated" : "2017-10-23T21:26:17Z" ,
13801355 "mongoURIWithOptions" : "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017/?ssl=true&authSource=admin&replicaSet=mongo-shard-0" ,
1381- "name" : "AppData" ,
1356+ "name" : clusterName ,
13821357 "numShards" : float64 (1 ),
13831358 "paused" : false ,
13841359 "providerSettings" : map [string ]interface {}{
@@ -1429,7 +1404,7 @@ func TestClusters_Upgrade(t *testing.T) {
14291404 "mongoURI": "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017",
14301405 "mongoURIUpdated": "2017-10-23T21:26:17Z",
14311406 "mongoURIWithOptions": "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017/?ssl=true&authSource=admin&replicaSet=mongo-shard-0",
1432- "name": "AppData ",
1407+ "name": "globalCluster ",
14331408 "numShards": 1,
14341409 "paused": false,
14351410 "pitEnabled": false,
0 commit comments