1
0

feature/add-jenkinsfile (#114)

Co-authored-by: Michael Hoennig <michael@hoennig.de>
Co-authored-by: Michael Hönnig <michael@hoennig.de>
Reviewed-on: https://dev.hostsharing.net/hostsharing/hs.hsadmin.ng/pulls/114
Reviewed-by: Timotheus Pokorra <timotheus.pokorra@hostsharing.net>
This commit is contained in:
Michael Hoennig
2024-10-14 10:36:50 +02:00
parent c26ae77a09
commit c181500a1d
5 changed files with 77 additions and 4 deletions

View File

@ -28,10 +28,10 @@ public interface HsOfficeRelationRbacRepository extends Repository<HsOfficeRelat
* @return a list of (accessible) relations which match all given criteria
*/
default List<HsOfficeRelationRbacEntity> findRelationRelatedToPersonUuidRelationTypePersonAndContactData(
UUID personUuid,
HsOfficeRelationType relationType,
String personData,
String contactData) {
final UUID personUuid,
final HsOfficeRelationType relationType,
final String personData,
final String contactData) {
return findRelationRelatedToPersonUuidRelationTypePersonAndContactDataImpl(
personUuid, toStringOrNull(relationType), toSqlLikeOperand(personData), toSqlLikeOperand(contactData));
}

View File

@ -176,6 +176,7 @@ class HsDomainDnsSetupHostingAssetValidatorUnitTest {
// given
final var givenEntity = validEntityBuilder().build();
final var validator = HostingAssetEntityValidatorRegistry.forType(givenEntity.getType());
Dns.fakeResultForDomain(givenEntity.getIdentifier(), Dns.Result.fromRecords());
// when
final var errors = validator.validateContext(givenEntity);
@ -317,6 +318,7 @@ class HsDomainDnsSetupHostingAssetValidatorUnitTest {
))
.build();
final var validator = HostingAssetEntityValidatorRegistry.forType(givenEntity.getType());
Dns.fakeResultForDomain("example.org", Dns.Result.fromRecords());
// when
final var errors = validator.validateContext(givenEntity);
@ -340,6 +342,7 @@ class HsDomainDnsSetupHostingAssetValidatorUnitTest {
))
.build();
final var validator = HostingAssetEntityValidatorRegistry.forType(givenEntity.getType());
Dns.fakeResultForDomain("example.org", Dns.Result.fromRecords());
// when
final var zonefileErrors = new ArrayList<String>();

View File

@ -33,3 +33,11 @@ logging:
level:
liquibase: WARN
net.ttddyy.dsproxy.listener: DEBUG # HOWTO: log meaningful SQL statements
# just for the case there are problems with Testcontainers/Docker integration
# org.testcontainers: DEBUG
# com.github.dockerjava: DEBUG
testcontainers:
network:
mode: host