From 07db8f4690b5ba76cf526aed1e83fdd98fb899df Mon Sep 17 00:00:00 2001 From: prubenda Date: Tue, 16 Jun 2020 14:13:18 -0400 Subject: [PATCH] Adding updated scenarios for 3.0 powerfulseal version --- requirements.txt | 2 +- scenarios/etcd.yml | 38 +++++++++++++------------- scenarios/openshift-apiserver.yml | 38 +++++++++++++------------- scenarios/openshift-kube-apiserver.yml | 38 +++++++++++++------------- 4 files changed, 58 insertions(+), 58 deletions(-) diff --git a/requirements.txt b/requirements.txt index 28c0a1e5..c312fb15 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ datetime pyfiglet -powerfulseal +powerfulseal==3.0.0rc9 requests diff --git a/scenarios/etcd.yml b/scenarios/etcd.yml index c9468ab3..2eb303ae 100644 --- a/scenarios/etcd.yml +++ b/scenarios/etcd.yml @@ -1,23 +1,23 @@ config: - loopsNumber: 1 - minSecondsBetweenRuns: 1 - maxSecondsBetweenRuns: 30 - -# the scenarios describing actions on kubernetes pods -podScenarios: + runStrategy: + runs: 1 + maxSecondsBetweenRuns: 30 + minSecondsBetweenRuns: 1 +scenarios: - name: "delete etcd pods" + steps: + - podAction: + matches: + - labels: + namespace: "openshift-etcd" + selector: "k8s-app=etcd" - match: - - labels: - namespace: "openshift-etcd" - selector: "k8s-app=etcd" + filters: + - randomSample: + size: 1 - filters: - - randomSample: - size: 1 - - # The actions will be executed in the order specified - actions: - - kill: - probability: 1 - force: true + # The actions will be executed in the order specified + actions: + - kill: + probability: 1 + force: true diff --git a/scenarios/openshift-apiserver.yml b/scenarios/openshift-apiserver.yml index b3b41ca0..dbf329d6 100644 --- a/scenarios/openshift-apiserver.yml +++ b/scenarios/openshift-apiserver.yml @@ -1,23 +1,23 @@ config: - loopsNumber: 1 - minSecondsBetweenRuns: 1 - maxSecondsBetweenRuns: 30 - -# the scenarios describing actions on kubernetes pods -podScenarios: + runStrategy: + runs: 1 + maxSecondsBetweenRuns: 30 + minSecondsBetweenRuns: 1 +scenarios: - name: "delete openshift-apiserver pods" + steps: + - podAction: + matches: + - labels: + namespace: "openshift-apiserver" + selector: "app=openshift-apiserver" - match: - - labels: - namespace: "openshift-apiserver" - selector: "app=openshift-apiserver" + filters: + - randomSample: + size: 1 - filters: - - randomSample: - size: 1 - - # The actions will be executed in the order specified - actions: - - kill: - probability: 1 - force: true + # The actions will be executed in the order specified + actions: + - kill: + probability: 1 + force: true diff --git a/scenarios/openshift-kube-apiserver.yml b/scenarios/openshift-kube-apiserver.yml index 05030dc3..7bd4039c 100644 --- a/scenarios/openshift-kube-apiserver.yml +++ b/scenarios/openshift-kube-apiserver.yml @@ -1,23 +1,23 @@ config: - loopsNumber: 1 - minSecondsBetweenRuns: 1 - maxSecondsBetweenRuns: 30 - -# the scenarios describing actions on kubernetes pods -podScenarios: + runStrategy: + runs: 1 + maxSecondsBetweenRuns: 30 + minSecondsBetweenRuns: 1 +scenarios: - name: "delete openshift-kube-apiserver pods" + steps: + - podAction: + matches: + - labels: + namespace: "openshift-kube-apiserver" + selector: "app=openshift-kube-apiserver" - match: - - labels: - namespace: "openshift-kube-apiserver" - selector: "app=openshift-kube-apiserver" + filters: + - randomSample: + size: 1 - filters: - - randomSample: - size: 1 - - # The actions will be executed in the order specified - actions: - - kill: - probability: 1 - force: true + # The actions will be executed in the order specified + actions: + - kill: + probability: 1 + force: true