@@ -73,31 +73,29 @@ public class ITMonitoringExporter extends BaseTest {
73
73
*/
74
74
@ BeforeClass
75
75
public static void staticPrepare () throws Exception {
76
- if (!BaseTest .SHARED_CLUSTER ) {
77
- if (!QUICKTEST ) {
78
- initialize (APP_PROPS_FILE );
79
- logger .info ("Checking if operator and domain are running, if not creating" );
80
- if (operator == null ) {
81
- Map <String , Object > operatorMap = TestUtils .createOperatorMap (number , true );
82
- operator = new Operator (operatorMap , Operator .RESTCertType .SELF_SIGNED );
83
- Assert .assertNotNull (operator );
84
- operator .callHelmInstall ();
85
- }
86
- if (domain == null ) {
87
- domain = createVerifyDomain (number , operator );
88
- Assert .assertNotNull (domain );
89
- }
90
- myhost = domain .getHostNameForCurl ();
91
- exporterUrl = "http://" + myhost + ":" + domain .getLoadBalancerWebPort () + "/wls-exporter/" ;
92
- metricsUrl = exporterUrl + "metrics" ;
93
- monitoringExporterDir = BaseTest .getResultDir () + "/monitoring" ;
94
- resourceExporterDir =
95
- BaseTest .getProjectRoot () + "/integration-tests/src/test/resources/exporter" ;
96
- configPath = resourceExporterDir ;
97
- upgradeTraefikHostName ();
98
- deployRunMonitoringExporter (domain , operator );
99
- buildDeployWebServiceApp (domain , TESTWSAPP , TESTWSSERVICE );
76
+ if (!QUICKTEST ) {
77
+ initialize (APP_PROPS_FILE );
78
+ logger .info ("Checking if operator and domain are running, if not creating" );
79
+ if (operator == null ) {
80
+ Map <String , Object > operatorMap = TestUtils .createOperatorMap (number , true );
81
+ operator = new Operator (operatorMap , Operator .RESTCertType .SELF_SIGNED );
82
+ Assert .assertNotNull (operator );
83
+ operator .callHelmInstall ();
84
+ }
85
+ if (domain == null ) {
86
+ domain = createVerifyDomain (number , operator );
87
+ Assert .assertNotNull (domain );
100
88
}
89
+ myhost = domain .getHostNameForCurl ();
90
+ exporterUrl = "http://" + myhost + ":" + domain .getLoadBalancerWebPort () + "/wls-exporter/" ;
91
+ metricsUrl = exporterUrl + "metrics" ;
92
+ monitoringExporterDir = BaseTest .getResultDir () + "/monitoring" ;
93
+ resourceExporterDir =
94
+ BaseTest .getProjectRoot () + "/integration-tests/src/test/resources/exporter" ;
95
+ configPath = resourceExporterDir ;
96
+ upgradeTraefikHostName ();
97
+ deployRunMonitoringExporter (domain , operator );
98
+ buildDeployWebServiceApp (domain , TESTWSAPP , TESTWSSERVICE );
101
99
}
102
100
}
103
101
@@ -108,21 +106,19 @@ public static void staticPrepare() throws Exception {
108
106
*/
109
107
@ AfterClass
110
108
public static void staticUnPrepare () throws Exception {
111
- if (!BaseTest .SHARED_CLUSTER ) {
112
- if (!QUICKTEST ) {
113
- logger .info ("+++++++++++++++++++++++++++++++++---------------------------------+" );
114
- logger .info ("BEGIN" );
115
- logger .info ("Run once, release cluster lease" );
116
- if (domain != null ) {
117
- domain .destroy ();
118
- }
119
- if (operator != null ) {
120
- operator .destroy ();
121
- }
122
- deletePrometheusGrafana ();
123
- tearDown (new Object () {}.getClass ().getEnclosingClass ().getSimpleName ());
124
- logger .info ("SUCCESS" );
109
+ if (!QUICKTEST ) {
110
+ logger .info ("+++++++++++++++++++++++++++++++++---------------------------------+" );
111
+ logger .info ("BEGIN" );
112
+ logger .info ("Run once, release cluster lease" );
113
+ if (domain != null ) {
114
+ domain .destroy ();
115
+ }
116
+ if (operator != null ) {
117
+ operator .destroy ();
125
118
}
119
+ deletePrometheusGrafana ();
120
+ tearDown (new Object () {}.getClass ().getEnclosingClass ().getSimpleName ());
121
+ logger .info ("SUCCESS" );
126
122
}
127
123
}
128
124
@@ -133,7 +129,6 @@ public static void staticUnPrepare() throws Exception {
133
129
*/
134
130
@ Test
135
131
public void test01_CheckMetricsViaPrometheus () throws Exception {
136
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
137
132
Assume .assumeFalse (QUICKTEST );
138
133
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
139
134
logTestBegin (testMethodName );
@@ -150,7 +145,6 @@ public void test01_CheckMetricsViaPrometheus() throws Exception {
150
145
*/
151
146
@ Test
152
147
public void test02_ReplaceConfiguration () throws Exception {
153
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
154
148
Assume .assumeFalse (QUICKTEST );
155
149
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
156
150
logTestBegin (testMethodName );
@@ -199,7 +193,6 @@ public void test02_ReplaceConfiguration() throws Exception {
199
193
*/
200
194
@ Test
201
195
public void test03_AppendConfiguration () throws Exception {
202
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
203
196
Assume .assumeFalse (QUICKTEST );
204
197
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
205
198
logTestBegin (testMethodName );
@@ -235,7 +228,6 @@ public void test03_AppendConfiguration() throws Exception {
235
228
*/
236
229
@ Test
237
230
public void test04_ReplaceOneAttributeValueAsArrayConfiguration () throws Exception {
238
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
239
231
Assume .assumeFalse (QUICKTEST );
240
232
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
241
233
logTestBegin (testMethodName );
@@ -260,7 +252,6 @@ public void test04_ReplaceOneAttributeValueAsArrayConfiguration() throws Excepti
260
252
@ Test
261
253
public void test05_AppendArrayWithOneExistedAndOneDifferentAttributeValueAsArrayConfiguration ()
262
254
throws Exception {
263
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
264
255
Assume .assumeFalse (QUICKTEST );
265
256
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
266
257
logTestBegin (testMethodName );
@@ -282,7 +273,6 @@ public void test05_AppendArrayWithOneExistedAndOneDifferentAttributeValueAsArray
282
273
*/
283
274
@ Test
284
275
public void test06_ReplaceWithEmptyConfiguration () throws Exception {
285
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
286
276
Assume .assumeFalse (QUICKTEST );
287
277
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
288
278
logTestBegin (testMethodName );
@@ -301,7 +291,6 @@ public void test06_ReplaceWithEmptyConfiguration() throws Exception {
301
291
*/
302
292
@ Test
303
293
public void test07_AppendWithEmptyConfiguration () throws Exception {
304
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
305
294
Assume .assumeFalse (QUICKTEST );
306
295
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
307
296
logTestBegin (testMethodName );
@@ -323,7 +312,6 @@ public void test07_AppendWithEmptyConfiguration() throws Exception {
323
312
*/
324
313
@ Test
325
314
public void test08_1AppendWithNotYmlConfiguration () throws Exception {
326
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
327
315
Assume .assumeFalse (QUICKTEST );
328
316
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
329
317
logTestBegin (testMethodName );
@@ -342,7 +330,6 @@ public void test08_1AppendWithNotYmlConfiguration() throws Exception {
342
330
*/
343
331
@ Test
344
332
public void test08_2ReplaceWithNotYmlConfiguration () throws Exception {
345
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
346
333
Assume .assumeFalse (QUICKTEST );
347
334
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
348
335
logTestBegin (testMethodName );
@@ -359,7 +346,6 @@ public void test08_2ReplaceWithNotYmlConfiguration() throws Exception {
359
346
* @throws Exception
360
347
*/
361
348
public void test09_AppendWithCorruptedYmlConfiguration () throws Exception {
362
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
363
349
Assume .assumeFalse (QUICKTEST );
364
350
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
365
351
logTestBegin (testMethodName );
@@ -380,7 +366,6 @@ public void test09_AppendWithCorruptedYmlConfiguration() throws Exception {
380
366
*/
381
367
@ Test
382
368
public void test10_ReplaceWithCorruptedYmlConfiguration () throws Exception {
383
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
384
369
Assume .assumeFalse (QUICKTEST );
385
370
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
386
371
logTestBegin (testMethodName );
@@ -401,7 +386,6 @@ public void test10_ReplaceWithCorruptedYmlConfiguration() throws Exception {
401
386
*/
402
387
@ Test
403
388
public void test11_ReplaceWithDublicatedValuesConfiguration () throws Exception {
404
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
405
389
Assume .assumeFalse (QUICKTEST );
406
390
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
407
391
logTestBegin (testMethodName );
@@ -422,7 +406,6 @@ public void test11_ReplaceWithDublicatedValuesConfiguration() throws Exception {
422
406
*/
423
407
@ Test
424
408
public void test12_AppendWithDublicatedValuesConfiguration () throws Exception {
425
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
426
409
Assume .assumeFalse (QUICKTEST );
427
410
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
428
411
logTestBegin (testMethodName );
@@ -444,7 +427,6 @@ public void test12_AppendWithDublicatedValuesConfiguration() throws Exception {
444
427
*/
445
428
@ Test
446
429
public void test13_ReplaceMetricsNameSnakeCaseFalseConfiguration () throws Exception {
447
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
448
430
Assume .assumeFalse (QUICKTEST );
449
431
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
450
432
logTestBegin (testMethodName );
@@ -471,7 +453,6 @@ public void test13_ReplaceMetricsNameSnakeCaseFalseConfiguration() throws Except
471
453
// verify that change configuration fails without authentication
472
454
@ Test
473
455
public void test14_ChangeConfigNoCredentials () throws Exception {
474
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
475
456
Assume .assumeFalse (QUICKTEST );
476
457
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
477
458
logTestBegin (testMethodName );
@@ -497,7 +478,6 @@ public void test14_ChangeConfigNoCredentials() throws Exception {
497
478
*/
498
479
@ Test
499
480
public void test15_ChangeConfigInvalidUser () throws Exception {
500
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
501
481
Assume .assumeFalse (QUICKTEST );
502
482
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
503
483
logTestBegin (testMethodName );
@@ -519,7 +499,6 @@ public void test15_ChangeConfigInvalidUser() throws Exception {
519
499
*/
520
500
@ Test
521
501
public void test16_ChangeConfigInvalidPass () throws Exception {
522
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
523
502
Assume .assumeFalse (QUICKTEST );
524
503
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
525
504
logTestBegin (testMethodName );
@@ -539,7 +518,6 @@ public void test16_ChangeConfigInvalidPass() throws Exception {
539
518
*/
540
519
@ Test
541
520
public void test17_ChangeConfigEmptyUser () throws Exception {
542
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
543
521
Assume .assumeFalse (QUICKTEST );
544
522
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
545
523
logTestBegin (testMethodName );
@@ -561,7 +539,6 @@ public void test17_ChangeConfigEmptyUser() throws Exception {
561
539
*/
562
540
@ Test
563
541
public void test18_ChangeConfigEmptyPass () throws Exception {
564
- Assume .assumeFalse (BaseTest .SHARED_CLUSTER );
565
542
Assume .assumeFalse (QUICKTEST );
566
543
String testMethodName = new Object () {}.getClass ().getEnclosingMethod ().getName ();
567
544
logTestBegin (testMethodName );
0 commit comments