mirror of
https://github.com/aquasecurity/kube-bench.git
synced 2024-10-31 20:39:14 +00:00
Can't run kubectl on Travis so I don't know how this test ever worked
This commit is contained in:
parent
730871f330
commit
97485419e2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user