-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcdk-time.yaml
66 lines (60 loc) · 1.75 KB
/
cdk-time.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# https://chaos-mesh.org/docs/simulate-time-chaos-on-kubernetes/
attacknetConfig:
waitBeforeInjectionSeconds: 1
reuseDevnetBetweenRuns: true
existingDevnetNamespace: "kt-cdk"
allowPostFaultInspection: true
# Not used as we're not deploying L1, but otherwise attacknet refuses to start
harnessConfig:
networkConfig: default.yaml
networkType: ethereum
testConfig:
tests:
- testName: time-executor
planSteps:
- stepType: injectFault
description: 'Inject fault'
chaosFaultSpec:
kind: TimeChaos
apiVersion: chaos-mesh.org/v1alpha1
spec:
mode: all
selector:
labelSelectors:
'kurtosistech.com/id': 'executor001'
timeOffset: -1m100ns
duration: 60s
- stepType: waitForFaultCompletion
description: wait for faults to terminate
- testName: time-rpc
planSteps:
- stepType: injectFault
description: 'Inject fault'
chaosFaultSpec:
kind: TimeChaos
apiVersion: chaos-mesh.org/v1alpha1
spec:
mode: all
selector:
labelSelectors:
'kurtosistech.com/id': 'rpc001'
timeOffset: -1m100ns
duration: 60s
- stepType: waitForFaultCompletion
description: wait for faults to terminate
- testName: time-sequencer
planSteps:
- stepType: injectFault
description: 'Inject fault'
chaosFaultSpec:
kind: TimeChaos
apiVersion: chaos-mesh.org/v1alpha1
spec:
mode: all
selector:
labelSelectors:
'kurtosistech.com/id': 'sequencer001'
timeOffset: -1m100ns
duration: 60s
- stepType: waitForFaultCompletion
description: wait for faults to terminate