20
20
import oracle .kubernetes .operator .utils .TestUtils ;
21
21
import org .junit .After ;
22
22
import org .junit .AfterClass ;
23
+ import org .junit .Assume ;
23
24
import org .junit .FixMethodOrder ;
24
25
import org .junit .Test ;
25
26
import org .junit .runners .MethodSorters ;
@@ -89,25 +90,27 @@ private void setupOperatorAndDomain(String operatorGitRelease, String operatorRe
89
90
*/
90
91
@ After
91
92
public void cleanupOperatorAndDomain () throws Exception {
92
- logger .log (Level .INFO , "+++++++++++++++Beginning AfterTest cleanup+++++++++++++++++++++" );
93
- if (domain != null ) {
94
- domain .destroy ();
95
- }
96
- if (operator != null ) {
97
- operator .destroy ();
93
+ if (!QUICKTEST ) {
94
+ logger .log (Level .INFO , "+++++++++++++++Beginning AfterTest cleanup+++++++++++++++++++++" );
95
+ if (domain != null ) {
96
+ domain .destroy ();
97
+ }
98
+ if (operator != null ) {
99
+ operator .destroy ();
100
+ }
101
+ ExecResult result = cleanup ();
102
+ TestUtils .exec (
103
+ "kubectl delete pods,services,deployments,replicasets,configmaps,services --all --ignore-not-found -n "
104
+ + OP_NS );
105
+ TestUtils .exec (
106
+ "kubectl delete pods,services,deployments,replicasets,configmaps,services --all --ignore-not-found -n "
107
+ + DOM_NS );
108
+ TestUtils .exec ("kubectl delete crd --all --ignore-not-found" );
109
+ TestUtils .exec ("kubectl delete ns " + OP_NS + " --ignore-not-found" );
110
+ TestUtils .exec ("kubectl delete ns " + DOM_NS + " --ignore-not-found" );
111
+ TestUtils .exec ("kubectl get all --all-namespaces" );
112
+ logger .log (Level .INFO , "+++++++++++++++Done AfterTest cleanup+++++++++++++++++++++" );
98
113
}
99
- ExecResult result = cleanup ();
100
- TestUtils .exec (
101
- "kubectl delete pods,services,deployments,replicasets,configmaps,services --all --ignore-not-found -n "
102
- + OP_NS );
103
- TestUtils .exec (
104
- "kubectl delete pods,services,deployments,replicasets,configmaps,services --all --ignore-not-found -n "
105
- + DOM_NS );
106
- TestUtils .exec ("kubectl delete crd --all --ignore-not-found" );
107
- TestUtils .exec ("kubectl delete ns " + OP_NS + " --ignore-not-found" );
108
- TestUtils .exec ("kubectl delete ns " + DOM_NS + " --ignore-not-found" );
109
- TestUtils .exec ("kubectl get all --all-namespaces" );
110
- logger .log (Level .INFO , "+++++++++++++++Done AfterTest cleanup+++++++++++++++++++++" );
111
114
}
112
115
113
116
/**
@@ -133,6 +136,7 @@ public static void staticUnPrepare() throws Exception {
133
136
*/
134
137
@ Test
135
138
public void testOperatorUpgradeFrom2_0 () throws Exception {
139
+ Assume .assumeFalse (QUICKTEST );
136
140
String testMethod = new Object () {}.getClass ().getEnclosingMethod ().getName ();
137
141
logTestBegin (testMethod );
138
142
OP_NS = "weblogic-operator20" ;
@@ -152,6 +156,7 @@ public void testOperatorUpgradeFrom2_0() throws Exception {
152
156
*/
153
157
@ Test
154
158
public void testOperatorUpgradeFrom2_0_1 () throws Exception {
159
+ Assume .assumeFalse (QUICKTEST );
155
160
String testMethod = new Object () {}.getClass ().getEnclosingMethod ().getName ();
156
161
logTestBegin (testMethod );
157
162
OP_NS = "weblogic-operator201" ;
@@ -171,6 +176,7 @@ public void testOperatorUpgradeFrom2_0_1() throws Exception {
171
176
*/
172
177
@ Test
173
178
public void testOperatorUpgradeFrom2_1 () throws Exception {
179
+ Assume .assumeFalse (QUICKTEST );
174
180
String testMethod = new Object () {}.getClass ().getEnclosingMethod ().getName ();
175
181
logTestBegin (testMethod );
176
182
OP_NS = "weblogic-operator21" ;
@@ -190,6 +196,7 @@ public void testOperatorUpgradeFrom2_1() throws Exception {
190
196
*/
191
197
@ Test
192
198
public void testOperatorUpgradeFrom2_2_0 () throws Exception {
199
+ Assume .assumeFalse (QUICKTEST );
193
200
String testMethod = new Object () {}.getClass ().getEnclosingMethod ().getName ();
194
201
logTestBegin (testMethod );
195
202
OP_NS = "weblogic-operator220" ;
@@ -209,6 +216,7 @@ public void testOperatorUpgradeFrom2_2_0() throws Exception {
209
216
*/
210
217
@ Test
211
218
public void testOperatorUpgradeFrom2_2_1 () throws Exception {
219
+ Assume .assumeFalse (QUICKTEST );
212
220
String testMethod = new Object () {}.getClass ().getEnclosingMethod ().getName ();
213
221
logTestBegin (testMethod );
214
222
OP_NS = "weblogic-operator221" ;
0 commit comments