File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
server/src/test/java/org/opensearch/common/settings Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 3636import org .opensearch .cluster .ClusterStateUpdateTask ;
3737import org .opensearch .cluster .service .ClusterService ;
3838import org .opensearch .test .OpenSearchTestCase ;
39+ import org .junit .Assume ;
3940import org .junit .Before ;
4041
42+ import javax .crypto .SecretKeyFactory ;
43+
44+ import java .security .NoSuchAlgorithmException ;
4145import java .util .Arrays ;
4246import java .util .Locale ;
4347import java .util .concurrent .atomic .AtomicReference ;
@@ -55,6 +59,12 @@ public class ConsistentSettingsServiceTests extends OpenSearchTestCase {
5559
5660 @ Before
5761 public void init () throws Exception {
62+ try {
63+ SecretKeyFactory .getInstance ("PBKDF2WithHmacSHA512" );
64+ } catch (NoSuchAlgorithmException e ) {
65+ Assume .assumeNoException ("PBKDF2WithHmacSHA512 algorithm is not available" , e );
66+ }
67+
5868 clusterState .set (ClusterState .EMPTY_STATE );
5969 clusterService = mock (ClusterService .class );
6070 Mockito .doAnswer ((Answer ) invocation -> { return clusterState .get (); }).when (clusterService ).state ();
You can’t perform that action at this time.
0 commit comments