Skip to content

Commit

Permalink
re enable test and make sure default tenant context is loaded before …
Browse files Browse the repository at this point in the history
…test run
  • Loading branch information
peggimann committed Aug 14, 2024
1 parent 5850d91 commit adf0492
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ch.puzzle.okr.security;

import ch.puzzle.okr.multitenancy.TenantContext;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
Expand All @@ -16,7 +17,11 @@ public class AuthenticationEventsTest {

public static final String TENANT_FROM_TOKEN = "pitc";

@Disabled
@BeforeEach
void prepareTests() {
TenantContext.setCurrentTenant(DEFAULT_TENANT_ID);
}

@DisplayName("onSuccess() puts Token from AuthenticationSuccessEvent in TenantContext")
@Test
void onSuccessPutsTokenFromAuthenticationSuccessEventInTenantContext() {
Expand Down

0 comments on commit adf0492

Please sign in to comment.