@@ -96,40 +96,6 @@ public void testListNameSpaces() {
9696 @ Test
9797 @ Tag ("IntegrationTest" )
9898 @ Order (3 )
99- public void testListMets () {
100- assertDoesNotThrow (() -> {
101- CompletableFuture <ArrayList <String >> future = cwActions .listMetsAsync (namespace );
102- ArrayList <String > metList = future .join ();
103- assertFalse (metList .isEmpty ());
104-
105- });
106- logger .info ("Test 3 passed" );
107- }
108- @ Test
109- @ Tag ("IntegrationTest" )
110- @ Order (4 )
111- public void testGetSpecificMet () {
112- assertDoesNotThrow (() -> {
113- myDimension = cwActions .getSpecificMetAsync (namespace ).join ();
114- assertNotNull (myDimension , "The retrieved metric dimension should not be null" );
115- });
116- logger .info ("Test 4 passed" );
117- }
118-
119- @ Test
120- @ Tag ("IntegrationTest" )
121- @ Order (5 )
122- public void testGetAndDisplayMetric () {
123- assertDoesNotThrow (() -> {
124- CompletableFuture <GetMetricStatisticsResponse > future = cwActions .getAndDisplayMetricStatisticsAsync ("AWS/MemoryDB" ,"ActiveDefragHits" , "Maximum" , myDateSc , myDimension );
125- future .join ();
126- });
127- logger .info ("Test 5 passed" );
128- }
129-
130- @ Test
131- @ Tag ("IntegrationTest" )
132- @ Order (6 )
13399 void testCreateDashboard () {
134100 assertDoesNotThrow (() -> {
135101 CompletableFuture <PutDashboardResponse > future = cwActions .createDashboardWithMetricsAsync (dashboardNameSc , dashboardJsonSc );
@@ -140,7 +106,7 @@ void testCreateDashboard() {
140106
141107 @ Test
142108 @ Tag ("IntegrationTest" )
143- @ Order (7 )
109+ @ Order (4 )
144110 public void testGetMetricData () {
145111 assertDoesNotThrow (() -> {
146112 CompletableFuture <GetMetricStatisticsResponse > future = cwActions .getMetricStatisticsAsync (costDateWeekSc );
@@ -151,7 +117,7 @@ public void testGetMetricData() {
151117
152118 @ Test
153119 @ Tag ("IntegrationTest" )
154- @ Order (8 )
120+ @ Order (5 )
155121 public void testListDashboards () {
156122 assertDoesNotThrow (() -> {
157123 CompletableFuture <Void > future = cwActions .listDashboardsAsync ();
@@ -162,7 +128,7 @@ public void testListDashboards() {
162128
163129 @ Test
164130 @ Tag ("IntegrationTest" )
165- @ Order (9 )
131+ @ Order (6 )
166132 public void testListMetrics () {
167133 Double dataPoint = Double .parseDouble ("10.0" );
168134 assertDoesNotThrow (() -> {
@@ -174,7 +140,7 @@ public void testListMetrics() {
174140
175141 @ Test
176142 @ Tag ("IntegrationTest" )
177- @ Order (10 )
143+ @ Order (7 )
178144 public void testMetricToDashboard () {
179145 assertDoesNotThrow (() -> {
180146 CompletableFuture <PutDashboardResponse > future = cwActions .addMetricToDashboardAsync (dashboardAddSc , dashboardNameSc );
@@ -185,7 +151,7 @@ public void testMetricToDashboard() {
185151 }
186152 @ Test
187153 @ Tag ("IntegrationTest" )
188- @ Order (11 )
154+ @ Order (8 )
189155 public void testCreateAlarm () {
190156 assertDoesNotThrow (() -> {
191157 CompletableFuture <String > future = cwActions .createAlarmAsync (settingsSc );
@@ -197,7 +163,7 @@ public void testCreateAlarm() {
197163
198164 @ Test
199165 @ Tag ("IntegrationTest" )
200- @ Order (12 )
166+ @ Order (9 )
201167 public void testDescribeAlarms () {
202168 assertDoesNotThrow (() -> {
203169 CompletableFuture <Void > future = cwActions .describeAlarmsAsync ();
@@ -208,7 +174,7 @@ public void testDescribeAlarms() {
208174
209175 @ Test
210176 @ Tag ("IntegrationTest" )
211- @ Order (13 )
177+ @ Order (10 )
212178 public void testCustomMetricData () {
213179 assertDoesNotThrow (() -> {
214180 CompletableFuture <Void > future = cwActions .getCustomMetricDataAsync (settingsSc );
@@ -219,7 +185,7 @@ public void testCustomMetricData() {
219185
220186 @ Test
221187 @ Tag ("IntegrationTest" )
222- @ Order (14 )
188+ @ Order (11 )
223189 public void testMetricDataForAlarm () {
224190 assertDoesNotThrow (() -> {
225191 CompletableFuture <PutMetricDataResponse > future = cwActions .addMetricDataForAlarmAsync (settingsSc );
@@ -230,7 +196,7 @@ public void testMetricDataForAlarm() {
230196
231197 @ Test
232198 @ Tag ("IntegrationTest" )
233- @ Order (15 )
199+ @ Order (12 )
234200 public void testMetricAlarmAsync () {
235201 assertDoesNotThrow (() -> {
236202 CompletableFuture <Void > future = cwActions .checkForMetricAlarmAsync (settingsSc );
@@ -241,7 +207,7 @@ public void testMetricAlarmAsync() {
241207
242208 @ Test
243209 @ Tag ("IntegrationTest" )
244- @ Order (16 )
210+ @ Order (13 )
245211 public void testAlarmHistory () {
246212 assertDoesNotThrow (() -> {
247213 CompletableFuture <Void > future = cwActions .getAlarmHistoryAsync (settingsSc , myDateSc );
@@ -252,7 +218,7 @@ public void testAlarmHistory() {
252218
253219 @ Test
254220 @ Tag ("IntegrationTest" )
255- @ Order (17 )
221+ @ Order (14 )
256222 public void testAnomalyDetector () {
257223 assertDoesNotThrow (() -> {
258224 CompletableFuture <Void > future = cwActions .addAnomalyDetectorAsync (settingsSc );
@@ -263,7 +229,7 @@ public void testAnomalyDetector() {
263229
264230 @ Test
265231 @ Tag ("IntegrationTest" )
266- @ Order (18 )
232+ @ Order (15 )
267233 public void testDeleteDashboard () {
268234 assertDoesNotThrow (() -> {
269235 CompletableFuture <DeleteDashboardsResponse > future = cwActions .deleteDashboardAsync (dashboardNameSc );
@@ -275,7 +241,7 @@ public void testDeleteDashboard() {
275241
276242 @ Test
277243 @ Tag ("IntegrationTest" )
278- @ Order (19 )
244+ @ Order (16 )
279245 public void testCWAlarmAsync () {
280246 assertDoesNotThrow (() -> {
281247 CompletableFuture <DeleteAlarmsResponse > future = cwActions .deleteCWAlarmAsync (alarmName );
@@ -287,7 +253,7 @@ public void testCWAlarmAsync() {
287253
288254 @ Test
289255 @ Tag ("IntegrationTest" )
290- @ Order (20 )
256+ @ Order (17 )
291257 public void testDeleteAnomalyDetector () {
292258 assertDoesNotThrow (() -> {
293259 CompletableFuture <DeleteAnomalyDetectorResponse > future = cwActions .deleteAnomalyDetectorAsync (settingsSc );
0 commit comments