summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Smith <jack.smith@algorand.com>2022-01-18 16:02:05 -0500
committerJack Smith <jack.smith@algorand.com>2022-01-18 16:02:05 -0500
commit2ded7d9236d582f2ed6d8d1d79bccf188b6db949 (patch)
tree850766afb7dcf74383531f8b063d37e326b3b191
parentee988ea30c50c15f3b904ca409ea4df9fc958566 (diff)
Adding new recipe for feature networks
-rw-r--r--test/testdata/deployednettemplates/recipes/feature-networks/genesis.json29
-rw-r--r--test/testdata/deployednettemplates/recipes/feature-networks/hosttemplates.json10
-rw-r--r--test/testdata/deployednettemplates/recipes/feature-networks/net.json54
-rw-r--r--test/testdata/deployednettemplates/recipes/feature-networks/recipe.json7
-rw-r--r--test/testdata/deployednettemplates/recipes/feature-networks/topology.json12
5 files changed, 112 insertions, 0 deletions
diff --git a/test/testdata/deployednettemplates/recipes/feature-networks/genesis.json b/test/testdata/deployednettemplates/recipes/feature-networks/genesis.json
new file mode 100644
index 000000000..ab43dab49
--- /dev/null
+++ b/test/testdata/deployednettemplates/recipes/feature-networks/genesis.json
@@ -0,0 +1,29 @@
+{
+ "NetworkName": "",
+ "VersionModifier": "",
+ "ConsensusProtocol": "future",
+ "FirstPartKeyRound": 0,
+ "LastPartKeyRound": 100000000,
+ "Wallets": [
+ {
+ "Name": "Wallet1",
+ "Stake": 45,
+ "Online": true
+ },
+ {
+ "Name": "Wallet2",
+ "Stake": 45,
+ "Online": true
+ },
+ {
+ "Name": "Wallet3",
+ "Stake": 5,
+ "Online": true
+ },
+ {
+ "Name": "Wallet4",
+ "Stake": 5,
+ "Online": true
+ }
+ ]
+}
diff --git a/test/testdata/deployednettemplates/recipes/feature-networks/hosttemplates.json b/test/testdata/deployednettemplates/recipes/feature-networks/hosttemplates.json
new file mode 100644
index 000000000..77a4e873e
--- /dev/null
+++ b/test/testdata/deployednettemplates/recipes/feature-networks/hosttemplates.json
@@ -0,0 +1,10 @@
+{
+ "Hosts": [
+ {
+ "Name": "AWS-US-EAST-1-Large",
+ "Provider": "AWS",
+ "Region": "us-east-1",
+ "BaseConfiguration": "m6i.large"
+ }
+ ]
+}
diff --git a/test/testdata/deployednettemplates/recipes/feature-networks/net.json b/test/testdata/deployednettemplates/recipes/feature-networks/net.json
new file mode 100644
index 000000000..7d03c4669
--- /dev/null
+++ b/test/testdata/deployednettemplates/recipes/feature-networks/net.json
@@ -0,0 +1,54 @@
+{
+ "Hosts": [
+ {
+ "Name": "R1",
+ "Nodes": [
+ {
+ "Name": "relay1",
+ "IsRelay": true,
+ "Wallets": [
+ {
+ "Name": "Wallet1",
+ "ParticipationOnly": false
+ }
+ ],
+ "NetAddress": "{{NetworkPort}}",
+ "APIEndpoint": "{{APIEndpoint}}",
+ "APIToken": "{{APIToken}}",
+ "EnableTelemetry": true,
+ "TelemetryURI": "{{TelemetryURI}}",
+ "EnableMetrics": true,
+ "MetricsURI": "{{MetricsURI}}",
+ "EnableService": false,
+ "EnableBlockStats": true,
+ "ConfigJSONOverride": "{ \"DNSBootstrapID\": \"<network>.algodev.network\", \"DeadlockDetection\": -1, \"PeerPingPeriodSeconds\": 30, \"EnableAgreementReporting\": true, \"EnableAgreementTimeMetrics\": true, \"EnableAssembleStats\": true, \"EnableProcessBlockStats\": true }"
+ }
+ ]
+ },
+ {
+ "Name": "R2",
+ "Nodes": [
+ {
+ "Name": "relay2",
+ "IsRelay": true,
+ "Wallets": [
+ {
+ "Name": "Wallet2",
+ "ParticipationOnly": false
+ }
+ ],
+ "NetAddress": "{{NetworkPort}}",
+ "APIEndpoint": "{{APIEndpoint}}",
+ "APIToken": "{{APIToken}}",
+ "EnableTelemetry": true,
+ "TelemetryURI": "{{TelemetryURI}}",
+ "EnableMetrics": true,
+ "MetricsURI": "{{MetricsURI}}",
+ "EnableService": false,
+ "EnableBlockStats": true,
+ "ConfigJSONOverride": "{ \"DNSBootstrapID\": \"<network>.algodev.network\",\"DeadlockDetection\": -1, \"PeerPingPeriodSeconds\": 30, \"EnableAgreementReporting\": true, \"EnableAgreementTimeMetrics\": true, \"EnableAssembleStats\": true, \"EnableProcessBlockStats\": true }"
+ }
+ ]
+ }
+ ]
+}
diff --git a/test/testdata/deployednettemplates/recipes/feature-networks/recipe.json b/test/testdata/deployednettemplates/recipes/feature-networks/recipe.json
new file mode 100644
index 000000000..587e513f2
--- /dev/null
+++ b/test/testdata/deployednettemplates/recipes/feature-networks/recipe.json
@@ -0,0 +1,7 @@
+{
+ "GenesisFile":"genesis.json",
+ "NetworkFile":"net.json",
+ "ConfigFile": "../../configs/reference.json",
+ "HostTemplatesFile": "hosttemplates.json",
+ "TopologyFile": "topology.json"
+}
diff --git a/test/testdata/deployednettemplates/recipes/feature-networks/topology.json b/test/testdata/deployednettemplates/recipes/feature-networks/topology.json
new file mode 100644
index 000000000..c471d80b6
--- /dev/null
+++ b/test/testdata/deployednettemplates/recipes/feature-networks/topology.json
@@ -0,0 +1,12 @@
+{
+ "Hosts": [
+ {
+ "Name": "R1",
+ "Template": "AWS-US-EAST-1-Large"
+ },
+ {
+ "Name": "R2",
+ "Template": "AWS-US-EAST-1-Large"
+ }
+ ]
+}