Skip to content

Commit df175d1

Browse files
Bump mockito from 5.14.1 to 5.14.2, objenesis from 3.2 to 3.3 and bytebuddy from 1.15.4 to 1.15.10 (#16655) (#16657)
* Bump mockito from 5.14.1 to 5.14.2 * Update objenesis from 3.2 to 3.3 * Add to CHANGELOG * Update bytebuddy from 1.15.4 to 1.15.10 * Update README * Add grant to mockito-core * Add perms --------- (cherry picked from commit 3b4fa0e) Signed-off-by: Craig Perkins <cwperx@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a48ddce commit df175d1

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
2828
- Bump `com.nimbusds:nimbus-jose-jwt` from 9.41.1 to 9.46 ([#16611](https://github.com/opensearch-project/OpenSearch/pull/16611))
2929
- Bump `lycheeverse/lychee-action` from 2.0.2 to 2.1.0 ([#16610](https://github.com/opensearch-project/OpenSearch/pull/16610))
3030
- Bump `me.champeau.gradle.japicmp` from 0.4.4 to 0.4.5 ([#16614](https://github.com/opensearch-project/OpenSearch/pull/16614))
31+
- Bump `mockito` from 5.14.1 to 5.14.2, `objenesis` from 3.2 to 3.3 and `bytebuddy` from 1.15.4 to 1.15.10 ([#16655](https://github.com/opensearch-project/OpenSearch/pull/16655))
3132

3233
### Changed
3334

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ bouncycastle="1.78"
6060
randomizedrunner = "2.7.1"
6161
junit = "4.13.2"
6262
hamcrest = "2.1"
63-
mockito = "5.14.1"
64-
objenesis = "3.2"
65-
bytebuddy = "1.15.4"
63+
mockito = "5.14.2"
64+
objenesis = "3.3"
65+
bytebuddy = "1.15.10"
6666

6767
# benchmark dependencies
6868
jmh = "1.35"

server/src/main/resources/org/opensearch/bootstrap/test-framework.policy

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ grant codeBase "${codebase.mockito-core}" {
4545
permission java.lang.RuntimePermission "accessDeclaredMembers";
4646
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
4747
permission java.lang.RuntimePermission "getClassLoader";
48+
49+
permission java.lang.RuntimePermission "createClassLoader";
50+
permission java.lang.RuntimePermission "net.bytebuddy.createJavaDispatcher";
51+
permission java.lang.reflect.ReflectPermission "newProxyInPackage.net.bytebuddy.utility";
52+
permission java.lang.reflect.ReflectPermission "newProxyInPackage.net.bytebuddy.dynamic.loading";
53+
permission java.lang.reflect.ReflectPermission "newProxyInPackage.net.bytebuddy.description.type";
54+
permission java.lang.reflect.ReflectPermission "newProxyInPackage.net.bytebuddy.description.method";
4855
};
4956

5057
grant codeBase "${codebase.objenesis}" {

test/framework/build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ thirdPartyAudit.ignoreMissingClasses(
8080
'org.apache.log4j.Priority',
8181
'org.mockito.internal.creation.bytebuddy.inject.MockMethodDispatcher',
8282
'org.opentest4j.AssertionFailedError',
83-
'net.bytebuddy.agent.ByteBuddyAgent'
83+
'net.bytebuddy.agent.ByteBuddyAgent',
84+
'net.bytebuddy.agent.Installer'
8485
)
8586
// TODO - OpenSearch remove this violation. Issue: https://github.com/opensearch-project/OpenSearch/issues/420
8687
thirdPartyAudit.ignoreViolations(

0 commit comments

Comments
 (0)