From bd60001fefde291d413c3ff79898ed164cfc950e Mon Sep 17 00:00:00 2001 From: pk910 Date: Tue, 16 Jan 2024 12:41:14 +0100 Subject: [PATCH] added state bloat test --- example/tests/state-bloat.yaml | 61 ++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 example/tests/state-bloat.yaml diff --git a/example/tests/state-bloat.yaml b/example/tests/state-bloat.yaml new file mode 100644 index 0000000..deb353a --- /dev/null +++ b/example/tests/state-bloat.yaml @@ -0,0 +1,61 @@ +name: "State Bloat" +timeout: 1h +config: + #walletPrivkey: "" + #validatorPairNames: [] + #clientPairNames: [] +tasks: +- name: check_clients_are_healthy + title: "Check if at least one client is ready" + timeout: 5m + config: + minClientCount: 1 + +- name: run_task_background + title: "Bloat state while epoch <= 100" + config: + exitOnForegroundSuccess: true + exitOnForegroundFailure: true + OnBackgroundComplete: "fail" + foregroundTask: + name: check_sonsensus_slot_range + title: "Check if epoch <= 100" + config: + minEpochNumber: 100 + + backgroundTask: + name: run_tasks_concurrent + title: "Bloat chain state" + config: + succeedTaskCount: 1 + tasks: + - name: generate_eoa_transactions + title: "Generate 1000 EOA transaction per block" + config: + childWallets: 1000 + walletSeed: "eoa1" + limitPending: 1000 + limitPerBlock: 1000 + randomTarget: true + amount: 1000000 + randomAmount: true + configVars: + privateKey: "walletPrivkey" + - name: generate_eoa_transactions + title: "Generate 500 legacy EOA transaction per block" + config: + childWallets: 500 + walletSeed: "eoa2" + limitPending: 500 + limitPerBlock: 500 + randomTarget: true + amount: 1000000 + randomAmount: true + legacyTxType: true + configVars: + privateKey: "walletPrivkey" + +- name: "sleep" + title: "Wait 30sec to clear up pending transactions" + config: + duration: 30s \ No newline at end of file