Skip to content

Commit 7cfe749

Browse files
committed
Migrate test-suite/tests/ redirs & headers.
1 parent 214890b commit 7cfe749

File tree

3 files changed

+23
-30
lines changed

3 files changed

+23
-30
lines changed

_headers

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,21 @@
1010
/contexts/recipe
1111
Content-Type: application/ld+json
1212
Access-Control-Allow-Origin: "*"
13+
14+
/test-suite/*.jldt
15+
Content-Type: application/jldTest+json
16+
/test-suite/*.jldte
17+
Content-Type: application/jldTest
18+
19+
# Tests 0009-0011 Add link header
20+
/test-suite/remote-doc-0009-in.jsonld
21+
Link: '<remote-doc-0009-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"'
22+
/test-suite/remote-doc-0010-in.json
23+
Link: '<remote-doc-0010-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"'
24+
/test-suite/remote-doc-0011-in.jldt
25+
Link: '<remote-doc-0011-context.jsonld>; rel="http://www.w3.org/ns/json-ld#context"'
26+
27+
# Test 00012 adds multiple link headers
28+
/test-suite/remote-doc-0012-in.json
29+
Link: '<remote-doc-0012-context1.jsonld>; rel="http://www.w3.org/ns/json-ld#context"'
30+
Link: '<remote-doc-0012-context2.jsonld>; rel="http://www.w3.org/ns/json-ld#context"'

_redirects

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
/spec/latest/json-ld-syntax https://www.w3.org/TR/json-ld/ 301
66
/spec/latest/json-ld-syntax/ https://www.w3.org/TR/json-ld/ 301
77

8+
# Tests 0005-0007, status redirect to 0001
9+
/test-suite/remote-doc-0005-in.jsonld /test-suite/tests/remote-doc-0001-in.jsonld 301
10+
/test-suite/remote-doc-0006-in.jsonld /test-suite/tests/remote-doc-0001-in.jsonld 303
11+
/test-suite/remote-doc-0007-in.jsonld /test-suite/tests/remote-doc-0001-in.jsonld 307
12+
813
/spec/latest/json-ld/* https://www.w3.org/TR/json-ld/:splat 301
914
/spec/latest/json-ld-api/* https://www.w3.org/TR/json-ld-api/:splat 301
1015
/spec/latest/json-ld-framing/* https://www.w3.org/TR/json-ld-framing/:splat 301

test-suite/tests/.htaccess

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)