Skip to content

Commit

Permalink
Add istio darwin-arm64 distribution to manifest to fix fetch supporte…
Browse files Browse the repository at this point in the history
…d test

Signed-off-by: [email protected] <[email protected]>
  • Loading branch information
toffentoffen committed Aug 24, 2021
1 parent 8f52d6f commit 137a3b4
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 137a3b4

Please sign in to comment.