Skip to content

Commit 9bf0c49

Browse files
committed
pw
1 parent 012e666 commit 9bf0c49

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

integration-test/src/test/java/org/apache/iotdb/pipe/it/single/IoTDBPipeOPCUAIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public void testOPCUAServerSink() throws Exception {
162162
Assert.fail();
163163
} catch (final Exception e) {
164164
Assert.assertEquals(
165-
"org.apache.iotdb.jdbc.IoTDBSQLException: 1107: The existing server with tcp port 12686 and https port 8443's password test conflicts to the new password conflict, reject reusing.",
165+
"org.apache.iotdb.jdbc.IoTDBSQLException: 1107: The existing server with tcp port 12686 and https port 8443's password **** conflicts to the new password ****, reject reusing.",
166166
e.getMessage());
167167
}
168168
}

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/sink/protocol/opcua/server/OpcUaServerBuilder.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,12 @@ void checkEquals(
324324
checkEquals("securityPolicies", this.securityPolicies, securityPolicies);
325325
}
326326

327-
private void checkEquals(final String attrName, final Object thisAttr, final Object thatAttr) {
327+
private void checkEquals(final String attrName, Object thisAttr, Object thatAttr) {
328328
if (!Objects.equals(thisAttr, thatAttr)) {
329+
if (attrName.equals("password")) {
330+
thisAttr = "****";
331+
thatAttr = "****";
332+
}
329333
throw new PipeException(
330334
String.format(
331335
"The existing server with tcp port %s and https port %s's %s %s conflicts to the new %s %s, reject reusing.",

0 commit comments

Comments
 (0)