Skip to content

Commit 1d79e93

Browse files
authored
Merge pull request #147 from iExecBlockchainComputing/release/8.6.0
Release 8.6.0
2 parents 9c0d8d6 + bfae354 commit 1d79e93

File tree

9 files changed

+39
-27
lines changed

9 files changed

+39
-27
lines changed

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [[8.6.0]](https://github.com/iExecBlockchainComputing/iexec-result-proxy/releases/tag/v8.6.0) 2024-12-20
6+
7+
### Quality
8+
9+
- Keep `itest` task empty in `build.gradle` to avoid a warning during build. (#145)
10+
11+
### Dependency Upgrades
12+
13+
- Upgrade to `eclipse-temurin:11.0.24_8-jre-focal`. (#141)
14+
- Upgrade to Gradle 8.10.2. (#142)
15+
- Upgrade to `testcontainers` 1.20.4. (#143)
16+
- Upgrade to `mongo:7.0.15-jammy`. (#144)
17+
- Upgrade to `iexec-commons-poco` 4.2.0. (#146)
18+
- Upgrade to `iexec-common` 8.6.0. (#146)
19+
520
## [[8.5.0]](https://github.com/iExecBlockchainComputing/iexec-result-proxy/releases/tag/v8.5.0) 2024-06-18
621

722
### New Features
@@ -22,7 +37,7 @@ All notable changes to this project will be documented in this file.
2237
- Upgrade to `eclipse-temurin:11.0.22_7-jre-focal`. (#135)
2338
- Upgrade to Spring Boot 2.7.18. (#136)
2439
- Upgrade to `iexec-commons-poco` 4.1.0. (#138)
25-
- Upgrade to `iexce-common` 8.5.0. (#138)
40+
- Upgrade to `iexec-common` 8.5.0. (#138)
2641

2742
## [[8.4.0]](https://github.com/iExecBlockchainComputing/iexec-result-proxy/releases/tag/v8.4.0) 2024-02-29
2843

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eclipse-temurin:11.0.22_7-jre-focal
1+
FROM eclipse-temurin:11.0.24_8-jre-focal
22

33
ARG jar
44

build.gradle

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
plugins {
22
id 'java'
3-
id 'io.freefair.lombok' version '8.6'
3+
id 'io.freefair.lombok' version '8.10.2'
44
id 'org.springframework.boot' version '2.7.18'
5-
id 'io.spring.dependency-management' version '1.1.4'
5+
id 'io.spring.dependency-management' version '1.1.6'
66
id 'jacoco'
7-
id 'org.sonarqube' version '5.0.0.4638'
7+
id 'org.sonarqube' version '5.1.0.4882'
88
id 'maven-publish'
99
}
1010

1111
ext {
12-
springCloudVersion = '2021.0.8'
1312
jjwtVersion = '0.11.5'
14-
testContainersVersion = '1.19.3'
13+
testContainersVersion = '1.20.4'
1514
}
1615

1716
if (!project.hasProperty('gitBranch')) {
@@ -55,8 +54,9 @@ dependencies {
5554
implementation 'org.springframework.boot:spring-boot-starter-actuator'
5655
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
5756
implementation 'org.springframework.boot:spring-boot-starter-web'
58-
implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
5957
implementation "org.springframework.retry:spring-retry"
58+
// required for spring-retry
59+
runtimeOnly 'org.aspectj:aspectjweaver'
6060

6161
// observability
6262
runtimeOnly 'io.micrometer:micrometer-registry-prometheus'
@@ -76,12 +76,6 @@ dependencies {
7676
implementation 'net.jodah:expiringmap:0.5.10'
7777
}
7878

79-
dependencyManagement {
80-
imports {
81-
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
82-
}
83-
}
84-
8579
springBoot {
8680
buildInfo()
8781
}
@@ -108,10 +102,10 @@ testing {
108102

109103
tasks.withType(Test).configureEach {
110104
finalizedBy jacocoTestReport
111-
systemProperty "mongo.image", "mongo:4.4.28-focal"
105+
systemProperty "mongo.image", "mongo:7.0.15-jammy"
112106
}
113107

114-
tasks.register('itest', Test) {
108+
tasks.register('itest') {
115109
group 'Verification'
116110
description 'Runs the integration tests.'
117111
}

gradle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
version=8.5.0
2-
iexecCommonVersion=8.5.0
3-
iexecCommonsPocoVersion=4.1.0
1+
version=8.6.0
2+
iexecCommonVersion=8.6.0
3+
iexecCommonsPocoVersion=4.2.0
44

55
nexusUser
66
nexusPassword

gradle/wrapper/gradle-wrapper.jar

130 Bytes
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717
#
18+
# SPDX-License-Identifier: Apache-2.0
19+
#
1820

1921
##############################################################################
2022
#
@@ -55,7 +57,7 @@
5557
# Darwin, MinGW, and NonStop.
5658
#
5759
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
60+
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5961
# within the Gradle project.
6062
#
6163
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -84,7 +86,8 @@ done
8486
# shellcheck disable=SC2034
8587
APP_BASE_NAME=${0##*/}
8688
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87-
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90+
' "$PWD" ) || exit
8891

8992
# Use the maximum available, or set MAX_FD != -1 to use that value.
9093
MAX_FD=maximum

gradlew.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
@rem See the License for the specific language governing permissions and
1414
@rem limitations under the License.
1515
@rem
16+
@rem SPDX-License-Identifier: Apache-2.0
17+
@rem
1618

1719
@if "%DEBUG%"=="" @echo off
1820
@rem ##########################################################################

src/test/java/com/iexec/resultproxy/authorization/AuthorizationServiceTests.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@
2727
import com.iexec.resultproxy.chain.IexecHubService;
2828
import org.junit.jupiter.api.BeforeEach;
2929
import org.junit.jupiter.api.Test;
30+
import org.junit.jupiter.api.extension.ExtendWith;
3031
import org.mockito.Mock;
31-
import org.mockito.MockitoAnnotations;
32+
import org.mockito.junit.jupiter.MockitoExtension;
3233
import org.springframework.beans.factory.annotation.Autowired;
3334
import org.springframework.boot.test.autoconfigure.data.mongo.DataMongoTest;
3435
import org.springframework.test.context.DynamicPropertyRegistry;
@@ -59,6 +60,7 @@
5960

6061
@DataMongoTest
6162
@Testcontainers
63+
@ExtendWith(MockitoExtension.class)
6264
class AuthorizationServiceTests {
6365

6466
private static final String RESULT_DIGEST = "0x3210";
@@ -84,7 +86,6 @@ static void registerProperties(DynamicPropertyRegistry registry) {
8486

8587
@BeforeEach
8688
void beforeEach() throws GeneralSecurityException {
87-
MockitoAnnotations.openMocks(this);
8889
enclaveCreds = Credentials.create(Keys.createEcKeyPair());
8990
workerCreds = Credentials.create(Keys.createEcKeyPair());
9091
authorizationRepository.deleteAll();
@@ -135,7 +136,6 @@ void shouldNotBeAuthorizedOnExecutionOfTeeTaskWhenTaskTypeNotMatchedOnchainWithD
135136
@Test
136137
void shouldNotBeAuthorizedOnExecutionOfTeeTaskWhenGetTaskFailedWithDetails() {
137138
final WorkerpoolAuthorization auth = getWorkerpoolAuthorization(true);
138-
when(iexecHubService.isTeeTask(auth.getChainTaskId())).thenReturn(true);
139139
when(iexecHubService.getChainTask(auth.getChainTaskId())).thenReturn(Optional.empty());
140140

141141
Optional<AuthorizationError> isAuth = authorizationService.isAuthorizedOnExecutionWithDetailedIssue(auth);
@@ -149,7 +149,6 @@ void shouldNotBeAuthorizedOnExecutionOfTeeTaskWhenFinalDeadlineReached() {
149149
.dealid(CHAIN_DEAL_ID)
150150
.finalDeadline(Instant.now().minus(5L, ChronoUnit.SECONDS).toEpochMilli())
151151
.build();
152-
when(iexecHubService.isTeeTask(auth.getChainTaskId())).thenReturn(true);
153152
when(iexecHubService.getChainTask(auth.getChainTaskId())).thenReturn(Optional.of(chainTask));
154153

155154
Optional<AuthorizationError> isAuth = authorizationService.isAuthorizedOnExecutionWithDetailedIssue(auth);
@@ -162,7 +161,6 @@ void shouldNotBeAuthorizedOnExecutionOfTeeTaskWhenGetDealFailedWithDetails() {
162161
final WorkerpoolAuthorization auth = getWorkerpoolAuthorization(true);
163162
auth.setSignature(new Signature(POOL_WRONG_SIGNATURE));
164163

165-
when(iexecHubService.isTeeTask(auth.getChainTaskId())).thenReturn(true);
166164
when(iexecHubService.getChainTask(auth.getChainTaskId())).thenReturn(Optional.of(chainTask));
167165
when(iexecHubService.getChainDeal(chainTask.getDealid())).thenReturn(Optional.empty());
168166

0 commit comments

Comments
 (0)