1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-12-22 14:48:07 +00:00

Can't run kubectl on Travis so I don't know how this test ever worked

This commit is contained in:
Liz Rice 2017-11-21 13:21:47 +00:00
parent 730871f330
commit 97485419e2

View File

@ -17,7 +17,6 @@ package cmd
import (
"os"
"reflect"
"regexp"
"strconv"
"testing"
@ -182,15 +181,6 @@ func TestMultiWordReplace(t *testing.T) {
}
}
func TestGetKubeVersion(t *testing.T) {
ver := getKubeVersion()
if ok, err := regexp.MatchString(`\d+.\d+`, ver); !ok && err != nil {
t.Logf("Expected:%v got %v\n", "n.m", ver)
}
}
func TestKubeVersionRegex(t *testing.T) {
ver := getVersionFromKubectlOutput(`Client Version: v1.8.0
Server Version: v1.8.12