@@ -351,8 +351,6 @@ func TestClusters_Create(t *testing.T) {
351
351
client , mux , teardown := setup ()
352
352
defer teardown ()
353
353
354
- groupID := "1"
355
-
356
354
createRequest := & Cluster {
357
355
ID : "1" ,
358
356
AutoScaling : & AutoScaling {DiskGBEnabled : pointy .Bool (true ),
@@ -536,9 +534,6 @@ func TestClusters_Update(t *testing.T) {
536
534
client , mux , teardown := setup ()
537
535
defer teardown ()
538
536
539
- groupID := "1"
540
- clusterName := "AppData"
541
-
542
537
updateRequest := & Cluster {
543
538
ID : "1" ,
544
539
AutoScaling : & AutoScaling {DiskGBEnabled : pointy .Bool (true ),
@@ -601,7 +596,7 @@ func TestClusters_Update(t *testing.T) {
601
596
"mongoURI" : "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017" ,
602
597
"mongoURIUpdated" : "2017-10-23T21:26:17Z" ,
603
598
"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 ,
605
600
"numShards" : float64 (1 ),
606
601
"paused" : false ,
607
602
"providerSettings" : map [string ]interface {}{
@@ -652,7 +647,7 @@ func TestClusters_Update(t *testing.T) {
652
647
"mongoURI": "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017",
653
648
"mongoURIUpdated": "2017-10-23T21:26:17Z",
654
649
"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 ",
656
651
"numShards": 1,
657
652
"paused": false,
658
653
"pitEnabled": false,
@@ -731,8 +726,6 @@ func TestClusters_UpdateProcessArgs(t *testing.T) {
731
726
client , mux , teardown := setup ()
732
727
defer teardown ()
733
728
734
- groupID := "1"
735
- clusterName := "AppData"
736
729
tlsProtocol := "TLS1_2"
737
730
defaultReadConcern := "available"
738
731
defaultWriteConcern := "1"
@@ -812,9 +805,6 @@ func TestClusters_GetProcessArgs(t *testing.T) {
812
805
client , mux , teardown := setup ()
813
806
defer teardown ()
814
807
815
- groupID := "1"
816
- clusterName := "test-cluster"
817
-
818
808
mux .HandleFunc (fmt .Sprintf ("/api/atlas/v1.0/groups/%s/clusters/%s/processArgs" , groupID , clusterName ), func (w http.ResponseWriter , r * http.Request ) {
819
809
testMethod (t , r , http .MethodGet )
820
810
fmt .Fprint (w , `{
@@ -862,9 +852,6 @@ func TestClusters_Get(t *testing.T) {
862
852
client , mux , teardown := setup ()
863
853
defer teardown ()
864
854
865
- groupID := "1"
866
- clusterName := "appData"
867
-
868
855
mux .HandleFunc (fmt .Sprintf ("/api/atlas/v1.0/groups/%s/clusters/%s" , groupID , clusterName ), func (w http.ResponseWriter , r * http.Request ) {
869
856
testMethod (t , r , http .MethodGet )
870
857
fmt .Fprint (w , `{
@@ -911,7 +898,7 @@ func TestClusters_Get(t *testing.T) {
911
898
"mongoURI": "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017",
912
899
"mongoURIUpdated": "2017-10-23T21:26:17Z",
913
900
"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 ",
915
902
"numShards": 1,
916
903
"paused": false,
917
904
"pitEnabled": false,
@@ -977,7 +964,7 @@ func TestClusters_Get(t *testing.T) {
977
964
MongoURI : "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017" ,
978
965
MongoURIUpdated : "2017-10-23T21:26:17Z" ,
979
966
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 ,
981
968
NumShards : pointy .Int64 (1 ),
982
969
Paused : pointy .Bool (false ),
983
970
PitEnabled : pointy .Bool (false ),
@@ -1012,9 +999,6 @@ func TestClusters_Status(t *testing.T) {
1012
999
client , mux , teardown := setup ()
1013
1000
defer teardown ()
1014
1001
1015
- groupID := "1"
1016
- clusterName := "appData"
1017
-
1018
1002
mux .HandleFunc (fmt .Sprintf ("/api/atlas/v1.0/groups/%s/clusters/%s/status" , groupID , clusterName ), func (w http.ResponseWriter , r * http.Request ) {
1019
1003
testMethod (t , r , http .MethodGet )
1020
1004
fmt .Fprint (w , `{ "changeStatus": "PENDING" }` )
@@ -1036,14 +1020,11 @@ func TestClusters_LoadSampleDataset(t *testing.T) {
1036
1020
client , mux , teardown := setup ()
1037
1021
defer teardown ()
1038
1022
1039
- groupID := "1"
1040
- clusterName := "appData"
1041
-
1042
1023
mux .HandleFunc (fmt .Sprintf ("/api/atlas/v1.0/groups/%s/sampleDatasetLoad/%s" , groupID , clusterName ), func (w http.ResponseWriter , r * http.Request ) {
1043
1024
testMethod (t , r , http .MethodPost )
1044
1025
fmt .Fprint (w , `{
1045
1026
"_id": "1",
1046
- "clusterName": "appData ",
1027
+ "clusterName": "globalCluster ",
1047
1028
"completeDate": null,
1048
1029
"createDate": "2021-03-26T16:30:47Z",
1049
1030
"errorMessage": null,
@@ -1071,7 +1052,6 @@ func TestClusters_GetSampleDatasetStatus(t *testing.T) {
1071
1052
client , mux , teardown := setup ()
1072
1053
defer teardown ()
1073
1054
1074
- groupID := "1"
1075
1055
jobID := "1"
1076
1056
1077
1057
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) {
1106
1086
client , mux , teardown := setup ()
1107
1087
defer teardown ()
1108
1088
1109
- groupID := "5b6212af90dc76637950a2c6"
1110
-
1111
1089
path := fmt .Sprintf ("/api/atlas/v1.0/groups/%s/clusters/provider/regions" , groupID )
1112
1090
1113
1091
mux .HandleFunc (path , func (w http.ResponseWriter , r * http.Request ) {
@@ -1313,9 +1291,6 @@ func TestClusters_Upgrade(t *testing.T) {
1313
1291
client , mux , teardown := setup ()
1314
1292
defer teardown ()
1315
1293
1316
- groupID := "1"
1317
- clusterName := "AppData"
1318
-
1319
1294
upgradeRequest := & Cluster {
1320
1295
ID : "1" ,
1321
1296
AutoScaling : & AutoScaling {DiskGBEnabled : pointy .Bool (true ),
@@ -1378,7 +1353,7 @@ func TestClusters_Upgrade(t *testing.T) {
1378
1353
"mongoURI" : "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017" ,
1379
1354
"mongoURIUpdated" : "2017-10-23T21:26:17Z" ,
1380
1355
"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 ,
1382
1357
"numShards" : float64 (1 ),
1383
1358
"paused" : false ,
1384
1359
"providerSettings" : map [string ]interface {}{
@@ -1429,7 +1404,7 @@ func TestClusters_Upgrade(t *testing.T) {
1429
1404
"mongoURI": "mongodb://mongo-shard-00-00.mongodb.net:27017,mongo-shard-00-01.mongodb.net:27017,mongo-shard-00-02.mongodb.net:27017",
1430
1405
"mongoURIUpdated": "2017-10-23T21:26:17Z",
1431
1406
"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 ",
1433
1408
"numShards": 1,
1434
1409
"paused": false,
1435
1410
"pitEnabled": false,
0 commit comments