Commit f4bb4378 authored by Nathan Probst's avatar Nathan Probst

Remove unneeded Regexp from tests.

parent 2ea6c95a
...@@ -145,13 +145,13 @@ func TestRewriteParse(t *testing.T) { ...@@ -145,13 +145,13 @@ func TestRewriteParse(t *testing.T) {
{`rewrite { {`rewrite {
status 400 status 400
}`, false, []rewrite.Rule{ }`, false, []rewrite.Rule{
&rewrite.ComplexRule{Base: "/", Regexp: regexp.MustCompile(".*"), Status: 400}, &rewrite.ComplexRule{Base: "/", Status: 400},
}}, }},
{`rewrite { {`rewrite {
to /to to /to
status 400 status 400
}`, false, []rewrite.Rule{ }`, false, []rewrite.Rule{
&rewrite.ComplexRule{Base: "/", To: "/to", Regexp: regexp.MustCompile(".*"), Status: 400}, &rewrite.ComplexRule{Base: "/", To: "/to", Status: 400},
}}, }},
{`rewrite { {`rewrite {
status 399 status 399
...@@ -161,13 +161,13 @@ func TestRewriteParse(t *testing.T) { ...@@ -161,13 +161,13 @@ func TestRewriteParse(t *testing.T) {
{`rewrite { {`rewrite {
status 200 status 200
}`, false, []rewrite.Rule{ }`, false, []rewrite.Rule{
&rewrite.ComplexRule{Base: "/", Regexp: regexp.MustCompile(".*"), Status: 200}, &rewrite.ComplexRule{Base: "/", Status: 200},
}}, }},
{`rewrite { {`rewrite {
to /to to /to
status 200 status 200
}`, false, []rewrite.Rule{ }`, false, []rewrite.Rule{
&rewrite.ComplexRule{Base: "/", To: "/to", Regexp: regexp.MustCompile(".*"), Status: 200}, &rewrite.ComplexRule{Base: "/", To: "/to", Status: 200},
}}, }},
{`rewrite { {`rewrite {
status 199 status 199
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment