@@ -147,7 +147,7 @@ func update(t *testing.T) {
147
147
cmd .Env = env
148
148
require .NoError (t , cmd .Run (), buf .String ())
149
149
actual := buf .String ()
150
- assert .Contains (t , actual , "getistio successfully updated from dev to 1.0.4 !" )
150
+ assert .Contains (t , actual , "getistio successfully updated from dev to 1.0.5 !" )
151
151
t .Log (actual )
152
152
}
153
153
@@ -202,15 +202,21 @@ func list(t *testing.T) {
202
202
require .NoError (t , cmd .Run ())
203
203
204
204
exp := `ISTIO VERSION FLAVOR FLAVOR VERSION K8S VERSIONS
205
- *1.9.0 tetrate 0 1.17,1.18,1.19,1.20
205
+ *1.9.1 tetrate 0 1.17,1.18,1.19,1.20
206
+ 1.9.1 istio 0 1.17,1.18,1.19,1.20
207
+ 1.9.0 tetrate 0 1.17,1.18,1.19,1.20
206
208
1.9.0 tetratefips 1 1.17,1.18,1.19,1.20
207
209
1.9.0 istio 0 1.17,1.18,1.19,1.20
210
+ 1.8.4 tetrate 0 1.16,1.17,1.18,1.19
211
+ 1.8.4 istio 0 1.16,1.17,1.18,1.19
208
212
1.8.3 tetrate 0 1.16,1.17,1.18,1.19
209
213
1.8.3 tetratefips 1 1.16,1.17,1.18,1.19
210
214
1.8.3 istio 0 1.16,1.17,1.18,1.19
211
215
1.8.2 tetrate 0 1.16,1.17,1.18
212
216
1.8.1 tetrate 0 1.16,1.17,1.18
213
217
1.8.0 tetrate 0 1.16,1.17,1.18
218
+ 1.7.8 tetrate 0 1.16,1.17,1.18
219
+ 1.7.8 istio 0 1.16,1.17,1.18
214
220
1.7.7 tetrate 0 1.16,1.17,1.18
215
221
1.7.6 tetrate 0 1.16,1.17,1.18
216
222
1.7.5 tetrate 0 1.16,1.17,1.18
@@ -222,7 +228,7 @@ func list(t *testing.T) {
222
228
func fetch (t * testing.T ) {
223
229
defer func () {
224
230
cmd := exec .Command ("./getistio" , "switch" ,
225
- "--version" , "1.9.0 " , "--flavor" , "tetrate" , "--flavor-version=0" ,
231
+ "--version" , "1.9.1 " , "--flavor" , "tetrate" , "--flavor-version=0" ,
226
232
)
227
233
cmd .Stdout = os .Stdout
228
234
cmd .Stderr = os .Stderr
@@ -333,7 +339,7 @@ func prune(t *testing.T) {
333
339
FlavorVersion : 0 ,
334
340
},
335
341
{
336
- Version : "1.9.0 " ,
342
+ Version : "1.9.1 " ,
337
343
Flavor : "tetrate" ,
338
344
FlavorVersion : 0 ,
339
345
},
@@ -379,14 +385,14 @@ func show(t *testing.T) {
379
385
require .NoError (t , cmd .Run ())
380
386
exp := `1.7.5-tetrate-v0
381
387
1.8.1-tetrate-v0
382
- 1.9.0 -tetrate-v0 (Active)`
388
+ 1.9.1 -tetrate-v0 (Active)`
383
389
assert .Contains (t , buf .String (), exp )
384
390
fmt .Println (buf .String ())
385
391
}
386
392
387
393
func switchTest (t * testing.T ) {
388
394
t .Run ("full" , func (t * testing.T ) {
389
- for _ , v := range []string {"1.8.1" , "1.9.0 " } {
395
+ for _ , v := range []string {"1.8.1" , "1.9.1 " } {
390
396
{
391
397
cmd := exec .Command ("./getistio" , "switch" ,
392
398
"--version" , v , "--flavor" , "tetrate" , "--flavor-version=0" ,
@@ -422,7 +428,7 @@ func switchTest(t *testing.T) {
422
428
assert .Contains (t , buf .String (), "1.8.1-tetrate-v0" )
423
429
424
430
cmd = exec .Command ("./getistio" , "switch" ,
425
- "--name" , "1.9.0 -tetrate-v0" ,
431
+ "--name" , "1.9.1 -tetrate-v0" ,
426
432
)
427
433
cmd .Stdout = os .Stdout
428
434
cmd .Stderr = os .Stderr
@@ -433,12 +439,12 @@ func switchTest(t *testing.T) {
433
439
cmd .Stdout = buf
434
440
cmd .Stderr = os .Stderr
435
441
require .NoError (t , cmd .Run ())
436
- assert .Contains (t , buf .String (), "1.9.0 -tetrate-v0" )
442
+ assert .Contains (t , buf .String (), "1.9.1 -tetrate-v0" )
437
443
fmt .Println (buf .String ())
438
444
})
439
445
t .Run ("active" , func (t * testing.T ) {
440
446
cmd := exec .Command ("./getistio" , "fetch" ,
441
- "--version=1.9.0 " , "--flavor=istio" , "--flavor-version=0" ,
447
+ "--version=1.9.1 " , "--flavor=istio" , "--flavor-version=0" ,
442
448
)
443
449
cmd .Stdout = os .Stdout
444
450
cmd .Stderr = os .Stderr
@@ -449,8 +455,8 @@ func switchTest(t *testing.T) {
449
455
cmd .Stdout = buf
450
456
cmd .Stderr = os .Stderr
451
457
require .NoError (t , cmd .Run ())
452
- assert .Contains (t , buf .String (), "1.9.0 " )
453
- assert .NotContains (t , buf .String (), "1.9.0 -tetrate-v0" )
458
+ assert .Contains (t , buf .String (), "1.9.1 " )
459
+ assert .NotContains (t , buf .String (), "1.9.1 -tetrate-v0" )
454
460
455
461
cmd = exec .Command ("./getistio" , "switch" ,
456
462
"--flavor=tetrate" ,
@@ -464,7 +470,7 @@ func switchTest(t *testing.T) {
464
470
cmd .Stdout = buf
465
471
cmd .Stderr = os .Stderr
466
472
require .NoError (t , cmd .Run ())
467
- assert .Contains (t , buf .String (), "1.9.0 -tetrate-v0" )
473
+ assert .Contains (t , buf .String (), "1.9.1 -tetrate-v0" )
468
474
fmt .Println (buf .String ())
469
475
})
470
476
}
@@ -577,7 +583,7 @@ func checkUpgrade(t *testing.T) {
577
583
cmd .Stderr = os .Stderr
578
584
require .NoError (t , cmd .Run (), buf .String ())
579
585
actual := buf .String ()
580
- assert .Contains (t , actual , "1.9.0 -tetrate-v0 is the latest version in 1.9-tetrate" )
586
+ assert .Contains (t , actual , "1.9.1 -tetrate-v0 is the latest version in 1.9-tetrate" )
581
587
fmt .Println (actual )
582
588
583
589
// change image to 1.8.1-tetrate-v0
@@ -603,7 +609,7 @@ func checkUpgrade(t *testing.T) {
603
609
fmt .Println (actual )
604
610
if strings .Contains (actual ,
605
611
"There is the available patch for the minor version 1.8-tetrate. " +
606
- "We recommend upgrading all 1.8-tetrate versions -> 1.8.3 -tetrate-v0" ) {
612
+ "We recommend upgrading all 1.8-tetrate versions -> 1.8.4 -tetrate-v0" ) {
607
613
break
608
614
}
609
615
}
0 commit comments