@@ -85,7 +85,7 @@ func securityPatchChecker(t *testing.T) {
85
85
m := & api.Manifest {
86
86
IstioDistributions : []* api.IstioDistribution {
87
87
{
88
- Version : "1.9 .1000000000000" ,
88
+ Version : "1.10 .1000000000000" ,
89
89
Flavor : api .IstioDistributionFlavorTetrate ,
90
90
FlavorVersion : 0 ,
91
91
IsSecurityPatch : true ,
@@ -109,7 +109,7 @@ func securityPatchChecker(t *testing.T) {
109
109
cmd .Stderr = os .Stderr
110
110
cmd .Env = append (os .Environ (), fmt .Sprintf ("GETMESH_TEST_MANIFEST_PATH=%s" , f .Name ()))
111
111
require .NoError (t , cmd .Run ())
112
- require .Contains (t , buf .String (), `[WARNING] The locally installed minor version 1.9 -tetrate has a latest version 1.9 .1000000000000-tetrate-v0 including security patches. We strongly recommend you to download 1.9 .1000000000000-tetrate-v0 by "getmesh fetch".` )
112
+ require .Contains (t , buf .String (), `[WARNING] The locally installed minor version 1.10 -tetrate has a latest version 1.10 .1000000000000-tetrate-v0 including security patches. We strongly recommend you to download 1.10 .1000000000000-tetrate-v0 by "getmesh fetch".` )
113
113
}
114
114
115
115
func enfOfLife (t * testing.T ) {
@@ -133,7 +133,13 @@ func list(t *testing.T) {
133
133
require .NoError (t , cmd .Run ())
134
134
135
135
exp := `ISTIO VERSION FLAVOR FLAVOR VERSION K8S VERSIONS
136
- *1.9.5 tetrate 0 1.17,1.18,1.19,1.20
136
+ *1.10.3 tetrate 0 1.17,1.18,1.19,1.20
137
+ 1.10.3 tetratefips 0 1.17,1.18,1.19,1.20
138
+ 1.10.3 istio 0 1.17,1.18,1.19,1.20
139
+ 1.9.7 tetrate 0 1.17,1.18,1.19,1.20
140
+ 1.9.7 tetratefips 0 1.17,1.18,1.19,1.20
141
+ 1.9.7 istio 0 1.17,1.18,1.19,1.20
142
+ 1.9.5 tetrate 0 1.17,1.18,1.19,1.20
137
143
1.9.5 istio 0 1.17,1.18,1.19,1.20
138
144
1.9.4 tetrate 0 1.17,1.18,1.19,1.20
139
145
1.9.4 istio 0 1.17,1.18,1.19,1.20
@@ -155,7 +161,7 @@ func list(t *testing.T) {
155
161
func fetch (t * testing.T ) {
156
162
defer func () {
157
163
cmd := exec .Command ("./getmesh" , "switch" ,
158
- "--version" , "1.9.5 " , "--flavor" , "tetrate" , "--flavor-version=0" ,
164
+ "--version" , "1.10.3 " , "--flavor" , "tetrate" , "--flavor-version=0" ,
159
165
)
160
166
cmd .Stdout = os .Stdout
161
167
cmd .Stderr = os .Stderr
@@ -185,20 +191,20 @@ istioctl switched to 1.8.6-tetrate-v0 now
185
191
require .Error (t , cmd .Run ())
186
192
187
193
// fetch without version
188
- cmd = exec .Command ("./getmesh" , "fetch" , "--flavor=istio " , "--flavor-version=0" )
194
+ cmd = exec .Command ("./getmesh" , "fetch" , "--flavor=tetrate " , "--flavor-version=0" )
189
195
buf = new (bytes.Buffer )
190
196
cmd .Stdout = buf
191
197
cmd .Stderr = os .Stderr
192
198
require .NoError (t , cmd .Run ())
193
- require .Contains (t , buf .String (), `-istio -v0 now` )
199
+ require .Contains (t , buf .String (), `-tetrate -v0 now` )
194
200
195
201
// fetch with single flavor flag
196
- cmd = exec .Command ("./getmesh" , "fetch" , "--flavor=istio " )
202
+ cmd = exec .Command ("./getmesh" , "fetch" , "--flavor=tetrate " )
197
203
buf = new (bytes.Buffer )
198
204
cmd .Stdout = buf
199
205
cmd .Stderr = os .Stderr
200
206
require .NoError (t , cmd .Run ())
201
- require .Contains (t , buf .String (), `-istio -v0 now` )
207
+ require .Contains (t , buf .String (), `-tetrate -v0 now` )
202
208
203
209
// fetch another version
204
210
cmd = exec .Command ("./getmesh" , "fetch" , "--version=1.7.8" )
@@ -219,7 +225,7 @@ func prune(t *testing.T) {
219
225
home , err := util .GetmeshHomeDir ()
220
226
require .NoError (t , err )
221
227
222
- // note that this prune test depends on the abovefetch test,
228
+ // note that this prune test depends on the above fetch test,
223
229
// and we should restore the fetched versions for subsequent tests
224
230
225
231
t .Run ("specific" , func (t * testing.T ) {
@@ -265,7 +271,7 @@ func prune(t *testing.T) {
265
271
FlavorVersion : 0 ,
266
272
},
267
273
{
268
- Version : "1.9.5 " ,
274
+ Version : "1.10.3 " ,
269
275
Flavor : "tetrate" ,
270
276
FlavorVersion : 0 ,
271
277
},
@@ -309,15 +315,15 @@ func show(t *testing.T) {
309
315
cmd .Stdout = buf
310
316
cmd .Stderr = os .Stderr
311
317
require .NoError (t , cmd .Run ())
312
- exp := `1.7.8 -tetrate-v0
313
- 1.8.6 -tetrate-v0
314
- 1.9.5 -tetrate-v0 (Active) `
318
+ exp := `1.10.3 -tetrate-v0 (Active)
319
+ 1.7.8 -tetrate-v0
320
+ 1.8.6 -tetrate-v0`
315
321
require .Contains (t , buf .String (), exp )
316
322
}
317
323
318
324
func switchTest (t * testing.T ) {
319
325
t .Run ("full" , func (t * testing.T ) {
320
- for _ , v := range []string {"1.8.6" , "1.9.5 " } {
326
+ for _ , v := range []string {"1.8.6" , "1.10.3 " } {
321
327
{
322
328
cmd := exec .Command ("./getmesh" , "switch" ,
323
329
"--version" , v , "--flavor" , "tetrate" , "--flavor-version=0" ,
@@ -352,7 +358,7 @@ func switchTest(t *testing.T) {
352
358
require .Contains (t , buf .String (), "1.8.6-tetrate-v0" )
353
359
354
360
cmd = exec .Command ("./getmesh" , "switch" ,
355
- "--name" , "1.9.5 -tetrate-v0" ,
361
+ "--name" , "1.10.3 -tetrate-v0" ,
356
362
)
357
363
cmd .Stdout = os .Stdout
358
364
cmd .Stderr = os .Stderr
@@ -363,11 +369,11 @@ func switchTest(t *testing.T) {
363
369
cmd .Stdout = buf
364
370
cmd .Stderr = os .Stderr
365
371
require .NoError (t , cmd .Run ())
366
- require .Contains (t , buf .String (), "1.9.5 -tetrate-v0" )
372
+ require .Contains (t , buf .String (), "1.10.3 -tetrate-v0" )
367
373
})
368
374
t .Run ("active" , func (t * testing.T ) {
369
375
cmd := exec .Command ("./getmesh" , "fetch" ,
370
- "--version=1.9.5 " , "--flavor=istio" , "--flavor-version=0" ,
376
+ "--version=1.10.3 " , "--flavor=istio" , "--flavor-version=0" ,
371
377
)
372
378
cmd .Stdout = os .Stdout
373
379
cmd .Stderr = os .Stderr
@@ -378,8 +384,8 @@ func switchTest(t *testing.T) {
378
384
cmd .Stdout = buf
379
385
cmd .Stderr = os .Stderr
380
386
require .NoError (t , cmd .Run ())
381
- require .Contains (t , buf .String (), "1.9.5 " )
382
- require .NotContains (t , buf .String (), "1.9.5 -tetrate-v0" )
387
+ require .Contains (t , buf .String (), "1.10.3 " )
388
+ require .NotContains (t , buf .String (), "1.10.3 -tetrate-v0" )
383
389
384
390
cmd = exec .Command ("./getmesh" , "switch" ,
385
391
"--flavor=tetrate" ,
@@ -393,7 +399,7 @@ func switchTest(t *testing.T) {
393
399
cmd .Stdout = buf
394
400
cmd .Stderr = os .Stderr
395
401
require .NoError (t , cmd .Run ())
396
- require .Contains (t , buf .String (), "1.9.5 -tetrate-v0" )
402
+ require .Contains (t , buf .String (), "1.10.3 -tetrate-v0" )
397
403
})
398
404
}
399
405
@@ -407,10 +413,7 @@ func istioctlInstall(t *testing.T) {
407
413
actual := buf .String ()
408
414
409
415
// istioctl x precheck
410
- require .Contains (t , actual , "Can initialize the Kubernetes client." )
411
- require .Contains (t , actual , "Can query the Kubernetes API Server." )
412
- require .Contains (t , actual , "Istio will be installed in the istio-system namespace." )
413
- require .Contains (t , actual , "Install Pre-Check passed! The cluster is ready for Istio installation." )
416
+ require .Contains (t , actual , "No issues found when checking the cluster. Istio is safe to install or upgrade" )
414
417
}
415
418
416
419
func unknown (t * testing.T ) {
@@ -499,7 +502,7 @@ func checkUpgrade(t *testing.T) {
499
502
cmd .Stderr = os .Stderr
500
503
require .NoError (t , cmd .Run (), buf .String ())
501
504
actual := buf .String ()
502
- require .Contains (t , actual , "1.9.5 -tetrate-v0 is the latest version in 1.9 -tetrate" )
505
+ require .Contains (t , actual , "1.10.3 -tetrate-v0 is the latest version in 1.10 -tetrate" )
503
506
504
507
// change image to 1.8.1-tetrate-v0
505
508
image := "containers.istio.tetratelabs.com/pilot:1.8.1-tetrate-v0"
0 commit comments