-
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
41 changed files
with
1,420 additions
and
379 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
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,31 @@ | ||
<?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="type" type="varchar(100)"> | ||
<constraints nullable="false"/> | ||
</column> | ||
<column name="additional_info" 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="type,additional_info" constraintName="test_suites_source_additional_info"/> | ||
</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
25 changes: 25 additions & 0 deletions
25
...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,25 @@ | ||
package com.saveourtool.save.backend.repository | ||
|
||
import com.saveourtool.save.entities.TestSuitesSource | ||
import com.saveourtool.save.testsuite.TestSuitesSourceType | ||
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 type | ||
* @param additionalInfo | ||
* @return found entity or null | ||
*/ | ||
fun findByTypeAndAdditionalInfo(type: TestSuitesSourceType, additionalInfo: 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
Oops, something went wrong.