This commit is contained in:
11
fixtures/detection/detect_mime_bytes_html.json
Normal file
11
fixtures/detection/detect_mime_bytes_html.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"id": "detect_mime_bytes_html",
|
||||
"category": "detection",
|
||||
"description": "Detect HTML MIME from bytes",
|
||||
"tags": ["mime_detection", "bytes"],
|
||||
"call": "detect_mime_type_from_bytes",
|
||||
"input": {
|
||||
"data": "html/html.html"
|
||||
},
|
||||
"assertions": [{ "type": "not_error" }]
|
||||
}
|
||||
15
fixtures/detection/detect_mime_bytes_pdf.json
Normal file
15
fixtures/detection/detect_mime_bytes_pdf.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"id": "detect_mime_bytes_pdf",
|
||||
"category": "detection",
|
||||
"description": "Detect PDF MIME type from bytes",
|
||||
"tags": ["mime_detection", "bytes", "pdf"],
|
||||
"call": "detect_mime_type_from_bytes",
|
||||
"input": {
|
||||
"data": "pdf/fake_memo.pdf"
|
||||
},
|
||||
"assertions": [
|
||||
{
|
||||
"type": "not_error"
|
||||
}
|
||||
]
|
||||
}
|
||||
15
fixtures/detection/detect_mime_bytes_png.json
Normal file
15
fixtures/detection/detect_mime_bytes_png.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"id": "detect_mime_bytes_png",
|
||||
"category": "detection",
|
||||
"description": "Detect PNG MIME type from bytes",
|
||||
"tags": ["mime_detection", "bytes", "png"],
|
||||
"call": "detect_mime_type_from_bytes",
|
||||
"input": {
|
||||
"data": "images/test_hello_world.png"
|
||||
},
|
||||
"assertions": [
|
||||
{
|
||||
"type": "not_error"
|
||||
}
|
||||
]
|
||||
}
|
||||
11
fixtures/detection/get_extensions_unknown_mime.json
Normal file
11
fixtures/detection/get_extensions_unknown_mime.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"id": "get_extensions_unknown_mime",
|
||||
"category": "detection",
|
||||
"description": "get_extensions unknown MIME",
|
||||
"tags": ["mime_detection", "error"],
|
||||
"call": "get_extensions_for_mime",
|
||||
"input": {
|
||||
"mime_type": "application/x-totally-unknown"
|
||||
},
|
||||
"assertions": [{ "type": "error" }]
|
||||
}
|
||||
Reference in New Issue
Block a user