Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions commons-kstreams/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@

<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>
<artifactId>quarkus-junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5-mockito</artifactId>
<artifactId>quarkus-junit-mockito</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion commons-persistence/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>
<artifactId>quarkus-junit</artifactId>
<scope>test</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public class Component extends PanacheEntityBase {
@JoinColumn(name = "PROJECT_ID", nullable = false)
private Project project;

@Column(name = "UUID")
@Column(name = "UUID", nullable = false)
@JdbcType(UUIDJdbcType.class)
private UUID uuid;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,25 @@ public class NotificationPublisher extends PanacheEntityBase {
@Column(name = "ID")
private long id;

@Column(name = "NAME")
@Column(name = "NAME", nullable = false)
private String name;

@Column(name = "DESCRIPTION")
private String description;

@Column(name = "PUBLISHER_CLASS")
@Column(name = "PUBLISHER_CLASS", nullable = false)
private String publisherClass;

@Column(name = "TEMPLATE")
private String template;

@Column(name = "TEMPLATE_MIME_TYPE")
@Column(name = "TEMPLATE_MIME_TYPE", nullable = false)
private String templateMimeType;

@Column(name = "DEFAULT_PUBLISHER")
@Column(name = "DEFAULT_PUBLISHER", nullable = false)
private boolean defaultPublisher;

@Column(name = "UUID")
@Column(name = "UUID", nullable = false)
@JdbcType(UUIDJdbcType.class)
private UUID uuid;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,18 +51,18 @@ public class NotificationRule extends PanacheEntityBase {
@Column(name = "ID")
private long id;

@Column(name = "NAME")
@Column(name = "NAME", nullable = false)
private String name;

@Column(name = "ENABLED")
@Column(name = "ENABLED", nullable = false)
private boolean enabled;

@Column(name = "SCOPE", nullable = false, columnDefinition = "varchar")
@Convert(converter = NotificationScopeConverter.class)
private NotificationScope scope;

@JdbcTypeCode(SqlTypes.NAMED_ENUM)
@Column(name = "NOTIFICATION_LEVEL", columnDefinition = "notification_level")
@Column(name = "NOTIFICATION_LEVEL", columnDefinition = "notification_level", nullable = false)
private NotificationLevel notificationLevel;

@OneToMany
Expand Down Expand Up @@ -107,7 +107,7 @@ public class NotificationRule extends PanacheEntityBase {
@Column(name = "PUBLISHER_CONFIG")
private String publisherConfig;

@Column(name = "UUID")
@Column(name = "UUID", nullable = false)
@JdbcType(UUIDJdbcType.class)
private UUID uuid;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class Project implements Serializable {
@Column(name = "\"GROUP\"", columnDefinition = "VARCHAR")
private String group;

@Column(name = "NAME", columnDefinition = "VARCHAR")
@Column(name = "NAME", columnDefinition = "VARCHAR", nullable = false)
private String name;

@Column(name = "DESCRIPTION", columnDefinition = "VARCHAR")
Expand Down Expand Up @@ -91,7 +91,7 @@ public class Project implements Serializable {
@OrderBy("name ASC")
private List<Tag> tags;

@Column(name = "UUID")
@Column(name = "UUID", nullable = false)
@JdbcType(UUIDJdbcType.class)
private UUID uuid;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,20 @@ public class Repository {
@Column(name = "ID")
private long id;

@Column(name = "TYPE", columnDefinition = "VARCHAR")
@Column(name = "TYPE", columnDefinition = "VARCHAR", nullable = false)
@Convert(converter = RepositoryTypeConverter.class)
private RepositoryType type;

@Column(name = "IDENTIFIER")
@Column(name = "IDENTIFIER", nullable = false)
private String identifier;

@Column(name = "URL")
private String url;

@Column(name = "RESOLUTION_ORDER")
@Column(name = "RESOLUTION_ORDER", nullable = false)
private int resolutionOrder;

@Column(name = "ENABLED")
@Column(name = "ENABLED", nullable = false)
private boolean enabled;

@Column(name = "INTERNAL")
Expand All @@ -67,7 +67,7 @@ public class Repository {
@Column(name = "PASSWORD")
private String password;

@Column(name = "UUID")
@Column(name = "UUID", nullable = false)
@JdbcType(UUIDJdbcType.class)
private UUID uuid;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class Tag {
@Column(name = "ID")
private long id;

@Column(name = "NAME")
@Column(name = "NAME", nullable = false)
private String name;

@OrderBy("name ASC")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class Team {
@Column(name = "ID")
private long id;

@Column(name = "NAME")
@Column(name = "NAME", nullable = false)
private String name;

public long getId() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ public enum Source {
@Column(name = "ID")
private long id;

@Column(name = "VULNID")
@Column(name = "VULNID", nullable = false)
private String vulnId;

@Column(name = "SOURCE")
@Column(name = "SOURCE", nullable = false)
private String source;

@Column(name = "FRIENDLYVULNID")
Expand Down Expand Up @@ -165,7 +165,7 @@ public enum Source {
)
private List<Component> components;

@Column(name = "UUID")
@Column(name = "UUID", nullable = false)
@JdbcType(UUIDJdbcType.class)
private UUID uuid;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class VulnerabilityAlias implements Serializable {
@Column(name = "VULNDB_ID")
private String vulnDbId;

@Column(name = "UUID")
@Column(name = "UUID", nullable = false)
@JdbcType(UUIDJdbcType.class)
private UUID uuid;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public class VulnerableSoftware extends PanacheEntityBase implements ICpe {
@Column(name = "VERSIONSTARTINCLUDING")
private String versionStartIncluding;

@Column(name = "VULNERABLE")
@Column(name = "VULNERABLE", nullable = false)
private boolean vulnerable;

@ManyToMany(fetch = FetchType.EAGER)
Expand All @@ -135,7 +135,7 @@ public class VulnerableSoftware extends PanacheEntityBase implements ICpe {
@OrderBy("id ASC")
private List<Vulnerability> vulnerabilities;

@Column(name = "UUID")
@Column(name = "UUID", nullable = false)
@JdbcType(UUIDJdbcType.class)
private UUID uuid;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ dtrack.internal.cluster.id=${quarkus.uuid}
quarkus.hibernate-orm.quote-identifiers.strategy=all
# Hibernate should only validate that the existing schema matches our entity classes,
# but it should never generate a schema by itself.
quarkus.hibernate-orm.database.generation=validate
quarkus.hibernate-orm.schema-management.strategy=validate
quarkus.datasource.devservices.image-name=postgres:14-alpine
quarkus.datasource.devservices.init-script-path=schema.sql
4 changes: 2 additions & 2 deletions commons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>
<artifactId>quarkus-junit</artifactId>
<scope>test</scope>
</dependency>

Expand All @@ -91,7 +91,7 @@
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5-mockito</artifactId>
<artifactId>quarkus-junit-mockito</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
6 changes: 3 additions & 3 deletions e2e/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>
<artifactId>quarkus-junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -62,7 +62,7 @@
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>minio</artifactId>
<artifactId>testcontainers-minio</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -88,7 +88,7 @@
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>postgresql</artifactId>
<artifactId>testcontainers-postgresql</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
package org.dependencytrack.e2e;

import com.github.tomakehurst.wiremock.junit5.WireMockExtension;
import org.apache.commons.io.IOUtils;
import org.dependencytrack.apiserver.model.BomUploadRequest;
import org.dependencytrack.apiserver.model.CreateNotificationRuleRequest;
import org.dependencytrack.apiserver.model.CreateVulnerabilityRequest;
Expand All @@ -31,7 +32,6 @@
import org.junit.jupiter.api.extension.RegisterExtension;
import org.testcontainers.Testcontainers;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.shaded.org.apache.commons.io.IOUtils;

import java.time.Duration;
import java.util.Base64;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
*/
package org.dependencytrack.e2e;

import org.apache.commons.io.IOUtils;
import org.dependencytrack.apiserver.model.EventProcessingResponse;
import org.dependencytrack.apiserver.model.BomUploadRequest;
import org.dependencytrack.apiserver.model.Finding;
import org.dependencytrack.apiserver.model.Project;
import org.dependencytrack.apiserver.model.WorkflowTokenResponse;
import org.junit.jupiter.api.Test;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.shaded.org.apache.commons.io.IOUtils;

import java.time.Duration;
import java.util.Base64;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import com.github.tomakehurst.wiremock.junit5.WireMockExtension;
import com.icegreen.greenmail.junit5.GreenMailExtension;
import com.icegreen.greenmail.util.ServerSetup;
import org.apache.commons.io.IOUtils;
import org.dependencytrack.apiserver.model.EventProcessingResponse;
import org.dependencytrack.apiserver.model.BomUploadRequest;
import org.dependencytrack.apiserver.model.ConfigProperty;
Expand All @@ -39,7 +40,6 @@
import org.junit.jupiter.api.extension.RegisterExtension;
import org.testcontainers.Testcontainers;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.shaded.org.apache.commons.io.IOUtils;

import jakarta.mail.internet.MimeMessage;
import java.time.Duration;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package org.dependencytrack.e2e;

import org.apache.commons.io.IOUtils;
import org.dependencytrack.apiserver.model.EventProcessingResponse;
import org.dependencytrack.apiserver.model.BomUploadRequest;
import org.dependencytrack.apiserver.model.Finding;
Expand All @@ -26,7 +27,6 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.shaded.org.apache.commons.io.IOUtils;

import java.time.Duration;
import java.util.Base64;
Expand Down
5 changes: 3 additions & 2 deletions notification-publisher/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
<version>0.7.0-SNAPSHOT</version>
</parent>
<artifactId>notification-publisher</artifactId>
<packaging>quarkus</packaging>

<properties>
<project.parentBaseDir>${project.basedir}/..</project.parentBaseDir>
Expand Down Expand Up @@ -99,12 +100,12 @@

<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5</artifactId>
<artifactId>quarkus-junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-junit5-mockito</artifactId>
<artifactId>quarkus-junit-mockito</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ quarkus.hibernate-orm.quote-identifiers.strategy=all

# Hibernate should only validate that the existing schema matches our entity classes,
# but it should never generate a schema by itself.
quarkus.hibernate-orm.database.generation=validate
quarkus.hibernate-orm.schema-management.strategy=validate

# Use external Postgres DB for dev mode (./mvnw quarkus:dev), but let Quarkus
# take care of test container creation in the test profile.
Expand Down
Loading
Loading