Skip to content
Open
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
5 changes: 5 additions & 0 deletions openmetadata-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1017,6 +1017,11 @@
<artifactId>owasp-java-html-sanitizer</artifactId>
<version>${owasp-html-sanitizer.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-compress</artifactId>
<version>${commons-compress.version}</version>
</dependency>
</dependencies>

<profiles>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package org.openmetadata.service.migration.api;

import java.util.List;
import org.jdbi.v3.core.Handle;

public interface MigrationTestCase {
List<TestResult> validateBefore(Handle handle);

List<TestResult> validateAfter(Handle handle);
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class MigrationWorkflow {
public static final String SUCCESS_MSG = "Success";
public static final String FAILED_MSG = "Failed due to : ";
public static final String CURRENT = "Current";
private List<MigrationProcess> migrations;
@Getter private List<MigrationProcess> migrations;
private final String nativeSQLScriptRootPath;
private final ConnectionType connectionType;
private final String extensionSQLScriptRootPath;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package org.openmetadata.service.migration.api;

public record TestResult(String name, boolean passed, String detail) {
public static TestResult pass(String name) {
return new TestResult(name, true, "");
}

public static TestResult fail(String name, String detail) {
return new TestResult(name, false, detail);
}
}
Loading
Loading