Skip to content

Commit fbc5898

Browse files
committed
fix wdt file
1 parent 837abbd commit fbc5898

File tree

2 files changed

+38
-32
lines changed

2 files changed

+38
-32
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,16 +1656,26 @@ private void changeClusterTypeInCreateDomainJobTemplate() throws Exception {
16561656
// domain in image
16571657
if (domainMap.containsKey("domainHomeImageBase")
16581658
&& domainHomeImageBuildPath.contains("wdt")) {
1659+
Files.copy(
1660+
Paths.get(
1661+
BaseTest.getResultDir()
1662+
+ "/docker-images/OracleWebLogic/samples/12213-domain-home-in-image-wdt/simple-topology.yaml"),
1663+
Paths.get(
1664+
BaseTest.getResultDir()
1665+
+ "/docker-images/OracleWebLogic/samples/12213-domain-home-in-image-wdt/simple-topology.yaml.org"),
1666+
StandardCopyOption.REPLACE_EXISTING);
16591667
TestUtils.copyFile(
16601668
BaseTest.getProjectRoot()
16611669
+ "/integration-tests/src/test/resources/wdt/config.cluster.topology.yaml",
16621670
BaseTest.getResultDir()
16631671
+ "/docker-images/OracleWebLogic/samples/12213-domain-home-in-image-wdt/simple-topology.yaml");
16641672
logger.info("WDT DOMAIN MODEL");
1665-
TestUtils.exec(
1666-
"cat "
1667-
+ BaseTest.getResultDir()
1668-
+ "/docker-images/OracleWebLogic/samples/12213-domain-home-in-image-wdt/simple-topology.yaml");
1673+
ExecResult exec =
1674+
TestUtils.exec(
1675+
"cat "
1676+
+ BaseTest.getResultDir()
1677+
+ "/docker-images/OracleWebLogic/samples/12213-domain-home-in-image-wdt/simple-topology.yaml");
1678+
logger.info(exec.stdout());
16691679
} else {
16701680
// domain on pv
16711681
StringBuffer createDomainJobTemplateFile = new StringBuffer(BaseTest.getResultDir());
Lines changed: 24 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,36 @@
1-
# Copyright 2019, Oracle Corporation and/or its affiliates. All rights reserved.
2-
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
3-
4-
# This domain inputs file is used to create multiple dynamic clusters in in image home
51
domainInfo:
6-
AdminUserName: '@@FILE:/weblogic-operator/secrets/username@@'
7-
AdminPassword: '@@FILE:/weblogic-operator/secrets/password@@'
8-
ServerStartMode: prod
2+
AdminUserName: '@@FILE:/u01/oracle/properties/adminuser.properties@@'
3+
AdminPassword: '@@FILE:/u01/oracle/properties/adminpass.properties@@'
94
topology:
10-
Name: '@@PROP:domainName@@'
11-
AdminServerName: '@@PROP:adminServerName@@'
12-
ProductionModeEnabled: '@@PROP:productionModeEnabled@@'
5+
Name: '@@PROP:DOMAIN_NAME@@'
6+
AdminServerName: '@@PROP:ADMIN_NAME@@'
7+
ProductionModeEnabled: '@@PROP:PRODUCTION_MODE_ENABLED@@'
138
Cluster:
14-
'@@PROP:clusterName@@':
9+
'@@PROP:CLUSTER_NAME@@':
1510
DynamicServers:
1611
CalculatedListenPorts: false
17-
DynamicClusterSize: '@@PROP:configuredManagedServerCount@@'
18-
MaxDynamicClusterSize: '@@PROP:configuredManagedServerCount@@'
19-
ServerNamePrefix: '@@PROP:managedServerNameBase@@'
20-
ServerTemplate: '@@PROP:clusterName@@-template'
21-
'@@PROP:clusterName@@-2':
12+
DynamicClusterSize: '@@PROP:CONFIGURED_MANAGED_SERVER_COUNT@@'
13+
MaxDynamicClusterSize: '@@PROP:CONFIGURED_MANAGED_SERVER_COUNT@@'
14+
ServerNamePrefix: '@@PROP:MANAGED_SERVER_NAME_BASE@@'
15+
ServerTemplate: '@@PROP:CLUSTER_NAME@@-template'
16+
'@@PROP:CLUSTER_NAME@@-2':
2217
DynamicServers:
2318
CalculatedListenPorts: false
24-
DynamicClusterSize: '@@PROP:configuredManagedServerCount@@'
25-
MaxDynamicClusterSize: '@@PROP:configuredManagedServerCount@@'
26-
ServerNamePrefix: '@@PROP:managedServerNameBase@@'
27-
ServerTemplate: '@@PROP:clusterName@@-template'
19+
DynamicClusterSize: '@@PROP:CONFIGURED_MANAGED_SERVER_COUNT@@'
20+
MaxDynamicClusterSize: '@@PROP:CONFIGURED_MANAGED_SERVER_COUNT@@'
21+
ServerNamePrefix: '@@PROP:MANAGED_SERVER_NAME_BASE@@'
22+
ServerTemplate: '@@PROP:CLUSTER_NAME@@-template'
2823
Server:
29-
'@@PROP:adminServerName@@':
24+
'@@PROP:ADMIN_NAME@@':
25+
ListenPort: '@@PROP:ADMIN_PORT@@'
3026
NetworkAccessPoint:
3127
T3Channel:
32-
ListenPort: '@@PROP:t3ChannelPort@@'
33-
PublicAddress: '@@PROP:t3PublicAddress@@'
34-
PublicPort: '@@PROP:t3ChannelPort@@'
28+
ListenPort: '@@PROP:T3_CHANNEL_PORT@@'
29+
PublicAddress: '@@PROP:T3_PUBLIC_ADDRESS@@'
30+
PublicPort: '@@PROP:T3_CHANNEL_PORT@@'
3531
ServerTemplate:
36-
'@@PROP:clusterName@@-template':
37-
Cluster: '@@PROP:clusterName@@'
38-
ListenPort: '@@PROP:managedServerPort@@'
32+
'@@PROP:CLUSTER_NAME@@-template':
33+
Cluster: '@@PROP:CLUSTER_NAME@@'
34+
ListenPort: '@@PROP:MANAGED_SERVER_PORT@@'
3935
JTAMigratableTarget:
40-
Cluster: '@@PROP:clusterName@@'
36+
Cluster: '@@PROP:CLUSTER_NAME@@'

0 commit comments

Comments
 (0)