package keepclient
import (
- "crypto/md5"
"fmt"
. "gopkg.in/check.v1"
"strconv"
return sr
}
-func Md5String(data string) (string) {
- return fmt.Sprintf("%032x", md5.Sum([]byte(data)))
-}
-
func (*RootSorterSuite) EmptyRoots(c *C) {
rs := NewRootSorter(map[string]string{}, Md5String("foo"))
c.Check(rs.GetSortedRoots(), Equals, []string{})
func (*RootSorterSuite) ReferenceSet(c *C) {
fakeroots := FakeServiceRoots(16)
+ // These reference probe orders are explained further in
+ // ../../python/tests/test_keep_client.py:
expected_orders := []string{
"3eab2d5fc9681074",
"097dba52e648f1c3",