Skip to content
Snippets Groups Projects
Unverified Commit 27be9e73 authored by Bob Callaway's avatar Bob Callaway Committed by GitHub
Browse files

fix 0 log index (#385)

parent 03c49174
No related branches found
No related tags found
No related merge requests found
......@@ -195,7 +195,7 @@ func validateLogIndex(v string) error {
return err
}
l := struct {
Index int `validate:"required,gte=0"`
Index int `validate:"gte=0"`
}{i}
return useValidator(logIndexFlag, l)
......
......@@ -192,6 +192,9 @@ func TestGet(t *testing.T) {
uuid := getUUIDFromUploadOutput(t, out)
// since we at least have 1 valid entry, check the log at index 0
runCli(t, "get", "--log-index", "0")
out = runCli(t, "get", "--format=json", "--uuid", uuid)
// The output here should be in JSON with this structure:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment