1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-16 06:59:25 +00:00

more unit tests

This commit is contained in:
galal-hussein
2017-12-07 02:40:44 +02:00
parent a5b5f06fd5
commit f74dbfbd33
10 changed files with 450 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ func TestPKI(t *testing.T) {
for _, testDNS := range kubeAPIDNSNames {
assertEqual(
t,
stringInSlice(
isStringInSlice(
testDNS,
certificateMap[KubeAPICertName].Certificate.DNSNames),
true,
@@ -92,7 +92,7 @@ func TestPKI(t *testing.T) {
}
}
func stringInSlice(a string, list []string) bool {
func isStringInSlice(a string, list []string) bool {
for _, b := range list {
if b == a {
return true