Skip to content

Commit

Permalink
Migrate e2e test for HashiCorp Vault to Go. (#3424)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-shenoy authored Jul 26, 2022
1 parent 17b78dd commit 8cb09c2
Show file tree
Hide file tree
Showing 3 changed files with 396 additions and 267 deletions.
6 changes: 6 additions & 0 deletions tests/helper/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"math/rand"
"os"
"os/exec"
"regexp"
"strings"
"testing"
"text/template"
Expand Down Expand Up @@ -426,3 +427,8 @@ func DeleteKubernetesResources(t *testing.T, kc *kubernetes.Clientset, nsName st
func GetRandomNumber() int {
return random.Intn(10000)
}

func RemoveANSI(input string) string {
reg := regexp.MustCompile(`(\x9B|\x1B\[)[0-?]*[ -\/]*[@-~]`)
return reg.ReplaceAllString(input, "")
}
267 changes: 0 additions & 267 deletions tests/scalers/postgresql-hashicorp-vault.test.ts

This file was deleted.

Loading

0 comments on commit 8cb09c2

Please sign in to comment.