summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-10-25 00:03:09 +0300
committerPaul Buetow <paul@buetow.org>2023-10-25 00:03:09 +0300
commit4df9dfc1e91ca64f553b5d5a76619155531aabd0 (patch)
tree593ae3db472ef71a7b8b8d283bffec7c8651b1cc /test
parent8650dd57474e991515c93169151e6187205c9ff3 (diff)
test config works again after refactor
Diffstat (limited to 'test')
-rw-r--r--test/gorum-earth.json27
-rw-r--r--test/gorum-mars.json27
-rw-r--r--test/gorum-uranus.json27
3 files changed, 63 insertions, 18 deletions
diff --git a/test/gorum-earth.json b/test/gorum-earth.json
index 08a749d..d0c1660 100644
--- a/test/gorum-earth.json
+++ b/test/gorum-earth.json
@@ -4,10 +4,25 @@
"WinnerFile": "is_winner.earth",
"MyID": "earth",
"RelaxedMode": true,
- "Address": ":1234",
- "Nodes": [
- "localhost:1234:earth",
- "localhost:2341:mars",
- "localhost:3412:uranus"
- ]
+ "Address": "localhost:1234",
+ "Nodes": {
+ "first": {
+ "Hostname": "localhost",
+ "Alias": "earth",
+ "Port": 1234,
+ "Priority": 3
+ },
+ "second": {
+ "Hostname": "localhost",
+ "Alias": "mars",
+ "Port": 1235,
+ "Priority": 2
+ },
+ "third": {
+ "Hostname": "localhost",
+ "Alias": "uranus",
+ "Port": 1236,
+ "Priority": 1
+ }
+ }
}
diff --git a/test/gorum-mars.json b/test/gorum-mars.json
index adecedf..2430eb3 100644
--- a/test/gorum-mars.json
+++ b/test/gorum-mars.json
@@ -4,10 +4,25 @@
"WinnerFile": "is_winner.mars",
"MyID": "mars",
"RelaxedMode": true,
- "Address": ":2341",
- "Nodes": [
- "localhost:1234",
- "localhost:2341",
- "localhost:3412"
- ]
+ "Address": ":1235",
+ "Nodes": {
+ "first": {
+ "Hostname": "localhost",
+ "Alias": "earth",
+ "Port": 1234,
+ "Priority": 3
+ },
+ "second": {
+ "Hostname": "localhost",
+ "Alias": "mars",
+ "Port": 1235,
+ "Priority": 2
+ },
+ "third": {
+ "Hostname": "localhost",
+ "Alias": "uranus",
+ "Port": 1236,
+ "Priority": 1
+ }
+ }
}
diff --git a/test/gorum-uranus.json b/test/gorum-uranus.json
index bc00a7f..a95f5a2 100644
--- a/test/gorum-uranus.json
+++ b/test/gorum-uranus.json
@@ -4,10 +4,25 @@
"WinnerFile": "is_winner.uranus",
"MyID": "uranus",
"RelaxedMode": true,
- "Address": ":3412",
- "Nodes": [
- "localhost:1234",
- "localhost:2341",
- "localhost:3412"
- ]
+ "Address": ":1236",
+ "Nodes": {
+ "first": {
+ "Hostname": "localhost",
+ "Alias": "earth",
+ "Port": 1234,
+ "Priority": 3
+ },
+ "second": {
+ "Hostname": "localhost",
+ "Alias": "mars",
+ "Port": 1235,
+ "Priority": 2
+ },
+ "third": {
+ "Hostname": "localhost",
+ "Alias": "uranus",
+ "Port": 1236,
+ "Priority": 1
+ }
+ }
}