"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/integration/aaa_download_only_test.go" between
minikube-1.25.2.tar.gz and minikube-1.26.0.tar.gz

About: minikube implements a local Kubernetes cluster on macOS, Linux, and Windows. minikube's primary goals are to be the best tool for local Kubernetes application development and to support all Kubernetes features that fit.

aaa_download_only_test.go  (minikube-1.25.2):aaa_download_only_test.go  (minikube-1.26.0)
//go:build integration //go:build integration
// +build integration
/* /*
Copyright 2019 The Kubernetes Authors All rights reserved. Copyright 2019 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License. you may not use this file except in compliance with the License.
You may obtain a copy of the License at You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 http://www.apache.org/licenses/LICENSE-2.0
skipping to change at line 30 skipping to change at line 29
package integration package integration
import ( import (
"bufio" "bufio"
"bytes" "bytes"
"context" "context"
"crypto/md5" "crypto/md5"
"crypto/sha256" "crypto/sha256"
"encoding/json" "encoding/json"
"fmt" "fmt"
"io/ioutil"
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"
"os" "os"
"os/exec" "os/exec"
"path/filepath" "path/filepath"
"runtime" "runtime"
"strings" "strings"
"testing" "testing"
"k8s.io/minikube/pkg/minikube/bootstrapper/images" "k8s.io/minikube/pkg/minikube/bootstrapper/images"
skipping to change at line 279 skipping to change at line 277
} }
return nil return nil
} }
// TestBinaryMirror tests functionality of --binary-mirror flag // TestBinaryMirror tests functionality of --binary-mirror flag
func TestBinaryMirror(t *testing.T) { func TestBinaryMirror(t *testing.T) {
profile := UniqueProfileName("binary-mirror") profile := UniqueProfileName("binary-mirror")
ctx, cancel := context.WithTimeout(context.Background(), Minutes(10)) ctx, cancel := context.WithTimeout(context.Background(), Minutes(10))
defer Cleanup(t, profile, cancel) defer Cleanup(t, profile, cancel)
tmpDir, err := ioutil.TempDir("", "kb_test") tmpDir := t.TempDir()
if err != nil {
t.Fatal(err)
}
defer os.RemoveAll(tmpDir)
// Start test server which will serve binary files // Start test server which will serve binary files
ts := httptest.NewServer( ts := httptest.NewServer(
http.FileServer(http.Dir(tmpDir)), http.FileServer(http.Dir(tmpDir)),
) )
defer ts.Close() defer ts.Close()
binaryName := "kubectl" binaryName := "kubectl"
if runtime.GOOS == "windows" { if runtime.GOOS == "windows" {
binaryName = "kubectl.exe" binaryName = "kubectl.exe"
 End of changes. 3 change blocks. 
7 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)