This is an automated email from the ASF dual-hosted git repository.
JackieTien97 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 20bb3a0b8aa Fix datanode PowerMock tests failing when
user_encrypt_token is set (#19008)
20bb3a0b8aa is described below
commit 20bb3a0b8aade143a0e7ea58993f85562c31676c
Author: Jackie Tien <[email protected]>
AuthorDate: Sat Oct 24 08:06:54 2026 +0800
Fix datanode PowerMock tests failing when user_encrypt_token is set (#19008)
---
.../powermock/extensions/configuration.properties | 23 ++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git
a/iotdb-core/datanode/src/test/resources/org/powermock/extensions/configuration.properties
b/iotdb-core/datanode/src/test/resources/org/powermock/extensions/configuration.properties
new file mode 100644
index 00000000000..688a8335f4c
--- /dev/null
+++
b/iotdb-core/datanode/src/test/resources/org/powermock/extensions/configuration.properties
@@ -0,0 +1,23 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+# Load javax.crypto from the JDK instead of PowerMock's class loader. When the
user_encrypt_token
+# environment variable is set, TSFileDescriptor derives the TsFile encryption
key with
+# javax.crypto.Mac, and a Mac class defined by PowerMock cannot access
java.base internals.
+powermock.global-ignore=javax.crypto.*