Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libnginx-mod-http-fancyindex
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nginx
libnginx-mod-http-fancyindex
Commits
150769e6
Verified
Commit
150769e6
authored
2 years ago
by
Jan Mojžíš
Browse files
Options
Downloads
Patches
Plain Diff
d/t update
parent
92b21fee
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/tests/control
+1
-1
1 addition, 1 deletion
debian/tests/control
debian/tests/generic
+20
-0
20 additions, 0 deletions
debian/tests/generic
with
21 additions
and
1 deletion
debian/tests/control
+
1
−
1
View file @
150769e6
Tests:
helloworld
Tests:
generic
Restrictions: allow-stderr isolation-container needs-root
Depends: curl,
nginx,
...
...
This diff is collapsed.
Click to expand it.
debian/tests/
helloworld
→
debian/tests/
generic
+
20
−
0
View file @
150769e6
#!/bin/sh
set
-e
# generic test that only verifies that nginx is running with the given
# libnginx-... module
cat
<<
EOF
> "/etc/nginx/sites-enabled/default"
server {
listen 80 default_server;
location /
helloworld
{
location /
generic
{
return 200;
}
}
EOF
exp
=
"response_code: 200"
nginx
-t
invoke-rc.d nginx restart
||
{
journalctl
-n
all
-xu
nginx.service
;
exit
1
;
}
out
=
`
curl
--fail
-w
"response_code: %{http_code}
\n
"
http://127.0.0.1/helloworld
`
if
[
x
"
${
out
}
"
!=
x
"
${
exp
}
"
]
;
then
echo
"output:"
echo
"====================="
echo
"
${
out
}
"
echo
"====================="
echo
"expected output:"
echo
"====================="
echo
"
${
exp
}
"
echo
"====================="
exit
1
fi
curl
--fail
-w
"response_code: %{http_code}
\n
"
http://127.0.0.1/generic
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment