Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nginx Http Shibboleth
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Anna-Maria Tipotsch
Nginx Http Shibboleth
Commits
97d39a01
"...git@git.uibk.ac.at:c102348/olat-ci-cd-testing-project.git" did not exist on "29ca12a706677a87af830b544f595bef0eb30eb8"
Commit
97d39a01
authored
9 years ago
by
David Beitey
Browse files
Options
Downloads
Patches
Plain Diff
Add Travis CI for tests. Fixes #1
parent
13d89ba4
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
.travis.yml
+7
-8
7 additions, 8 deletions
.travis.yml
README.rst
+29
-5
29 additions, 5 deletions
README.rst
with
36 additions
and
13 deletions
.travis.yml
+
7
−
8
View file @
97d39a01
...
@@ -5,12 +5,10 @@ compiler:
...
@@ -5,12 +5,10 @@ compiler:
env
:
env
:
-
NGINX=1.9.11
-
NGINX=1.9.11
-
NGINX=1.8.1
-
NGINX=1.8.1
sudo
:
false
before_install
:
addons
:
-
sudo apt-get install -qq libpcre3-dev libssl-dev
apt
:
-
sudo apt-get install -qq perl
packages
:
-
sudo env PERL_MM_USE_DEFAULT=1 cpan -fi Test::Nginx::Socket
-
libpcre3-dev
-
libssl-dev
cache
:
ccache
cache
:
ccache
script
:
|
script
:
|
wget -O - http://nginx.org/download/nginx-${NGINX}.tar.gz | tar -xzf -
wget -O - http://nginx.org/download/nginx-${NGINX}.tar.gz | tar -xzf -
...
@@ -18,6 +16,7 @@ script: |
...
@@ -18,6 +16,7 @@ script: |
git clone https://github.com/openresty/headers-more-nginx-module.git -b v0.29
git clone https://github.com/openresty/headers-more-nginx-module.git -b v0.29
./configure --with-debug --add-module=.. --add-module=./headers-more-nginx-module
./configure --with-debug --add-module=.. --add-module=./headers-more-nginx-module
make
make
mkdir logs # Requried for nginx to start
cd ..
./objs/nginx -c $(pwd)/../nginx-test.conf -p . -t
export PATH=$(pwd)/nginx-${NGINX}/objs/:$PATH
prove
This diff is collapsed.
Click to expand it.
README.rst
+
29
−
5
View file @
97d39a01
...
@@ -120,7 +120,7 @@ Gotchas
...
@@ -120,7 +120,7 @@ Gotchas
This means that built-in directives like ``add_header`` will **not** work if configured
This means that built-in directives like ``add_header`` will **not** work if configured
as part of the a ``/shibauthorizer`` block. If you need to manipulate subrequest headers,
as part of the a ``/shibauthorizer`` block. If you need to manipulate subrequest headers,
use ``more_set_headers`` from the module ``headers-more``.
use ``more_set_headers`` from the module ``headers-more``.
See http://forum.nginx.org/read.php?29,257271,257272#msg-257272.
See http://forum.nginx.org/read.php?29,257271,257272#msg-257272.
* Subrequest response bodies cannot be returned to the client as Nginx does not currently
* Subrequest response bodies cannot be returned to the client as Nginx does not currently
...
@@ -128,19 +128,43 @@ Gotchas
...
@@ -128,19 +128,43 @@ Gotchas
be returned to the client) for FastCGI. As a result, the response body from the
be returned to the client) for FastCGI. As a result, the response body from the
Shibboleth authorizer is simply ignored. Typically, this is worked around by having
Shibboleth authorizer is simply ignored. Typically, this is worked around by having
Nginx serve an suitable page instead; for instance::
Nginx serve an suitable page instead; for instance::
location /secure {
location /secure {
shib_request /shibauthorizer;
shib_request /shibauthorizer;
error_page 403 /shibboleth-forbidden.html;
error_page 403 /shibboleth-forbidden.html;
...
...
}
}
would serve the given page if the Shibboleth authorizer denies the user access
would serve the given page if the Shibboleth authorizer denies the user access
to this location. Without ``error_page`` specified, Nginx will serve its generic
to this location. Without ``error_page`` specified, Nginx will serve its generic
error pages.
error pages.
Note that this does *not* apply to the Shibboleth responder (typically hosted at
Note that this does *not* apply to the Shibboleth responder (typically hosted at
``Shibboleth.sso``) as it is a FastCGI responder and Nginx is fully compatible
``Shibboleth.sso``) as it is a FastCGI responder and Nginx is fully compatible
with this as no subrequests are used.
with this as no subrequests are used.
See http://forum.nginx.org/read.php?2,238444,238453.
See http://forum.nginx.org/read.php?2,238444,238453.
Tests
-----
Tests are automatically run on Travis CI whenever new commits are made to the
repository or when new pull requests are opened. If something breaks, you'll
be informed by Travis and the results will be reported on GitHub.
Tests are written using a combination of a simple Bash script in `.travis.yml`
for compilation of different versions of Nginx with our module, and also the
`Test::Nginx <https://metacpan.org/pod/Test::Nginx::Socket>`_ Perl test
scaffolding for integration testing with this module. Consult the previous
link for information on how to extend the tests, and also refer to the
underlying `Test::Base
<https://metacpan.org/pod/Test::Base#blocks-data-section-name>`_ documentation
on aspects like the `blocks()` function.
Integration tests are run automatically with Travis CI but
also be run manually (requires Perl & CPAN to be installed)::
cd nginx-shibboleth-auth
cpan -fi Test::Nginx::Socket
# nginx must be present in path and built with debugging symbols
prove
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