File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
integration-tests/src/test/java/oracle/kubernetes/operator Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -191,27 +191,20 @@ public void testNotPreCreatedOpNsCreateOperatorNegativeInstall() throws Exceptio
191
191
operator =
192
192
new Operator (
193
193
(TestUtils .createOperatorMap (number , false )),
194
- false ,
194
+ true ,
195
195
false ,
196
196
true ,
197
197
RestCertType .SELF_SIGNED );
198
+ String command = " kubectl delete namespace weblogic-operator" + number ;
199
+ TestUtils .exec (command );
198
200
try {
199
201
operator .callHelmInstall ();
200
202
throw new RuntimeException ("FAILURE: Helm install operator with not preexisted namespace " );
201
203
202
204
} catch (Exception ex ) {
203
- String cmdLb = "helm list --failed " + " | grep " + oprelease ;
204
- logger .info ("Executing cmd " + cmdLb );
205
- ExecResult result = ExecCommand .exec (cmdLb );
206
- if (result .exitValue () != 0 ) {
207
- throw new RuntimeException (
208
- "FAILURE: Helm installs operator with not preexisted namespace " );
209
- }
205
+ logger .info ("Helm install operator with not preexisted ns failed as expected" );
210
206
} finally {
211
207
number ++;
212
- if (operator != null ) {
213
- operator .destroy ();
214
- }
215
208
}
216
209
logger .info ("SUCCESS - " + testMethodName );
217
210
}
You can’t perform that action at this time.
0 commit comments