Skip to content

Commit 16ede83

Browse files
authored
Test redirects for German docs (#654)
1 parent fcf5d4a commit 16ede83

3 files changed

Lines changed: 65 additions & 0 deletions

File tree

‎tests/docs-redirects/specs/PEP-594.hurl‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,21 @@ HTTP 301
3333
[Asserts]
3434
header "Location" == "https://localhost/bn-in/3.14/"
3535

36+
GET {{host}}/de/3/library/2to3.html
37+
HTTP 301
38+
[Asserts]
39+
header "Location" == "https://localhost/de/3/"
40+
41+
GET {{host}}/de/3.13/library/2to3.html
42+
HTTP 301
43+
[Asserts]
44+
header "Location" == "https://localhost/de/3.13/"
45+
46+
GET {{host}}/de/3.14/library/2to3.html
47+
HTTP 301
48+
[Asserts]
49+
header "Location" == "https://localhost/de/3.14/"
50+
3651
GET {{host}}/el/3/library/2to3.html
3752
HTTP 301
3853
[Asserts]
@@ -320,6 +335,21 @@ HTTP 301
320335
[Asserts]
321336
header "Location" == "https://localhost/bn-in/3.14/"
322337

338+
GET {{host}}/de/3/library/tkinter.tix.html
339+
HTTP 301
340+
[Asserts]
341+
header "Location" == "https://localhost/de/3/"
342+
343+
GET {{host}}/de/3.13/library/tkinter.tix.html
344+
HTTP 301
345+
[Asserts]
346+
header "Location" == "https://localhost/de/3.13/"
347+
348+
GET {{host}}/de/3.14/library/tkinter.tix.html
349+
HTTP 301
350+
[Asserts]
351+
header "Location" == "https://localhost/de/3.14/"
352+
323353
GET {{host}}/el/3/library/tkinter.tix.html
324354
HTTP 301
325355
[Asserts]

‎tests/docs-redirects/specs/default-root.hurl‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ HTTP 302
1313
[Asserts]
1414
header "Location" == "http://localhost/bn-in/3/"
1515

16+
GET {{host}}/de/
17+
HTTP 302
18+
[Asserts]
19+
header "Location" == "http://localhost/de/3/"
20+
1621
GET {{host}}/el/
1722
HTTP 302
1823
[Asserts]

‎tests/docs-redirects/specs/surrogate-key.hurl‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,36 @@ HTTP 404
325325
[Asserts]
326326
header "Surrogate-Key" == "bn-in/dev"
327327

328+
GET {{host}}/de/3/
329+
HTTP 404
330+
[Asserts]
331+
header "Surrogate-Key" == "de/3"
332+
333+
GET {{host}}/de/3/about.html
334+
HTTP 404
335+
[Asserts]
336+
header "Surrogate-Key" == "de/3"
337+
338+
GET {{host}}/de/3.14/
339+
HTTP 404
340+
[Asserts]
341+
header "Surrogate-Key" == "de/3.14"
342+
343+
GET {{host}}/de/3.14/about.html
344+
HTTP 404
345+
[Asserts]
346+
header "Surrogate-Key" == "de/3.14"
347+
348+
GET {{host}}/de/dev/
349+
HTTP 404
350+
[Asserts]
351+
header "Surrogate-Key" == "de/dev"
352+
353+
GET {{host}}/de/dev/about.html
354+
HTTP 404
355+
[Asserts]
356+
header "Surrogate-Key" == "de/dev"
357+
328358
GET {{host}}/el/3/
329359
HTTP 404
330360
[Asserts]

0 commit comments

Comments
 (0)