-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add an disaster restore enable switch button on incr_build panel for …
…issue datavane/tis#224
- Loading branch information
1 parent
d88ca3e
commit b100002
Showing
7 changed files
with
112 additions
and
5 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
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
27 changes: 27 additions & 0 deletions
27
...ealtime-flink/src/test/java/com/qlangtech/plugins/incr/flink/common/TestFlinkCluster.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,27 @@ | ||
package com.qlangtech.plugins.incr.flink.common; | ||
|
||
import com.qlangtech.tis.trigger.util.JsonUtil; | ||
import org.junit.Assert; | ||
import org.junit.Test; | ||
|
||
/** | ||
* @author 百岁 ([email protected]) | ||
* @date 2023/10/4 | ||
*/ | ||
public class TestFlinkCluster { | ||
|
||
@Test | ||
public void testInstanceSerialize() { | ||
FlinkCluster flinkCluster = new FlinkCluster(); | ||
|
||
flinkCluster.jobManagerAddress = "192.168.28.201:8081"; | ||
flinkCluster.clusterId = "my-first-flink-cluster"; | ||
flinkCluster.name = "flink200"; | ||
|
||
JsonUtil.assertJSONEqual(TestFlinkCluster.class, "flink-cluster-serialize.json" | ||
, JsonUtil.toString(flinkCluster), (message, expected, actual) -> { | ||
Assert.assertEquals(message, expected, actual); | ||
}); | ||
|
||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...k/src/test/resources/com/qlangtech/plugins/incr/flink/common/flink-cluster-serialize.json
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,9 @@ | ||
{ | ||
"clusterId":"my-first-flink-cluster", | ||
"jobManagerAddress":{ | ||
"URL":"http://192.168.28.201:8081", | ||
"host":"192.168.28.201", | ||
"port":8081 | ||
}, | ||
"name":"flink200" | ||
} |