argo-cd/util/util_test.go
Alexander Matyushentsev 192ee93fc4
feat: Gitops engine (#3066)
* Move utils packages that are required for gitops engine under engine/pkg/utils package.
Following changes were implemented:
* util/health package is split into two parts: resource health assessement & resource health assessement and moved into engine/pkg/utils
* utils packages moved: Closer and Close method of util package moved into engine/pkg/utils/io package
* packages diff, errors, exec, json, kube and tracing moved into engine/pkg/utils

* Move single cluster caching into engine/kube/cache package

* move sync functionality to engine/kube/sync package

* remove dependency on metrics package from engine/pkg/utils/kube/cache

* move annotation label definitions into engine/pkg/utils/kube/sync

* make sure engine/pkg has no dependencies on other argo-cd packages

* allow importing engine as a go module

* implement a high-level interface that might be consumed by flux

* fix deadlock caused by cluster cache event handler

* ClusterCache should return error if requested group kind not found

* remove obsolete tests

* apply reviewer notes
2020-05-15 10:01:18 -07:00

17 lines
324 B
Go

package util_test
import (
"testing"
"github.com/argoproj/argo-cd/util"
)
func TestMakeSignature(t *testing.T) {
for size := 1; size <= 64; size++ {
s, err := util.MakeSignature(size)
if err != nil {
t.Errorf("Could not generate signature of size %d: %v", size, err)
}
t.Logf("Generated token: %v", s)
}
}