-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### What's done: - added storage for TestSuitesSource snapshots - refactored discovering tests and test suites - added GIT cloning with new run
- Loading branch information
Showing
45 changed files
with
1,411 additions
and
438 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<databaseChangeLog | ||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | ||
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> | ||
|
||
<changeSet id="create-test-suites-source-table" author="nulls"> | ||
<createTable tableName="test_suites_source"> | ||
<column name="id" type="bigint" autoIncrement="true"> | ||
<constraints primaryKey="true" nullable="false"/> | ||
</column> | ||
<column name="organization_id" type="bigint"> | ||
<constraints foreignKeyName="fk_lnk_test_suites_source_organization" references="organization(id)" nullable="false"/> | ||
</column> | ||
<column name="name" type="varchar(255)"> | ||
<constraints nullable="false"/> | ||
</column> | ||
<column name="description" type="text"/> | ||
<column name="git_id" type="bigint"> | ||
<constraints foreignKeyName="fk_lnk_test_suites_source_git" references="git(id)" nullable="false"/> | ||
</column> | ||
<column name="branch" type="varchar(100)"> | ||
<constraints nullable="false"/> | ||
</column> | ||
<column name="test_root_path" type="varchar(255)"> | ||
<constraints nullable="false"/> | ||
</column> | ||
</createTable> | ||
|
||
<addUniqueConstraint tableName="test_suites_source" columnNames="organization_id,name" constraintName="test_suites_source_name"/> | ||
<addUniqueConstraint tableName="test_suites_source" columnNames="git_id,test_root_path,branch" constraintName="test_suites_source_git_location"/> | ||
</changeSet> | ||
</databaseChangeLog> |
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
28 changes: 28 additions & 0 deletions
28
...end/src/main/kotlin/com/saveourtool/save/backend/repository/TestSuitesSourceRepository.kt
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,28 @@ | ||
package com.saveourtool.save.backend.repository | ||
|
||
import com.saveourtool.save.entities.Git | ||
import com.saveourtool.save.entities.Organization | ||
import com.saveourtool.save.entities.TestSuitesSource | ||
import org.springframework.stereotype.Repository | ||
|
||
/** | ||
* Repository of [TestSuitesSource] | ||
*/ | ||
@Repository | ||
interface TestSuitesSourceRepository : BaseEntityRepository<TestSuitesSource> { | ||
/** | ||
* @param organizationId | ||
* @param name | ||
* @return found entity or null | ||
*/ | ||
fun findByOrganizationIdAndName(organizationId: Long, name: String): TestSuitesSource? | ||
|
||
/** | ||
* @param organization | ||
* @param git | ||
* @param branch | ||
* @param testRootPath | ||
* @return found entity or null | ||
*/ | ||
fun findByOrganizationAndGitAndBranchAndTestRootPath(organization: Organization, git: Git, branch: String, testRootPath: String): TestSuitesSource? | ||
} |
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.