Skip to content

Commit

Permalink
delete :PublicInstall setting before and after test run #9260
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Aug 24, 2023
1 parent 022bf06 commit 137b1ba
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/java/edu/harvard/iq/dataverse/api/FilesIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import static org.hamcrest.CoreMatchers.startsWith;
import static org.hamcrest.CoreMatchers.nullValue;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.AfterAll;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
Expand All @@ -47,6 +48,15 @@ public class FilesIT {
@BeforeAll
public static void setUpClass() {
RestAssured.baseURI = UtilIT.getRestAssuredBaseUri();

Response removePublicInstall = UtilIT.deleteSetting(SettingsServiceBean.Key.PublicInstall);
removePublicInstall.then().assertThat().statusCode(200);

}

@AfterAll
public static void tearDownClass() {
UtilIT.deleteSetting(SettingsServiceBean.Key.PublicInstall);
}

/**
Expand Down

0 comments on commit 137b1ba

Please sign in to comment.