File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed
itests/hive-unit/src/test/java/org/apache/hive/service/auth/jwt
standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore Expand file tree Collapse file tree 2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,7 @@ public class TestHttpJwtAuthentication {
8787 public static void makeEnvModifiable () throws Exception {
8888 envMap = new HashMap <>();
8989 Class <?> envClass = Class .forName ("java.lang.ProcessEnvironment" );
90- Field theEnvironmentField = envClass .getDeclaredField ("theEnvironment" );
9190 Field theUnmodifiableEnvironmentField = envClass .getDeclaredField ("theUnmodifiableEnvironment" );
92- removeStaticFinalAndSetValue (theEnvironmentField , envMap );
9391 removeStaticFinalAndSetValue (theUnmodifiableEnvironmentField , envMap );
9492 }
9593
Original file line number Diff line number Diff line change 4949import java .util .Date ;
5050import java .util .UUID ;
5151import java .util .concurrent .TimeUnit ;
52- import org .junit .Ignore ;
5352import org .junit .Test ;
5453import org .junit .experimental .categories .Category ;
5554import org .slf4j .Logger ;
5857import static com .github .tomakehurst .wiremock .client .WireMock .get ;
5958import static com .github .tomakehurst .wiremock .client .WireMock .ok ;
6059import static org .junit .Assert .assertEquals ;
61- import static org .junit .Assert .assertFalse ;
62- import static org .junit .Assert .assertTrue ;
6360
6461/*
6562Tests JWT auth in HiveMetastore server.
@@ -94,9 +91,7 @@ public class TestRemoteHiveMetastoreWithHttpJwt {
9491 public static void makeEnvModifiable () throws Exception {
9592 envMap = new HashMap <>();
9693 Class <?> envClass = Class .forName ("java.lang.ProcessEnvironment" );
97- Field theEnvironmentField = envClass .getDeclaredField ("theEnvironment" );
9894 Field theUnmodifiableEnvironmentField = envClass .getDeclaredField ("theUnmodifiableEnvironment" );
99- removeStaticFinalAndSetValue (theEnvironmentField , envMap );
10095 removeStaticFinalAndSetValue (theUnmodifiableEnvironmentField , envMap );
10196 }
10297
You can’t perform that action at this time.
0 commit comments