Some tests included for making sure the JSON blob pulled from Zookeeper is correct. Updated client to be able to take Zookeeper json cluster config that is currently being used in aurora (clusters.json usually located at /etc/aurora/cluster.json). Changed error messages to no longer have a period at the end as that was throwing off printing of the error. Modified samuel's ZK library slightly to stop verbose logging using a NoOpLogger from stackoverflow.
10 lines
326 B
Go
10 lines
326 B
Go
package assert
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
// AnError is an error instance useful for testing. If the code does not care
|
|
// about error specifics, and only needs to return the error for example, this
|
|
// error should be used to make the test code more readable.
|
|
var AnError = errors.New("assert.AnError general error for testing")
|