@@ -129,6 +129,7 @@ class ItMiiDynamicUpdate {
129
129
private final String workManagerName = "newWM" ;
130
130
private static Path pathToChangeTargetYaml = null ;
131
131
private static Path pathToAddClusterYaml = null ;
132
+ private static Path pathToChangReadsYaml = null ;
132
133
private static LoggingFacade logger = null ;
133
134
134
135
/**
@@ -246,6 +247,14 @@ public static void initAll(@Namespaces(2) List<String> namespaces) {
246
247
+ " ListenPort : 8001" ;
247
248
248
249
assertDoesNotThrow (() -> Files .write (pathToAddClusterYaml , yamlToAddCluster .getBytes ()));
250
+
251
+ // write sparse yaml to change ScatteredReadsEnabled for adminserver
252
+ pathToChangReadsYaml = Paths .get (WORK_DIR + "/changereads.yaml" );
253
+ String yamlToChangeReads = "topology:\n "
254
+ + " Server:\n "
255
+ + " \" admin-server\" :\n "
256
+ + " ScatteredReadsEnabled: true" ;
257
+ assertDoesNotThrow (() -> Files .write (pathToChangReadsYaml , yamlToChangeReads .getBytes ()));
249
258
}
250
259
251
260
/**
@@ -910,14 +919,6 @@ public void testOnNonDynamicChangesCommitUpdateOnly() {
910
919
// BeforeEach method ensures that the server pods are running
911
920
LinkedHashMap <String , OffsetDateTime > pods = addDataSourceAndVerify (false );
912
921
913
- // write sparse yaml to change ScatteredReadsEnabled for adminserver
914
- Path pathToChangReadsYaml = Paths .get (WORK_DIR + "/changereads.yaml" );
915
- String yamlToChangeReads = "topology:\n "
916
- + " Server:\n "
917
- + " \" admin-server\" :\n "
918
- + " ScatteredReadsEnabled: true" ;
919
- assertDoesNotThrow (() -> Files .write (pathToChangReadsYaml , yamlToChangeReads .getBytes ()));
920
-
921
922
// make two non-dynamic changes, add datasource JDBC driver params and change scatteredreadenabled
922
923
replaceConfigMapWithModelFiles (configMapName , domainUid , domainNamespace ,
923
924
Arrays .asList (MODEL_DIR + "/model.config.wm.yaml" , pathToAddClusterYaml .toString (),
@@ -1052,7 +1053,8 @@ public void testMiiUpdateDynamicClusterSize() {
1052
1053
// after the cluster is scaled.
1053
1054
replaceConfigMapWithModelFiles (configMapName , domainUid , domainNamespace ,
1054
1055
Arrays .asList (MODEL_DIR + "/model.config.wm.yaml" , pathToAddClusterYaml .toString (),
1055
- MODEL_DIR + "/model.jdbc2.yaml" , MODEL_DIR + "/model.cluster.size.yaml" ), withStandardRetryPolicy );
1056
+ MODEL_DIR + "/model.jdbc2.updatejdbcdriverparams.yaml" , pathToChangReadsYaml .toString (),
1057
+ MODEL_DIR + "/model.cluster.size.yaml" ), withStandardRetryPolicy );
1056
1058
1057
1059
// Patch a running domain with introspectVersion.
1058
1060
String introspectVersion = patchDomainResourceWithNewIntrospectVersion (domainUid , domainNamespace );
@@ -1158,7 +1160,8 @@ public void testMiiRemoveTarget() {
1158
1160
// Replace contents of an existing configMap
1159
1161
replaceConfigMapWithModelFiles (configMapName , domainUid , domainNamespace ,
1160
1162
Arrays .asList (MODEL_DIR + "/model.config.wm.yaml" , pathToAddClusterYaml .toString (),
1161
- MODEL_DIR + "/model.jdbc2.yaml" , MODEL_DIR + "/model.cluster.size.yaml" ,
1163
+ MODEL_DIR + "/model.jdbc2.updatejdbcdriverparams.yaml" ,
1164
+ pathToChangReadsYaml .toString (), MODEL_DIR + "/model.cluster.size.yaml" ,
1162
1165
pathToRemoveTargetYaml .toString ()), withStandardRetryPolicy );
1163
1166
1164
1167
// Patch a running domain with introspectVersion.
0 commit comments