diff --git a/go-chaos/integration/integration_test.go b/go-chaos/integration/integration_test.go index a5d1ef330..23190d179 100644 --- a/go-chaos/integration/integration_test.go +++ b/go-chaos/integration/integration_test.go @@ -110,5 +110,5 @@ type Printer struct { } func (p *Printer) Accept(l testcontainers.Log) { - fmt.Println(string(l.Content)) + fmt.Print(string(l.Content)) } diff --git a/go-chaos/internal/chaos-experiments/camunda-cloud/production-s/follower-terminate/experiment.json b/go-chaos/internal/chaos-experiments/camunda-cloud/production-s/follower-terminate/experiment.json index 0831f68eb..ea957486d 100644 --- a/go-chaos/internal/chaos-experiments/camunda-cloud/production-s/follower-terminate/experiment.json +++ b/go-chaos/internal/chaos-experiments/camunda-cloud/production-s/follower-terminate/experiment.json @@ -15,7 +15,19 @@ "tolerance": 0, "provider": { "type": "process", - "path": "verify-readiness.sh", + "path": "zbchaos", + "arguments": ["verify", "readiness"], + "timeout": 900 + } + }, + { + "name": "Can deploy process model", + "type": "probe", + "tolerance": 0, + "provider": { + "type": "process", + "path": "zbchaos", + "arguments": ["deploy", "process"], "timeout": 900 } }, @@ -25,8 +37,8 @@ "tolerance": 0, "provider": { "type": "process", - "path": "verify-steady-state.sh", - "arguments": "1", + "path": "zbchaos", + "arguments": ["verify", "instance-creation", "--partitionId", "1"], "timeout": 900 } } @@ -38,8 +50,8 @@ "name": "Terminate follower of partition 1", "provider": { "type": "process", - "path": "terminate-partition.sh", - "arguments": [ "Follower", "1"] + "path": "zbchaos", + "arguments": ["terminate", "broker", "--role", "FOLLOWER", "--partitionId", "1"] } } ], diff --git a/go-chaos/internal/chaos-experiments/camunda-cloud/production-s/leader-restart/experiment.json b/go-chaos/internal/chaos-experiments/camunda-cloud/production-s/leader-restart/experiment.json index f6e7d9556..806963bf9 100644 --- a/go-chaos/internal/chaos-experiments/camunda-cloud/production-s/leader-restart/experiment.json +++ b/go-chaos/internal/chaos-experiments/camunda-cloud/production-s/leader-restart/experiment.json @@ -15,7 +15,19 @@ "tolerance": 0, "provider": { "type": "process", - "path": "verify-readiness.sh", + "path": "zbchaos", + "arguments": ["verify", "readiness"], + "timeout": 900 + } + }, + { + "name": "Can deploy process model", + "type": "probe", + "tolerance": 0, + "provider": { + "type": "process", + "path": "zbchaos", + "arguments": ["deploy", "process"], "timeout": 900 } }, @@ -25,8 +37,8 @@ "tolerance": 0, "provider": { "type": "process", - "path": "verify-steady-state.sh", - "arguments": "1", + "path": "zbchaos", + "arguments": ["verify", "instance-creation", "--partitionId", "1"], "timeout": 900 } } @@ -35,11 +47,11 @@ "method": [ { "type": "action", - "name": "Terminate leader of partition 1", + "name": "Restart leader of partition 1", "provider": { "type": "process", - "path": "shutdown-gracefully-partition.sh", - "arguments": [ "Leader", "1" ] + "path": "zbchaos", + "arguments": ["restart", "broker", "--role", "LEADER", "--partitionId", "1"] } } ], diff --git a/go-chaos/internal/chaos-experiments/camunda-cloud/test/integration/experiment.json b/go-chaos/internal/chaos-experiments/camunda-cloud/test/integration/experiment.json index f72ced149..174be89a2 100644 --- a/go-chaos/internal/chaos-experiments/camunda-cloud/test/integration/experiment.json +++ b/go-chaos/internal/chaos-experiments/camunda-cloud/test/integration/experiment.json @@ -32,9 +32,6 @@ "path": "zbchaos", "arguments": ["version"], "timeout": 900 - }, - "pauses": { - "after": 5 } } ],