@@ -22,14 +22,14 @@ func TestK8sChaos(t *testing.T) {
2222 c , err := havoc .NewChaosMeshClient ()
2323 require .NoError (t , err )
2424
25- namespace := "default "
25+ namespace := "crib-ccip-chaos "
2626 experimentInterval := 3 * time .Minute
2727 injectionDuration := 90 * time .Second
2828
2929 reorgBelowFinalityDepth := 10
3030 reorgAboveFinalityDepth := 50
31- srcURL := os . Getenv ( "CCIP_SRC_CHAIN_HTTP_URL" )
32- dstURL := os . Getenv ( "CCIP_DST_CHAIN_HTTP_URL" )
31+ srcURL := "https://crib-ccip-chaos-geth-1337-http.main.stage.cldev.sh"
32+ dstURL := "https://crib-ccip-chaos-geth-2337-http.main.stage.cldev.sh"
3333
3434 testCases := []struct {
3535 name string
@@ -42,8 +42,8 @@ func TestK8sChaos(t *testing.T) {
4242 run : func (t * testing.T ) {
4343 src , err := template .PodFail (c , l , template.PodFailCfg {
4444 Namespace : namespace ,
45- LabelKey : "app.kubernetes.io/ instance" ,
46- LabelValues : []string {"blockchain-1 " },
45+ LabelKey : "instance" ,
46+ LabelValues : []string {"geth-1337 " },
4747 InjectionDuration : injectionDuration ,
4848 })
4949 require .NoError (t , err )
@@ -56,8 +56,8 @@ func TestK8sChaos(t *testing.T) {
5656 run : func (t * testing.T ) {
5757 dst , err := template .PodFail (c , l , template.PodFailCfg {
5858 Namespace : namespace ,
59- LabelKey : "app.kubernetes.io/ instance" ,
60- LabelValues : []string {"blockchain-2 " },
59+ LabelKey : "instance" ,
60+ LabelValues : []string {"geth-2337 " },
6161 InjectionDuration : injectionDuration ,
6262 })
6363 require .NoError (t , err )
@@ -71,7 +71,7 @@ func TestK8sChaos(t *testing.T) {
7171 node1 , err := template .PodFail (c , l , template.PodFailCfg {
7272 Namespace : namespace ,
7373 LabelKey : "app.kubernetes.io/instance" ,
74- LabelValues : []string {"ccip-1 " },
74+ LabelValues : []string {"ccip-0 " },
7575 InjectionDuration : injectionDuration ,
7676 })
7777 require .NoError (t , err )
@@ -85,7 +85,7 @@ func TestK8sChaos(t *testing.T) {
8585 node1 , err := template .PodFail (c , l , template.PodFailCfg {
8686 Namespace : namespace ,
8787 LabelKey : "app.kubernetes.io/instance" ,
88- LabelValues : []string {"ccip-1 " , "ccip-2 " },
88+ LabelValues : []string {"ccip-0 " , "ccip-1 " },
8989 InjectionDuration : injectionDuration ,
9090 })
9191 require .NoError (t , err )
@@ -99,8 +99,8 @@ func TestK8sChaos(t *testing.T) {
9999 run : func (t * testing.T ) {
100100 src , err := template .PodDelay (c , l , template.PodDelayCfg {
101101 Namespace : namespace ,
102- LabelKey : "app.kubernetes.io/ instance" ,
103- LabelValues : []string {"blockchain-1 " },
102+ LabelKey : "instance" ,
103+ LabelValues : []string {"geth-1337 " },
104104 Latency : 200 * time .Millisecond ,
105105 Jitter : 200 * time .Millisecond ,
106106 Correlation : "0" ,
@@ -116,8 +116,8 @@ func TestK8sChaos(t *testing.T) {
116116 run : func (t * testing.T ) {
117117 src , err := template .PodDelay (c , l , template.PodDelayCfg {
118118 Namespace : namespace ,
119- LabelKey : "app.kubernetes.io/ instance" ,
120- LabelValues : []string {"blockchain-2 " },
119+ LabelKey : "instance" ,
120+ LabelValues : []string {"geth-2337 " },
121121 Latency : 200 * time .Millisecond ,
122122 Jitter : 200 * time .Millisecond ,
123123 Correlation : "0" ,
@@ -134,7 +134,7 @@ func TestK8sChaos(t *testing.T) {
134134 src , err := template .PodDelay (c , l , template.PodDelayCfg {
135135 Namespace : namespace ,
136136 LabelKey : "app.kubernetes.io/instance" ,
137- LabelValues : []string {"ccip-1 " },
137+ LabelValues : []string {"ccip-0 " },
138138 Latency : 200 * time .Millisecond ,
139139 Jitter : 200 * time .Millisecond ,
140140 Correlation : "0" ,
@@ -151,7 +151,7 @@ func TestK8sChaos(t *testing.T) {
151151 src , err := template .PodDelay (c , l , template.PodDelayCfg {
152152 Namespace : namespace ,
153153 LabelKey : "app.kubernetes.io/instance" ,
154- LabelValues : []string {"ccip-1 " , "ccip-2 " },
154+ LabelValues : []string {"ccip-0 " , "ccip-1 " },
155155 Latency : 200 * time .Millisecond ,
156156 Jitter : 200 * time .Millisecond ,
157157 Correlation : "0" ,
@@ -168,9 +168,9 @@ func TestK8sChaos(t *testing.T) {
168168 src , err := template .PodPartition (c , l , template.PodPartitionCfg {
169169 Namespace : namespace ,
170170 LabelFromKey : "app.kubernetes.io/instance" ,
171- LabelFromValues : []string {"ccip-1 " },
171+ LabelFromValues : []string {"ccip-0 " },
172172 LabelToKey : "app.kubernetes.io/instance" ,
173- LabelToValues : []string {"ccip-2 " , "ccip-3 " , "ccip-4 " },
173+ LabelToValues : []string {"ccip-1 " , "ccip-2 " , "ccip-3 " },
174174 InjectionDuration : injectionDuration ,
175175 })
176176 require .NoError (t , err )
@@ -184,9 +184,9 @@ func TestK8sChaos(t *testing.T) {
184184 src , err := template .PodPartition (c , l , template.PodPartitionCfg {
185185 Namespace : namespace ,
186186 LabelFromKey : "app.kubernetes.io/instance" ,
187- LabelFromValues : []string {"ccip-1 " , "ccip-2 " },
187+ LabelFromValues : []string {"ccip-0 " , "ccip-1 " },
188188 LabelToKey : "app.kubernetes.io/instance" ,
189- LabelToValues : []string {"ccip-3 " , "ccip-4 " },
189+ LabelToValues : []string {"ccip-2 " , "ccip-3 " },
190190 InjectionDuration : injectionDuration ,
191191 })
192192 require .NoError (t , err )
0 commit comments