Test the everyday media type extensions and the status codes a filter must not drop
This commit is contained in:
@@ -679,12 +679,18 @@ func TestShippedTables(t *testing.T) {
|
|||||||
"language[sv].code3": "swe",
|
"language[sv].code3": "swe",
|
||||||
"language[Swedish].code": "sv",
|
"language[Swedish].code": "sv",
|
||||||
"language[nl]": "Dutch",
|
"language[nl]": "Dutch",
|
||||||
|
"httpstatus[200]": "200 OK",
|
||||||
"httpstatus[404]": "404 Not Found",
|
"httpstatus[404]": "404 Not Found",
|
||||||
"httpstatus[404].reason": "Not Found",
|
"httpstatus[404].reason": "Not Found",
|
||||||
"httpstatus[451].reason": "Unavailable For Legal Reasons",
|
"httpstatus[451].reason": "Unavailable For Legal Reasons",
|
||||||
|
"httpstatus[500].reason": "Internal Server Error",
|
||||||
"mimetype[application/json].ext": ".json",
|
"mimetype[application/json].ext": ".json",
|
||||||
"mimetype[text/markdown].ext": ".md",
|
"mimetype[text/markdown].ext": ".md",
|
||||||
"mimetype[.jpg]": "image/jpeg",
|
"mimetype[.jpg]": "image/jpeg",
|
||||||
|
"mimetype[.mov]": "video/quicktime",
|
||||||
|
"mimetype[.mp3]": "audio/mpeg",
|
||||||
|
"mimetype[.mp4]": "video/mp4",
|
||||||
|
"mimetype[.ogg]": "audio/ogg",
|
||||||
} {
|
} {
|
||||||
if got := fake(t, f, path); got != want {
|
if got := fake(t, f, path); got != want {
|
||||||
t.Errorf("Fake(%q) = %q, want %q", path, got, want)
|
t.Errorf("Fake(%q) = %q, want %q", path, got, want)
|
||||||
|
|||||||
Reference in New Issue
Block a user