Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caddy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Łukasz Nowak
caddy
Commits
f4bb4378
Commit
f4bb4378
authored
Feb 24, 2016
by
Nathan Probst
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unneeded Regexp from tests.
parent
2ea6c95a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
caddy/setup/rewrite_test.go
caddy/setup/rewrite_test.go
+4
-4
No files found.
caddy/setup/rewrite_test.go
View file @
f4bb4378
...
...
@@ -145,13 +145,13 @@ func TestRewriteParse(t *testing.T) {
{
`rewrite {
status 400
}`
,
false
,
[]
rewrite
.
Rule
{
&
rewrite
.
ComplexRule
{
Base
:
"/"
,
Regexp
:
regexp
.
MustCompile
(
".*"
),
Status
:
400
},
&
rewrite
.
ComplexRule
{
Base
:
"/"
,
Status
:
400
},
}},
{
`rewrite {
to /to
status 400
}`
,
false
,
[]
rewrite
.
Rule
{
&
rewrite
.
ComplexRule
{
Base
:
"/"
,
To
:
"/to"
,
Regexp
:
regexp
.
MustCompile
(
".*"
),
Status
:
400
},
&
rewrite
.
ComplexRule
{
Base
:
"/"
,
To
:
"/to"
,
Status
:
400
},
}},
{
`rewrite {
status 399
...
...
@@ -161,13 +161,13 @@ func TestRewriteParse(t *testing.T) {
{
`rewrite {
status 200
}`
,
false
,
[]
rewrite
.
Rule
{
&
rewrite
.
ComplexRule
{
Base
:
"/"
,
Regexp
:
regexp
.
MustCompile
(
".*"
),
Status
:
200
},
&
rewrite
.
ComplexRule
{
Base
:
"/"
,
Status
:
200
},
}},
{
`rewrite {
to /to
status 200
}`
,
false
,
[]
rewrite
.
Rule
{
&
rewrite
.
ComplexRule
{
Base
:
"/"
,
To
:
"/to"
,
Regexp
:
regexp
.
MustCompile
(
".*"
),
Status
:
200
},
&
rewrite
.
ComplexRule
{
Base
:
"/"
,
To
:
"/to"
,
Status
:
200
},
}},
{
`rewrite {
status 199
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment