Check cached sources with upstream after the cache TTL (closes #69) (#350)
check / check (push) Canceled after 0s
check / check (push) Canceled after 0s
This commit was merged in pull request #350.
This commit is contained in:
1 parent
1379497897
commit
e34463acf8
28 files changed
+1689
-269
No files matched your search
@@ -51,12 +51,12 @@ func TestDialContextReplacesOnlyTheDialer(t *testing.T) {
|
||||
t.Errorf("body = %q, want %q", body, imagePayload)
|
||||
}
|
||||
|
||||
_, err := f.Fetch(testContext(t), imageSourceOn("127.0.0.1"))
|
||||
_, err := f.Fetch(testContext(t), imageSourceOn("127.0.0.1"), "", "")
|
||||
if !errors.Is(err, ErrSSRFBlocked) {
|
||||
t.Errorf("Fetch(loopback URL) error = %v, want ErrSSRFBlocked", err)
|
||||
}
|
||||
|
||||
_, err = f.Fetch(testContext(t), upstreamSource("/redirect/private"))
|
||||
_, err = f.Fetch(testContext(t), upstreamSource("/redirect/private"), "", "")
|
||||
if !errors.Is(err, ErrSSRFBlocked) {
|
||||
t.Errorf("Fetch(/redirect/private) error = %v, want ErrSSRFBlocked", err)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user