summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack <87339414+algojack@users.noreply.github.com>2022-01-24 12:03:08 -0500
committerGitHub <noreply@github.com>2022-01-24 12:03:08 -0500
commit2a96a788db119c36b26f18dbeba4e2f9ad18b934 (patch)
tree891a7ffb29e75db36bc63bf7116cc267c01a53fe
parent33b87c432065d3be0ce1fdad682604f416676133 (diff)
Adding new scenario for feature networks (#3451)
-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.json83
-rw-r--r--test/testdata/deployednettemplates/recipes/feature-networks/recipe.json7
-rw-r--r--test/testdata/deployednettemplates/recipes/feature-networks/topology.json16
5 files changed, 145 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..943e9f515
--- /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-R1",
+ "Stake": 25,
+ "Online": true
+ },
+ {
+ "Name": "Wallet2-R2",
+ "Stake": 25,
+ "Online": true
+ },
+ {
+ "Name": "Wallet3-Dispenser",
+ "Stake": 40,
+ "Online": false
+ },
+ {
+ "Name": "Wallet4-NPN1",
+ "Stake": 10,
+ "Online": false
+ }
+ ]
+}
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..c8c8642a2
--- /dev/null
+++ b/test/testdata/deployednettemplates/recipes/feature-networks/hosttemplates.json
@@ -0,0 +1,10 @@
+{
+ "Hosts": [
+ {
+ "Name": "AWS-US-EAST-2-Large",
+ "Provider": "AWS",
+ "Region": "us-east-2",
+ "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..cbab02164
--- /dev/null
+++ b/test/testdata/deployednettemplates/recipes/feature-networks/net.json
@@ -0,0 +1,83 @@
+{
+ "Hosts": [
+ {
+ "Name": "R1",
+ "Nodes": [
+ {
+ "Name": "relay1",
+ "IsRelay": true,
+ "Wallets": [
+ {
+ "Name": "Wallet1-R1",
+ "ParticipationOnly": false
+ },
+ {
+ "Name": "Wallet3-Dispenser",
+ "ParticipationOnly": false
+ }
+ ],
+ "NetAddress": "{{NetworkPort}}",
+ "APIEndpoint": "{{APIEndpoint}}",
+ "APIToken": "{{APIToken}}",
+ "EnableTelemetry": true,
+ "TelemetryURI": "telemetry.feature-networks.algodev.network",
+ "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-R2",
+ "ParticipationOnly": false
+ }
+ ],
+ "NetAddress": "{{NetworkPort}}",
+ "APIEndpoint": "{{APIEndpoint}}",
+ "APIToken": "{{APIToken}}",
+ "EnableTelemetry": true,
+ "TelemetryURI": "telemetry.feature-networks.algodev.network",
+ "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": "NPN1",
+ "Nodes": [
+ {
+ "Name": "node1",
+ "IsRelay": false,
+ "Wallets": [
+ {
+ "Name": "Wallet4-NPN1",
+ "ParticipationOnly": false
+ }
+ ],
+ "NetAddress": "{{NetworkPort}}",
+ "APIEndpoint": "{{APIEndpoint}}",
+ "APIToken": "{{APIToken}}",
+ "EnableTelemetry": true,
+ "TelemetryURI": "telemetry.feature-networks.algodev.network",
+ "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..360c9d0d4
--- /dev/null
+++ b/test/testdata/deployednettemplates/recipes/feature-networks/topology.json
@@ -0,0 +1,16 @@
+{
+ "Hosts": [
+ {
+ "Name": "R1",
+ "Template": "AWS-US-EAST-2-Large"
+ },
+ {
+ "Name": "R2",
+ "Template": "AWS-US-EAST-2-Large"
+ },
+ {
+ "Name": "NPN1",
+ "Template": "AWS-US-EAST-2-Large"
+ }
+ ]
+}