Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: true
matrix:
jdk: [8, 11, 14]
jdk: [8, 11, 14, 17]

steps:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.util.HashMap;
import java.util.Map;

import org.junit.Before;
import org.opensearch.common.settings.Settings;

import org.apache.http.HttpHeaders;
Expand All @@ -42,6 +43,8 @@
import org.opensearch.security.util.FakeRestRequest;
import com.google.common.io.BaseEncoding;

import static org.junit.Assume.assumeFalse;

public class HTTPJwtAuthenticatorTest {

final static byte[] secretKey = new byte[1024];
Expand All @@ -50,6 +53,15 @@ public class HTTPJwtAuthenticatorTest {
new SecureRandom().nextBytes(secretKey);
}

/*
This test fails during Java 17 build due to a known bug: https://bugs.openjdk.java.net/browse/JDK-8251547
TODO: This method should be removed once a fix is implemented
Copy link
Member

@peternied peternied Feb 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than create a TODO can you create an issue that captures what is wrong and what should be done (If you know)?

Copy link
Member Author

@DarshitChanpura DarshitChanpura Feb 17, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I already created an issue and connected it to this PR as well

#1620

*/
@Before
public void isJavaVersionBelow17(){
assumeFalse(System.getProperty("java.version").startsWith("17"));
}

@Test
public void testNoKey() throws Exception {

Expand Down