Skip to content

Commit

Permalink
Add istio darwin-arm64 support distribution to fix fetch supported test
Browse files Browse the repository at this point in the history
  • Loading branch information
toffentoffen committed Aug 24, 2021
1 parent c4ecad2 commit 1a2a7d0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions internal/istioctl/istioctl_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,16 @@ func TestFetch(t *testing.T) {
defer os.RemoveAll(dir)
ms := &manifest.Manifest{
IstioDistributions: []*manifest.IstioDistribution{
{
Version: "1.10.3",
Flavor: manifest.IstioDistributionFlavorTetrate,
FlavorVersion: 0,
},
{
Version: "1.10.3",
Flavor: manifest.IstioDistributionFlavorTetrateFIPS,
FlavorVersion: 0,
},
{
Version: "1.7.6",
Flavor: manifest.IstioDistributionFlavorTetrate,
Expand Down Expand Up @@ -407,8 +417,8 @@ func TestFetch(t *testing.T) {

t.Run("supported", func(t *testing.T) {
for _, c := range []*manifest.IstioDistribution{
{Version: "1.7.5", Flavor: manifest.IstioDistributionFlavorTetrate, FlavorVersion: 0},
{Version: "1.7.6", Flavor: manifest.IstioDistributionFlavorTetrate, FlavorVersion: 0},
{Version: "1.10.3", Flavor: manifest.IstioDistributionFlavorTetrate, FlavorVersion: 0},
{Version: "1.10.3", Flavor: manifest.IstioDistributionFlavorTetrateFIPS, FlavorVersion: 0},
} {
require.Error(t, checkExist(dir, c))
err = Fetch(dir, c, ms)
Expand Down

0 comments on commit 1a2a7d0

Please sign in to comment.