test: cleanup static EnvironmentContext in test to avoid failing the test when they run in reverse order (#69)
Signed-off-by: Michal Vala <mvala@redhat.com>pull/57/head^2
parent
813218455a
commit
37210828ea
|
|
@ -33,6 +33,7 @@ public class KubernetesOidcProviderConfigFactoryTest {
|
|||
|
||||
@BeforeMethod
|
||||
public void setUp() {
|
||||
EnvironmentContext.reset();
|
||||
defaultConfig = new ConfigBuilder().build();
|
||||
}
|
||||
|
||||
|
|
@ -44,7 +45,7 @@ public class KubernetesOidcProviderConfigFactoryTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
public void getConfigWithTokenWhenTokenIsSet() {
|
||||
EnvironmentContext.getCurrent()
|
||||
.setSubject(new SubjectImpl("test_name", "test_id", TEST_TOKEN, false));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue