Skip to content

Commit a21d8d3

Browse files
authored
Modified the integration test to match the new behavior of Domain Available condition as True when admin server is running and cluster intentionally shut down. (#3603)
1 parent a5dd9c2 commit a21d8d3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

integration-tests/src/test/java/oracle/weblogic/kubernetes/ItDiagnosticsCompleteAvailableCondition.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ void testCompleteAvailableConditionWithNever() {
254254
* Verify all the cluster servers pods will be shutdown.
255255
* Verify the following conditions are generated:
256256
* type: Completed, status: true
257-
* type: Available, status: False
257+
* type: Available, status: true
258258
* Verify no Failed type condition generated.
259259
*/
260260
@Test
@@ -289,7 +289,7 @@ void testCompleteAvailableConditionWithReplicaZero() {
289289
DOMAIN_STATUS_CONDITION_COMPLETED_TYPE, "True");
290290
// verify the condition Available type has status True
291291
checkDomainStatusConditionTypeHasExpectedStatus(domainUid, domainNamespace1,
292-
DOMAIN_STATUS_CONDITION_AVAILABLE_TYPE, "False");
292+
DOMAIN_STATUS_CONDITION_AVAILABLE_TYPE, "True");
293293
// verify there is no status condition type Failed
294294
verifyDomainStatusConditionTypeDoesNotExist(domainUid, domainNamespace1, DOMAIN_STATUS_CONDITION_FAILED_TYPE);
295295

@@ -303,7 +303,7 @@ void testCompleteAvailableConditionWithReplicaZero() {
303303
* Verify all the cluster servers pods will be shutdown.
304304
* Verify the following conditions are generated:
305305
* type: Completed, status: true
306-
* type: Available, status: False
306+
* type: Available, status: true
307307
* Verify no Failed type condition generated.
308308
*/
309309
@Test
@@ -337,7 +337,7 @@ void testCompleteAvailableConditionWithClusterNever() {
337337
DOMAIN_STATUS_CONDITION_COMPLETED_TYPE, "True");
338338
// verify the condition Available type has status True
339339
checkDomainStatusConditionTypeHasExpectedStatus(domainUid, domainNamespace1,
340-
DOMAIN_STATUS_CONDITION_AVAILABLE_TYPE, "False");
340+
DOMAIN_STATUS_CONDITION_AVAILABLE_TYPE, "True");
341341
// verify there is no status condition type Failed
342342
verifyDomainStatusConditionTypeDoesNotExist(domainUid, domainNamespace1, DOMAIN_STATUS_CONDITION_FAILED_TYPE);
343343
} finally {

0 commit comments

Comments
 (0)