Skip to content

Commit 58276f1

Browse files
committed
change the hostname to use podname
1 parent 0ce82b6 commit 58276f1

File tree

1 file changed

+4
-2
lines changed
  • integration-tests/src/test/java/oracle/kubernetes/operator

1 file changed

+4
-2
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/SitConfig.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public class SitConfig extends BaseTest {
2626

2727
private static final String DOMAINUID = "customsitconfigdomain";
2828
private static final String ADMINPORT = "30710";
29-
private static final int T3CHANNELPORT = 30091;
29+
private static final int T3CHANNELPORT = 7001;
3030
private static final String MYSQL_DB_PORT = "31306";
3131
private static String TEST_RES_DIR;
3232
private static String ADMINPODNAME;
@@ -77,7 +77,8 @@ protected static void staticPrepare(String domainInputYaml, String domainScript)
7777
ExecResult result = TestUtils.exec("kubectl create -f " + mysqlYamlFile);
7878
Assert.assertEquals(0, result.exitValue());
7979

80-
fqdn = TestUtils.getHostName();
80+
// fqdn = TestUtils.getHostName();
81+
8182
JDBC_URL = "jdbc:mysql://" + fqdn + ":" + MYSQL_DB_PORT + "/";
8283
// copy the configuration override files to replacing the JDBC_URL token
8384
String[] files = {
@@ -98,6 +99,7 @@ protected static void staticPrepare(String domainInputYaml, String domainScript)
9899
+ "/domain.yaml";
99100
// copy the jmx test client file the administratioin server weblogic server pod
100101
ADMINPODNAME = domain.getDomainUid() + "-" + domain.getAdminServerName();
102+
fqdn = domain.getDomainNs() + "-" + ADMINPODNAME;
101103
TestUtils.copyFileViaCat(
102104
TEST_RES_DIR + "sitconfig/java/SitConfigTests.java",
103105
"SitConfigTests.java",

0 commit comments

Comments
 (0)