@@ -120,7 +120,7 @@ public Void run() {
120
120
121
121
@ Test
122
122
public void testStackTruncationWithOpenSearchAccessController () {
123
- org .opensearch .security .AccessController .doPrivileged (() -> {
123
+ org .opensearch .secure_sm .AccessController .doPrivileged (() -> {
124
124
StackCallerProtectionDomainChainExtractor extractor = StackCallerProtectionDomainChainExtractor .INSTANCE ;
125
125
Set <ProtectionDomain > protectionDomains = (Set <ProtectionDomain >) extractor .apply (captureStackFrames ().stream ());
126
126
assertEquals (1 , protectionDomains .size ());
@@ -151,7 +151,7 @@ public void testStackTruncationWithOpenSearchAccessController() {
151
151
152
152
@ Test
153
153
public void testStackTruncationWithOpenSearchAccessControllerUsingSupplier () {
154
- org .opensearch .security .AccessController .doPrivileged ((Supplier <Void >) () -> {
154
+ org .opensearch .secure_sm .AccessController .doPrivileged ((Supplier <Void >) () -> {
155
155
StackCallerProtectionDomainChainExtractor extractor = StackCallerProtectionDomainChainExtractor .INSTANCE ;
156
156
Set <ProtectionDomain > protectionDomains = (Set <ProtectionDomain >) extractor .apply (captureStackFrames ().stream ());
157
157
assertEquals (1 , protectionDomains .size ());
@@ -183,7 +183,7 @@ public void testStackTruncationWithOpenSearchAccessControllerUsingSupplier() {
183
183
184
184
@ Test
185
185
public void testStackTruncationWithOpenSearchAccessControllerUsingCallable () throws Exception {
186
- org .opensearch .security .AccessController .doPrivilegedChecked (() -> {
186
+ org .opensearch .secure_sm .AccessController .doPrivilegedChecked (() -> {
187
187
StackCallerProtectionDomainChainExtractor extractor = StackCallerProtectionDomainChainExtractor .INSTANCE ;
188
188
Set <ProtectionDomain > protectionDomains = (Set <ProtectionDomain >) extractor .apply (captureStackFrames ().stream ());
189
189
assertEquals (1 , protectionDomains .size ());
@@ -216,13 +216,13 @@ public void testStackTruncationWithOpenSearchAccessControllerUsingCallable() thr
216
216
@ Test
217
217
public void testAccessControllerUsingCallableThrowsException () {
218
218
assertThrows (IllegalArgumentException .class , () -> {
219
- org .opensearch .security .AccessController .doPrivilegedChecked (() -> { throw new IllegalArgumentException ("Test exception" ); });
219
+ org .opensearch .secure_sm .AccessController .doPrivilegedChecked (() -> { throw new IllegalArgumentException ("Test exception" ); });
220
220
});
221
221
}
222
222
223
223
@ Test
224
224
public void testStackTruncationWithOpenSearchAccessControllerUsingCheckedRunnable () throws IllegalArgumentException {
225
- org .opensearch .security .AccessController .doPrivilegedChecked (() -> {
225
+ org .opensearch .secure_sm .AccessController .doPrivilegedChecked (() -> {
226
226
StackCallerProtectionDomainChainExtractor extractor = StackCallerProtectionDomainChainExtractor .INSTANCE ;
227
227
Set <ProtectionDomain > protectionDomains = (Set <ProtectionDomain >) extractor .apply (captureStackFrames ().stream ());
228
228
assertEquals (1 , protectionDomains .size ());
@@ -254,7 +254,7 @@ public void testStackTruncationWithOpenSearchAccessControllerUsingCheckedRunnabl
254
254
@ Test
255
255
public void testAccessControllerUsingCheckedRunnableThrowsException () {
256
256
assertThrows (IllegalArgumentException .class , () -> {
257
- org .opensearch .security .AccessController .doPrivilegedChecked (() -> { throw new IllegalArgumentException ("Test exception" ); });
257
+ org .opensearch .secure_sm .AccessController .doPrivilegedChecked (() -> { throw new IllegalArgumentException ("Test exception" ); });
258
258
});
259
259
}
260
260
}
0 commit comments