provisioning: only update dashboard if hash of json changed

This commit is contained in:
bergquist
2018-05-31 21:05:52 +02:00
parent 44f5b92fbc
commit c817aecd66
7 changed files with 90 additions and 11 deletions
+17
View File
@@ -0,0 +1,17 @@
package util
import "testing"
func TestMd5Sum(t *testing.T) {
input := "dont hash passwords with md5"
have, err := Md5SumString(input)
if err != nil {
t.Fatal("expected err to be nil")
}
want := "2d6a56c82d09d374643b926d3417afba"
if have != want {
t.Fatalf("expected: %s got: %s", want, have)
}
}