Merge pull request #11008 from DSpace/dependabot/maven/build-tools-0ef32859ab

Bump the build-tools group across 1 directory with 6 updates
This commit is contained in:
Tim Donohue
2025-07-28 16:11:00 -05:00
committed by GitHub
6 changed files with 20 additions and 9 deletions

View File

@@ -1469,6 +1469,7 @@ public class CollectionRestRepositoryIT extends AbstractControllerIntegrationTes
authorizeService.removePoliciesActionFilter(context, eperson, Constants.WRITE); authorizeService.removePoliciesActionFilter(context, eperson, Constants.WRITE);
} }
@Test
public void patchCollectionMetadataAuthorized() throws Exception { public void patchCollectionMetadataAuthorized() throws Exception {
runPatchMetadataTests(admin, 200); runPatchMetadataTests(admin, 200);
} }

View File

@@ -913,6 +913,7 @@ public class WorkflowItemRestRepositoryIT extends AbstractControllerIntegrationT
* *
* @throws Exception * @throws Exception
*/ */
@Test
public void validationErrorsRequiredMetadataTest() throws Exception { public void validationErrorsRequiredMetadataTest() throws Exception {
context.turnOffAuthorisationSystem(); context.turnOffAuthorisationSystem();
@@ -936,6 +937,7 @@ public class WorkflowItemRestRepositoryIT extends AbstractControllerIntegrationT
XmlWorkflowItem witem = WorkflowItemBuilder.createWorkflowItem(context, col1) XmlWorkflowItem witem = WorkflowItemBuilder.createWorkflowItem(context, col1)
.withTitle("Workflow Item 1") .withTitle("Workflow Item 1")
.withIssueDate("2017-10-17") .withIssueDate("2017-10-17")
.grantLicense()
.build(); .build();
//4. a workflow item without the dateissued required field //4. a workflow item without the dateissued required field
@@ -947,12 +949,12 @@ public class WorkflowItemRestRepositoryIT extends AbstractControllerIntegrationT
String authToken = getAuthToken(eperson.getEmail(), password); String authToken = getAuthToken(eperson.getEmail(), password);
getClient(authToken).perform(get("/api/workflow/worfklowitems/" + witem.getID())) getClient(authToken).perform(get("/api/workflow/workflowitems/" + witem.getID()))
.andExpect(status().isOk()) .andExpect(status().isOk())
.andExpect(jsonPath("$.errors").doesNotExist()) .andExpect(jsonPath("$.errors").doesNotExist())
; ;
getClient(authToken).perform(get("/api/workflow/worfklowitems/" + witemMissingFields.getID())) getClient(authToken).perform(get("/api/workflow/workflowitems/" + witemMissingFields.getID()))
.andExpect(status().isOk()) .andExpect(status().isOk())
.andExpect(jsonPath("$.errors[?(@.message=='error.validation.required')]", .andExpect(jsonPath("$.errors[?(@.message=='error.validation.required')]",
Matchers.contains( Matchers.contains(

View File

@@ -2621,6 +2621,7 @@ public class WorkspaceItemRestRepositoryIT extends AbstractControllerIntegration
(witem, "Workspace Item 1", "2019-01-01", "ExtraEntry")))); (witem, "Workspace Item 1", "2019-01-01", "ExtraEntry"))));
} }
@Test
public void patchReplaceMetadataOnItemStillInSubmissionTest() throws Exception { public void patchReplaceMetadataOnItemStillInSubmissionTest() throws Exception {
context.turnOffAuthorisationSystem(); context.turnOffAuthorisationSystem();
@@ -5922,6 +5923,7 @@ public class WorkspaceItemRestRepositoryIT extends AbstractControllerIntegration
.andExpect(jsonPath("$.sections.upload.files[0].accessConditions", empty())); .andExpect(jsonPath("$.sections.upload.files[0].accessConditions", empty()));
} }
@Test
public void deleteWorkspaceItemWithMinRelationshipsTest() throws Exception { public void deleteWorkspaceItemWithMinRelationshipsTest() throws Exception {
context.turnOffAuthorisationSystem(); context.turnOffAuthorisationSystem();
@@ -7964,6 +7966,7 @@ ResourcePolicyBuilder.createResourcePolicy(context, null, adminGroup)
))); )));
} }
@Test
public void verifyBitstreamPolicyNotDuplicatedTest() throws Exception { public void verifyBitstreamPolicyNotDuplicatedTest() throws Exception {
context.turnOffAuthorisationSystem(); context.turnOffAuthorisationSystem();

View File

@@ -459,6 +459,7 @@ public class RequestCopyFeatureIT extends AbstractControllerIntegrationTest {
.andExpect(jsonPath("$._embedded").doesNotExist()); .andExpect(jsonPath("$._embedded").doesNotExist());
} }
@Test
public void requestACopyItemTypeLoggedAsAnonymous() throws Exception { public void requestACopyItemTypeLoggedAsAnonymous() throws Exception {
configurationService.setProperty("request.item.type", "logged"); configurationService.setProperty("request.item.type", "logged");
@@ -493,6 +494,7 @@ public class RequestCopyFeatureIT extends AbstractControllerIntegrationTest {
); );
} }
@Test
public void requestACopyItemTypeEmptyAsAnonymous() throws Exception { public void requestACopyItemTypeEmptyAsAnonymous() throws Exception {
configurationService.setProperty("request.item.type", ""); configurationService.setProperty("request.item.type", "");
@@ -507,6 +509,7 @@ public class RequestCopyFeatureIT extends AbstractControllerIntegrationTest {
.andExpect(jsonPath("$._embedded").doesNotExist()); .andExpect(jsonPath("$._embedded").doesNotExist());
} }
@Test
public void requestACopyItemTypeEmptyAsEperson() throws Exception { public void requestACopyItemTypeEmptyAsEperson() throws Exception {
configurationService.setProperty("request.item.type", ""); configurationService.setProperty("request.item.type", "");
@@ -523,6 +526,7 @@ public class RequestCopyFeatureIT extends AbstractControllerIntegrationTest {
.andExpect(jsonPath("$._embedded").doesNotExist()); .andExpect(jsonPath("$._embedded").doesNotExist());
} }
@Test
public void requestACopyItemTypeBogusValueAsAnonymous() throws Exception { public void requestACopyItemTypeBogusValueAsAnonymous() throws Exception {
configurationService.setProperty("request.item.type", "invalid value"); configurationService.setProperty("request.item.type", "invalid value");
@@ -537,6 +541,7 @@ public class RequestCopyFeatureIT extends AbstractControllerIntegrationTest {
.andExpect(jsonPath("$._embedded").doesNotExist()); .andExpect(jsonPath("$._embedded").doesNotExist());
} }
@Test
public void requestACopyItemTypeBogusValueAsEperson() throws Exception { public void requestACopyItemTypeBogusValueAsEperson() throws Exception {
configurationService.setProperty("request.item.type", "invalid value"); configurationService.setProperty("request.item.type", "invalid value");

10
pom.xml
View File

@@ -29,7 +29,7 @@
<solr.client.version>8.11.4</solr.client.version> <solr.client.version>8.11.4</solr.client.version>
<ehcache.version>3.10.8</ehcache.version> <ehcache.version>3.10.8</ehcache.version>
<errorprone.version>2.38.0</errorprone.version> <errorprone.version>2.41.0</errorprone.version>
<!-- NOTE: when updating jackson.version, also sync jackson-databind.version below --> <!-- NOTE: when updating jackson.version, also sync jackson-databind.version below -->
<jackson.version>2.19.2</jackson.version> <jackson.version>2.19.2</jackson.version>
<jackson-databind.version>2.19.2</jackson-databind.version> <jackson-databind.version>2.19.2</jackson-databind.version>
@@ -92,7 +92,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId> <artifactId>maven-enforcer-plugin</artifactId>
<version>3.5.0</version> <version>3.6.1</version>
<executions> <executions>
<execution> <execution>
<id>enforce-java</id> <id>enforce-java</id>
@@ -299,7 +299,7 @@
<dependency> <dependency>
<groupId>com.puppycrawl.tools</groupId> <groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId> <artifactId>checkstyle</artifactId>
<version>10.25.0</version> <version>10.26.1</version>
</dependency> </dependency>
</dependencies> </dependencies>
</plugin> </plugin>
@@ -402,7 +402,7 @@
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId> <artifactId>maven-gpg-plugin</artifactId>
<version>3.2.7</version> <version>3.2.8</version>
</plugin> </plugin>
<!-- Used for code coverage reporting (see 'measure-test-coverage' profile) --> <!-- Used for code coverage reporting (see 'measure-test-coverage' profile) -->
<plugin> <plugin>
@@ -696,7 +696,7 @@
<plugin> <plugin>
<groupId>org.codehaus.mojo</groupId> <groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId> <artifactId>license-maven-plugin</artifactId>
<version>2.5.0</version> <version>2.6.0</version>
<!-- This plugin only needs to be run on the Parent POM <!-- This plugin only needs to be run on the Parent POM
as it aggregates results from all child POMs. --> as it aggregates results from all child POMs. -->
<inherited>false</inherited> <inherited>false</inherited>