forked from apache/gravitino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[apache#1361] test(postgres-jdbc) support multi pg version in IT (apa…
…che#1693) ### What changes were proposed in this pull request? Use separate classes representing various PG versions. junit5 doesn't support class-level ParameterizedTest. so use a separate class. ### Why are the changes needed? Test compatibility with various versions of PG. Fix: apache#1361 ### Does this PR introduce _any_ user-facing change? no ### How was this patch tested? existing IT
- Loading branch information
Showing
7 changed files
with
91 additions
and
28 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
15 changes: 15 additions & 0 deletions
15
...rato/gravitino/integration/test/catalog/jdbc/postgresql/CatalogPostgreSqlVersion12IT.java
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,15 @@ | ||
/* | ||
* Copyright 2024 Datastrato Pvt Ltd. | ||
* This software is licensed under the Apache License version 2. | ||
*/ | ||
|
||
package com.datastrato.gravitino.integration.test.catalog.jdbc.postgresql; | ||
|
||
import org.junit.jupiter.api.Tag; | ||
|
||
@Tag("gravitino-docker-it") | ||
public class CatalogPostgreSqlVersion12IT extends CatalogPostgreSqlIT { | ||
public CatalogPostgreSqlVersion12IT() { | ||
postgreImageName = "postgres:12"; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...rato/gravitino/integration/test/catalog/jdbc/postgresql/CatalogPostgreSqlVersion14IT.java
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,15 @@ | ||
/* | ||
* Copyright 2024 Datastrato Pvt Ltd. | ||
* This software is licensed under the Apache License version 2. | ||
*/ | ||
|
||
package com.datastrato.gravitino.integration.test.catalog.jdbc.postgresql; | ||
|
||
import org.junit.jupiter.api.Tag; | ||
|
||
@Tag("gravitino-docker-it") | ||
public class CatalogPostgreSqlVersion14IT extends CatalogPostgreSqlIT { | ||
public CatalogPostgreSqlVersion14IT() { | ||
postgreImageName = "postgres:14"; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...rato/gravitino/integration/test/catalog/jdbc/postgresql/CatalogPostgreSqlVersion15IT.java
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,15 @@ | ||
/* | ||
* Copyright 2024 Datastrato Pvt Ltd. | ||
* This software is licensed under the Apache License version 2. | ||
*/ | ||
|
||
package com.datastrato.gravitino.integration.test.catalog.jdbc.postgresql; | ||
|
||
import org.junit.jupiter.api.Tag; | ||
|
||
@Tag("gravitino-docker-it") | ||
public class CatalogPostgreSqlVersion15IT extends CatalogPostgreSqlIT { | ||
public CatalogPostgreSqlVersion15IT() { | ||
postgreImageName = "postgres:15"; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...rato/gravitino/integration/test/catalog/jdbc/postgresql/CatalogPostgreSqlVersion16IT.java
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,15 @@ | ||
/* | ||
* Copyright 2024 Datastrato Pvt Ltd. | ||
* This software is licensed under the Apache License version 2. | ||
*/ | ||
|
||
package com.datastrato.gravitino.integration.test.catalog.jdbc.postgresql; | ||
|
||
import org.junit.jupiter.api.Tag; | ||
|
||
@Tag("gravitino-docker-it") | ||
public class CatalogPostgreSqlVersion16IT extends CatalogPostgreSqlIT { | ||
public CatalogPostgreSqlVersion16IT() { | ||
postgreImageName = "postgres:16"; | ||
} | ||
} |
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