Skip to content

Commit 089dc1f

Browse files
committed
fix: can not change Postgres version in SGShardedCluster
1 parent 0aa70f2 commit 089dc1f

3 files changed

Lines changed: 6 additions & 294 deletions

File tree

stackgres-k8s/src/operator/src/test/java/io/stackgres/operator/conciliation/shardedcluster/context/ShardedClusterCoordinatorClusterContextAppenderTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import io.stackgres.common.crd.sgshardedcluster.StackGresShardedCluster;
1212
import io.stackgres.common.fixture.Fixtures;
1313
import io.stackgres.operator.conciliation.shardedcluster.StackGresShardedClusterContext;
14+
import io.stackgres.testutil.JsonUtil;
1415
import org.junit.jupiter.api.BeforeEach;
1516
import org.junit.jupiter.api.Test;
1617
import org.junit.jupiter.api.extension.ExtendWith;
@@ -37,7 +38,8 @@ class ShardedClusterCoordinatorClusterContextAppenderTest {
3738
void setUp() {
3839
cluster = Fixtures.shardedCluster().loadDefault().get();
3940
contextAppender = new ShardedClusterCoordinatorClusterContextAppender(
40-
shardedClusterCoordinatorPrimaryEndpointsContextAppender);
41+
shardedClusterCoordinatorPrimaryEndpointsContextAppender,
42+
JsonUtil.jsonMapper());
4143
}
4244

4345
@Test

stackgres-k8s/src/operator/src/test/java/io/stackgres/operator/conciliation/shardedcluster/context/ShardedClusterShardsClustersContextAppenderTest.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import io.stackgres.common.crd.sgshardedcluster.StackGresShardedCluster;
1414
import io.stackgres.common.fixture.Fixtures;
1515
import io.stackgres.operator.conciliation.shardedcluster.StackGresShardedClusterContext;
16+
import io.stackgres.testutil.JsonUtil;
1617
import org.junit.jupiter.api.BeforeEach;
1718
import org.junit.jupiter.api.Test;
1819
import org.junit.jupiter.api.extension.ExtendWith;
@@ -39,7 +40,8 @@ class ShardedClusterShardsClustersContextAppenderTest {
3940
void setUp() {
4041
cluster = Fixtures.shardedCluster().loadDefault().get();
4142
contextAppender = new ShardedClusterShardsClustersContextAppender(
42-
shardedClusterShardsPrimaryEndpointsContextAppender);
43+
shardedClusterShardsPrimaryEndpointsContextAppender,
44+
JsonUtil.jsonMapper());
4345
}
4446

4547
@Test

stackgres-k8s/src/operator/src/test/java/io/stackgres/operator/validation/shardedcluster/PostgresVersionValidatorTest.java

Lines changed: 0 additions & 292 deletions
This file was deleted.

0 commit comments

Comments
 (0)