Skip to content

Commit

Permalink
refactor(SqlSchemaUpdaterTest): Disabled auth
Browse files Browse the repository at this point in the history
  • Loading branch information
Robin Beer authored and Robin Beer committed Aug 16, 2023
1 parent 89f6f11 commit 026fa2f
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.conveyal.datatools.DatatoolsTest;
import com.conveyal.datatools.UnitTest;
import com.conveyal.datatools.manager.DataManager;
import com.conveyal.datatools.manager.auth.Auth0Connection;
import com.conveyal.datatools.manager.models.FeedSource;
import com.conveyal.datatools.manager.models.FeedVersion;
import com.conveyal.datatools.manager.models.Project;
Expand Down Expand Up @@ -40,6 +41,7 @@ class SqlSchemaUpdaterTest extends UnitTest {
public static void setUp() throws IOException {
// start server if it isn't already running.
DatatoolsTest.setUp();
Auth0Connection.setAuthDisabled(true);

// Create a project and feed sources.
project = new Project();
Expand All @@ -60,6 +62,7 @@ public static void setUp() throws IOException {
*/
@AfterAll
public static void tearDown() {
Auth0Connection.setAuthDisabled(Auth0Connection.getDefaultAuthDisabled());
// Project delete cascades to feed sources.
project.delete();
}
Expand Down

0 comments on commit 026fa2f

Please sign in to comment.