... to prevent panics if the value does not contain a :, or other unexpected
values (e.g. a path traversal).
Don't bother on paths where we computed the digest ourselves, or it is already trusted
for other reasons.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
Also use require. instead of assert. in a few places.
Other than that, should not change test behavior.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
It's not actually dealing with the lookaside; just with the configuration.
And we are going to introduce more configuration.
Signed-off-by: Miloslav Trmač <mitr@redhat.com>