Skip to content
Snippets Groups Projects
Commit 8ba3622c authored by Martin Lowe's avatar Martin Lowe :flag_ca:
Browse files

Update Quarkus version + common lib, fixed test DB def

parent f177a49a
No related branches found
No related tags found
1 merge request!89Iss #67 - Add IG support to Git ECA check
......@@ -5,7 +5,7 @@
<artifactId>git-eca</artifactId>
<version>0.0.1</version>
<properties>
<eclipse-api-version>0.6.5-SNAPSHOT</eclipse-api-version>
<eclipse-api-version>0.6.6</eclipse-api-version>
<compiler-plugin.version>3.8.1</compiler-plugin.version>
<maven.compiler.parameters>true</maven.compiler.parameters>
<maven.compiler.source>11</maven.compiler.source>
......@@ -14,7 +14,7 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<quarkus.platform.artifact-id>quarkus-universe-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus</quarkus.platform.group-id>
<quarkus.platform.version>2.6.3.Final</quarkus.platform.version>
<quarkus.platform.version>2.9.2.Final</quarkus.platform.version>
<surefire-plugin.version>2.22.1</surefire-plugin.version>
<auto-value.version>1.8.2</auto-value.version>
</properties>
......
quarkus.rest-client."org.eclipsefoundation.git.eca.api.AccountsAPI".scope=javax.enterprise.context.ApplicationScoped
quarkus.rest-client."org.eclipsefoundation.git.eca.api.AccountsAPI".url=https://api.eclipse.org
org.eclipsefoundation.git.eca.api.ProjectsAPI/mp-rest/url=https://projects-staging.eclipse.org
org.eclipsefoundation.git.eca.api.ProjectsAPI/mp-rest/url=https://projects.eclipse.org
org.eclipsefoundation.git.eca.api.BotsAPI/mp-rest/url=https://api.eclipse.org
eclipse.noreply.email-patterns=@users.noreply.github.com\$
......
/*********************************************************************
* Copyright (c) 2022 Eclipse Foundation.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* Author: Martin Lowe <martin.lowe@eclipse-foundation.org>
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipsefoundation.git.eca.test.dao;
import javax.enterprise.context.ApplicationScoped;
import org.eclipsefoundation.persistence.dao.impl.DefaultHibernateDao;
import org.eclipsefoundation.persistence.dto.BareNode;
import org.eclipsefoundation.persistence.model.RDBMSQuery;
import io.quarkus.test.Mock;
/**
* Alternate mock DAO that ignores delete operations. Hibernate does updates
* initially rather than delete operations in H2, which cause false negatives in
* tests
*
* @author Martin Lowe
*
*/
@Mock
@ApplicationScoped
public class TestPersistenceDao extends DefaultHibernateDao {
@Override
public <T extends BareNode> void delete(RDBMSQuery<T> q) {
// TODO do proper deleting code, but this will not impact basic tests/functionality
}
}
......@@ -3,32 +3,32 @@ CREATE TABLE CommitValidationStatus (
project varchar(100) DEFAULT NULL,
lastModified datetime DEFAULT NULL,
creationDate datetime DEFAULT NULL,
id bigint(20) NOT NULL AUTO_INCREMENT,
id bigint NOT NULL AUTO_INCREMENT,
provider varchar(100) NOT NULL,
repoUrl varchar(255) NOT NULL,
PRIMARY KEY (id)
);
INSERT INTO CommitValidationStatus(id,commitHash,project,lastModified,creationDate,provider, repoUrl) VALUES(1,'123456789', 'sample.proj', NOW(), NOW(),'GITHUB','http://www.github.com/eclipsefdn/sample');
INSERT INTO CommitValidationStatus(id,commitHash,project,lastModified,creationDate,provider, repoUrl) VALUES(2,'123456789', 'sample.proto', NOW(), NOW(),'GITLAB','');
INSERT INTO CommitValidationStatus(id,commitHash,project,lastModified,creationDate,provider, repoUrl) VALUES(3,'987654321', 'sample.proto', NOW(), NOW(),'GITLAB','');
INSERT INTO CommitValidationStatus(id,commitHash,lastModified,creationDate,provider, repoUrl) VALUES(5,'abc123def456', NOW(), NOW(),'GITHUB','http://www.github.com/eclipsefdn/sample');
INSERT INTO CommitValidationStatus(commitHash,project,lastModified,creationDate,provider, repoUrl) VALUES('123456789', 'sample.proj', NOW(), NOW(),'GITHUB','http://www.github.com/eclipsefdn/sample');
INSERT INTO CommitValidationStatus(commitHash,project,lastModified,creationDate,provider, repoUrl) VALUES('123456789', 'sample.proto', NOW(), NOW(),'GITLAB','');
INSERT INTO CommitValidationStatus(commitHash,project,lastModified,creationDate,provider, repoUrl) VALUES('987654321', 'sample.proto', NOW(), NOW(),'GITLAB','');
INSERT INTO CommitValidationStatus(commitHash,lastModified,creationDate,provider, repoUrl) VALUES('abc123def456', NOW(), NOW(),'GITHUB','http://www.github.com/eclipsefdn/sample');
CREATE TABLE CommitValidationMessage (
providerId varchar(100) DEFAULT NULL,
authorEmail varchar(100) DEFAULT NULL,
committerEmail varchar(100) DEFAULT NULL,
eclipseId varchar(255) DEFAULT NULL,
id bigint(20) NOT NULL AUTO_INCREMENT,
commit_id int(11) NOT NULL,
statusCode int(11) NOT NULL,
id bigint NOT NULL AUTO_INCREMENT,
commit_id int NOT NULL,
statusCode int NOT NULL,
PRIMARY KEY (id)
);
INSERT INTO CommitValidationMessage(id,commit_id,providerId,authorEmail,committerEmail,eclipseId,statusCode) VALUES(4,1,'','','','',-405);
INSERT INTO CommitValidationMessage(commit_id,providerId,authorEmail,committerEmail,eclipseId,statusCode) VALUES(1,'','','','',-405);
CREATE TABLE `CommitValidationStatusGrouping` (
`fingerprint` varchar(255) NOT NULL,
`commit_id` bigint(20) NOT NULL,
`commit_id` bigint NOT NULL,
PRIMARY KEY (`commit_id`,`fingerprint`)
);
INSERT INTO CommitValidationStatusGrouping(fingerprint, commit_id) VALUES('957706b0f31e0ccfc5287c0ebc62dc79', 1);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment