@@ -413,8 +413,9 @@ public void testAutoAndCustomSitConfigOverrides() throws Exception {
413
413
}
414
414
415
415
/**
416
- * test the Rolling restart behavior in the jrf domain cluster level currently there are two bugs
417
- * 29678557, 29720185, the test will fail
416
+ * test the Rolling restart behavior in the jrf domain cluster level currently during the rolling
417
+ * restart, all managed servers may be in the not ready state. Bugs 29678557, 29720185, the test
418
+ * will fail before the bugs are fixed
418
419
*
419
420
* @throws Exception - if any error occurs
420
421
*/
@@ -497,7 +498,9 @@ public void testJRFDomainClusterRestartVersion() throws Exception {
497
498
}
498
499
499
500
/**
500
- * This is the test case to cover bug 29684570.
501
+ * In create domain input yaml file, set exposeAdminNodePort to false and exposeAdminT3Channel to
502
+ * true, make sure the managed server pods are created. Bug 29684570, the test will fail before
503
+ * the bug is fixed
501
504
*
502
505
* @throws Exception - if any error occurs
503
506
*/
@@ -540,7 +543,9 @@ public void testJRFDomainMSPodCreated() throws Exception {
540
543
}
541
544
542
545
/**
543
- * This is the test case to cover bug 29683926
546
+ * In create domain input yaml file, set createDomainScriptsMountPath to non-default value, make
547
+ * sure the create domain sample script works. Bug 29683926, the test will fail before the bug is
548
+ * fixed
544
549
*
545
550
* @throws Exception - if any error occurs
546
551
*/
@@ -583,7 +588,9 @@ public void testJRFDomainCreateDomainScriptsMountPath() throws Exception {
583
588
}
584
589
585
590
/**
586
- * This test case is to cover bug 29657663
591
+ * In createFMWDomain.py file, set administration_port_enabled to true. Make sure the admin server
592
+ * pod is running and ready. All the managed server pods are created. Bug 29657663, the test will
593
+ * fail before the bug is fixed
587
594
*
588
595
* @throws Exception
589
596
*/
@@ -627,7 +634,8 @@ public void testJRFDomainAdminPortEnabled() throws Exception {
627
634
}
628
635
629
636
/**
630
- * This test case is to cover 29591809
637
+ * In create domain input file, set exposeAdminT3Channel to true. Make sure the admin t3 channel
638
+ * is exposed. Bug 29591809, the test will fail before the bug is fixed
631
639
*
632
640
* @throws Exception - if any error occurs
633
641
*/
@@ -694,6 +702,12 @@ private void testDeployAppUsingAdminPort(JRFDomain domain) throws Exception {
694
702
domain .verifyWebAppLoadBalancing (TESTWEBAPP );
695
703
}
696
704
705
+ /**
706
+ * basic test cases
707
+ *
708
+ * @param domain - jrfdomain
709
+ * @throws Exception - if any error occurs
710
+ */
697
711
private void testBasicUseCases (JRFDomain domain ) throws Exception {
698
712
// Bug 29591809
699
713
// TODO: re-enable the test once the bug is fixed
@@ -702,6 +716,13 @@ private void testBasicUseCases(JRFDomain domain) throws Exception {
702
716
testAdminServerExternalService (domain );
703
717
}
704
718
719
+ /**
720
+ * advanced test cases
721
+ *
722
+ * @param operator - weblogic operator
723
+ * @param domain - jrfdomain
724
+ * @throws Exception - if any error occurs
725
+ */
705
726
private void testAdvancedUseCasesForADomain (Operator operator , JRFDomain domain )
706
727
throws Exception {
707
728
if (!SMOKETEST ) {
@@ -712,6 +733,15 @@ private void testAdvancedUseCasesForADomain(Operator operator, JRFDomain domain)
712
733
}
713
734
}
714
735
736
+ /**
737
+ * verify that during the rolling restart, the number of managed server pods which are not ready
738
+ * can not exceed the maxUnAvailable value
739
+ *
740
+ * @param domain - jrfdomain
741
+ * @param expectedMSPodsCount - total number of managed server pods expected
742
+ * @param maxUnavailable - maxUnAvailable value of the managed server pods
743
+ * @throws Exception - if any error occurs
744
+ */
715
745
private void verifyMSPodsNotReadyCountNotExceedMaxUnAvailable (
716
746
JRFDomain domain , int expectedMSPodsCount , int maxUnavailable ) throws Exception {
717
747
int i = 0 ;
@@ -747,6 +777,13 @@ private void verifyMSPodsNotReadyCountNotExceedMaxUnAvailable(
747
777
}
748
778
}
749
779
780
+ /**
781
+ * get the number of managed server pods which are not ready
782
+ *
783
+ * @param domain - jrfdomain
784
+ * @return - returns the number of managed server pods which are not ready
785
+ * @throws Exception - if any error occurs
786
+ */
750
787
private int getMSPodsNotReadyCount (JRFDomain domain ) throws Exception {
751
788
752
789
String managedServerNameBase = (String ) domain .getDomainMap ().get ("managedServerNameBase" );
@@ -761,6 +798,13 @@ private int getMSPodsNotReadyCount(JRFDomain domain) throws Exception {
761
798
return Integer .parseInt (result .stdout ());
762
799
}
763
800
801
+ /**
802
+ * get the number of managed server pods which are running and ready
803
+ *
804
+ * @param domain - jrfdomain
805
+ * @return - returns the number of managed server pods which are running and ready
806
+ * @throws Exception - if any error occurs
807
+ */
764
808
private int getMSPodsRunningAndReadyCount (JRFDomain domain ) throws Exception {
765
809
766
810
String managedServerNameBase = (String ) domain .getDomainMap ().get ("managedServerNameBase" );
@@ -775,6 +819,13 @@ private int getMSPodsRunningAndReadyCount(JRFDomain domain) throws Exception {
775
819
return Integer .parseInt (result .stdout ());
776
820
}
777
821
822
+ /**
823
+ * get the number of managed server pods created
824
+ *
825
+ * @param domain - jrfdomain
826
+ * @return - returns the number of managed server pods created
827
+ * @throws Exception - if any error occurs
828
+ */
778
829
private int getMSPodsCount (JRFDomain domain ) throws Exception {
779
830
String managedServerNameBase = (String ) domain .getDomainMap ().get ("managedServerNameBase" );
780
831
StringBuffer cmd = new StringBuffer ();
0 commit comments