Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit 814468a

Browse files
committed
Fix tests
1 parent c9f1cef commit 814468a

22 files changed

+177
-181
lines changed

line-parser.test.js

Lines changed: 109 additions & 181 deletions
Large diffs are not rendered by default.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Send all traffic from Australia to the right country URL
2+
http://ximble.com.au/* https://www.ximble.com/au/:splat 301! Country=au
3+
http://www.ximble.com.au/* https://www.ximble.com/au/:splat 301! Country=au
4+
https://ximble.com.au/* https://www.ximble.com/au/:splat 301! Country=au
5+
https://www.ximble.com.au/* https://www.ximble.com/au/:splat 301! Country=au
6+
https://www.ximble.com/* https://www.ximble.com/au/:splat 301! Country=au
7+
8+
# Pages on NimbleSchedule.com that have changed
9+
/about-us /about
10+
/easy-employee-scheduling/ /scheduling

test-files/complex_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/google-play https://goo.gl/app/playmusic?ibi=com.google.PlayMusic&isi=691797987&ius=googleplaymusic&link=https://play.google.com/music/m/Ihj4yege3lfmp3vs5yoopgxijpi?t%3DArrested_DevOps 301!

test-files/complicated_redirects

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/10thmagnitude http://www.10thmagnitude.com/ 301!
2+
/bananastand http://eepurl.com/Lgde5 301!
3+
/conf https://docs.google.com/forms/d/1wMBXPjAcofBDqnRhKbM5KhzUbGPoxqRQZs6O_TEBa_Q/viewform?usp=send_form 301!
4+
/gpm https://goo.gl/app/playmusic?ibi=com.google.PlayMusic&isi=691797987&ius=googleplaymusic&link=https://play.google.com/music/m/Ihj4yege3lfmp3vs5yoopgxijpi?t%3DArrested_DevOps 301!
5+
/googleplay https://goo.gl/app/playmusic?ibi=com.google.PlayMusic&isi=691797987&ius=googleplaymusic&link=https://play.google.com/music/m/Ihj4yege3lfmp3vs5yoopgxijpi?t%3DArrested_DevOps 301!
6+
/google-play-music https://goo.gl/app/playmusic?ibi=com.google.PlayMusic&isi=691797987&ius=googleplaymusic&link=https://play.google.com/music/m/Ihj4yege3lfmp3vs5yoopgxijpi?t%3DArrested_DevOps 301!
7+
/google https://goo.gl/app/playmusic?ibi=com.google.PlayMusic&isi=691797987&ius=googleplaymusic&link=https://play.google.com/music/m/Ihj4yege3lfmp3vs5yoopgxijpi?t%3DArrested_DevOps 301!
8+
/playmusic https://goo.gl/app/playmusic?ibi=com.google.PlayMusic&isi=691797987&ius=googleplaymusic&link=https://play.google.com/music/m/Ihj4yege3lfmp3vs5yoopgxijpi?t%3DArrested_DevOps 301!
9+
/google-play https://goo.gl/app/playmusic?ibi=com.google.PlayMusic&isi=691797987&ius=googleplaymusic&link=https://play.google.com/music/m/Ihj4yege3lfmp3vs5yoopgxijpi?t%3DArrested_DevOps 301!
10+
/guestform https://docs.google.com/forms/d/1zqG3fEyugSQLt-yKJNsPpgqDr0Akl8hD_z4DaGdzuOI/viewform?usp=send_form 301!
11+
/iphone http://itunes.apple.com/us/app/arrested-devops/id963732227 301!
12+
/itunes https://itunes.apple.com/us/podcast/arrested-devops/id773888088?mt=2&uo=4&at=11lsCi 301!
13+
/iTunes https://itunes.apple.com/us/podcast/arrested-devops/id773888088?mt=2&uo=4&at=11lsCi 301!
14+
/mailinglist http://eepurl.com/Lgde5 301!
15+
/sponsorschedule http://docs.google.com/spreadsheets/d/1wkWhmSIC_WYultwRb6jfQijrfS1x44YIyCV_pBJxgRQ/pubhtml?gid=67301010&single=true 301!
16+
/stackexchange http://careers.stackoverflow.com/jobs/employer/Stack%20Exchange?searchTerm=Reliability 301!
17+
/tenthmagnitude http://www.10thmagnitude.com/ 301!
18+
/xm http://www.10thmagnitude.com/ 301!
19+
/codeship http://www.codeship.io/arresteddevops?utm_source=arresteddevops&utm_medium=podcast&utm_campaign=ArrestedDevOpsPodcast 301!
20+
/datadog https://www.datadoghq.com/lpgs/?utm_source=Advertisement&utm_medium=Advertisement&utm_campaign=ArrestedDevops-Tshirt 301!
21+
/loggly https://www.loggly.com/?utm_source=arresteddevops&utm_medium=podcast&utm_campaign=1 301!
22+
/redgate http://www.red-gate.com/products/dlm/?utm_source=arresteddevops&utm_medium=displayad&utm_content=dlm&utm_campaign=dlm&utm_term=podcast-22752 301!
23+
/trueability http://linux.trueability.com 301!
24+
/hired https://hired.com/?utm_source=podcast&utm_medium=arresteddevops&utm_campaign=q2-16&utm_term=cat-tech-devops 301!
25+
/stickers https://www.stickermule.com/user/1070633194/stickers 301!
26+
/chefcommunity https://summit.chef.io 301!
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/ /china 302 Country=il Language=en

test-files/country_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/ /china 302 Country=ch,tw

test-files/equal_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/test https://www.bitballoon.com/test=hello 301

test-files/full_hostname_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
http://hello.bitballoon.com/* http://www.hello.com/:splat

test-files/mistaken_headers

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Protect backups with Basic Auth
2+
/backup/*
3+
Basic-Auth: [email protected]:nud-feud-contour
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/member/* /member/:splat 200 Role=admin,member

0 commit comments

Comments
 (0)