This repository has been archived by the owner on May 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump spring-boot.version from 2.6.6 to 2.6.7 (#1804) Bumps `spring-boot.version` from 2.6.6 to 2.6.7. Updates `spring-boot-dependencies` from 2.6.6 to 2.6.7 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v2.6.6...v2.6.7) Updates `spring-boot-starter` from 2.6.6 to 2.6.7 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v2.6.6...v2.6.7) Updates `spring-boot-starter-log4j2` from 2.6.6 to 2.6.7 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v2.6.6...v2.6.7) Updates `spring-boot-starter-web` from 2.6.6 to 2.6.7 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v2.6.6...v2.6.7) Updates `spring-boot-starter-test` from 2.6.6 to 2.6.7 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v2.6.6...v2.6.7) Updates `spring-boot-maven-plugin` from 2.6.6 to 2.6.7 - [Release notes](https://github.com/spring-projects/spring-boot/releases) - [Commits](spring-projects/spring-boot@v2.6.6...v2.6.7) --- updated-dependencies: - dependency-name: org.springframework.boot:spring-boot-dependencies dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: org.springframework.boot:spring-boot-starter dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: org.springframework.boot:spring-boot-starter-log4j2 dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: org.springframework.boot:spring-boot-starter-web dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: org.springframework.boot:spring-boot-starter-test dependency-type: direct:development update-type: version-update:semver-patch - dependency-name: org.springframework.boot:spring-boot-maven-plugin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump protobuf.version from 3.20.0 to 3.20.1 (#1805) Bumps `protobuf.version` from 3.20.0 to 3.20.1. Updates `protobuf-java` from 3.20.0 to 3.20.1 - [Release notes](https://github.com/protocolbuffers/protobuf/releases) - [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py) - [Commits](https://github.com/protocolbuffers/protobuf/commits) Updates `protobuf-java-util` from 3.20.0 to 3.20.1 - [Release notes](https://github.com/protocolbuffers/protobuf/releases) - [Changelog](https://github.com/protocolbuffers/protobuf/blob/main/generate_changelog.py) - [Commits](https://github.com/protocolbuffers/protobuf/commits) --- updated-dependencies: - dependency-name: com.google.protobuf:protobuf-java dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: com.google.protobuf:protobuf-java-util dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump checkstyle from 10.1 to 10.2 (#1807) Bumps [checkstyle](https://github.com/checkstyle/checkstyle) from 10.1 to 10.2. - [Release notes](https://github.com/checkstyle/checkstyle/releases) - [Commits](checkstyle/checkstyle@checkstyle-10.1...checkstyle-10.2) --- updated-dependencies: - dependency-name: com.puppycrawl.tools:checkstyle dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Feature/revocation etag (#1806) * rename package * fetch etag via http HEAD * code coverage * update docs * add ETag repository + service * add ConstructorWithParams * abort further processing if DCC etag exists already * store DCC etag when revocation list was fetched * keep latest DCC etag in memory to be able to store it after successful payload storage * fix link to Zenko CloudServer * test cover DccRevocationListService * RetentionPolicyTestRevocation * package private makes it easier to test * more code coverage Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
286e2cf
commit 781e7ea
Showing
24 changed files
with
461 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...istence/src/main/java/app/coronawarn/server/common/persistence/domain/RevocationEtag.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package app.coronawarn.server.common.persistence.domain; | ||
|
||
import org.springframework.data.annotation.Id; | ||
|
||
public class RevocationEtag { | ||
|
||
@Id | ||
private String path; | ||
|
||
private String etag; | ||
|
||
public RevocationEtag() { | ||
} | ||
|
||
public RevocationEtag(final String path, final String etag) { | ||
this.path = path; | ||
this.etag = etag; | ||
} | ||
|
||
public String getEtag() { | ||
return etag; | ||
} | ||
|
||
public String getPath() { | ||
return path; | ||
} | ||
|
||
public void setEtag(final String etag) { | ||
this.etag = etag; | ||
} | ||
|
||
public void setPath(final String path) { | ||
this.path = path; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
...java/app/coronawarn/server/common/persistence/repository/DccRevocationEtagRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package app.coronawarn.server.common.persistence.repository; | ||
|
||
import app.coronawarn.server.common.persistence.domain.RevocationEtag; | ||
import org.springframework.data.jdbc.repository.query.Modifying; | ||
import org.springframework.data.jdbc.repository.query.Query; | ||
import org.springframework.data.repository.PagingAndSortingRepository; | ||
import org.springframework.data.repository.query.Param; | ||
import org.springframework.stereotype.Repository; | ||
|
||
@Repository | ||
public interface DccRevocationEtagRepository extends PagingAndSortingRepository<RevocationEtag, String> { | ||
|
||
@Modifying | ||
@Query("INSERT INTO revocation_etag (path, etag) VALUES (:path, :etag)") | ||
void save(@Param("path") String path, @Param("etag") String etag); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...nce/src/test/java/app/coronawarn/server/common/persistence/domain/RevocationEtagTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package app.coronawarn.server.common.persistence.domain; | ||
|
||
import static org.junit.Assert.assertEquals; | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
class RevocationEtagTest { | ||
|
||
@Test | ||
void testConstructorWithParams() { | ||
RevocationEtag fixture = new RevocationEtag("", ""); | ||
assertEquals("", fixture.getPath()); | ||
assertEquals("", fixture.getEtag()); | ||
RevocationEtag fixture2 = new RevocationEtag("foo", "bar"); | ||
assertEquals("foo", fixture2.getPath()); | ||
assertEquals("bar", fixture2.getEtag()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.