Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
ngx_http_voms_module
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
cnafsd
ngx_http_voms_module
Commits
d5bee32b
Commit
d5bee32b
authored
2 years ago
by
lcappelli
Browse files
Options
Downloads
Patches
Plain Diff
Remove echo module from two tests
parent
fff9b210
No related branches found
Branches containing commit
No related tags found
1 merge request
!23
Use nginx with njs instead of openresty with lua
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
t/untrusted_ac1.t
+1
-37
1 addition, 37 deletions
t/untrusted_ac1.t
t/untrusted_ac2.t
+2
-38
2 additions, 38 deletions
t/untrusted_ac2.t
with
3 additions
and
75 deletions
t/untrusted_ac1.t
+
1
−
37
View file @
d5bee32b
...
...
@@ -10,7 +10,6 @@ __DATA__
env X509_VOMS_DIR=t/vomsdir;
env X509_CERT_DIR=t/trust-anchors;
load_module /etc/nginx/modules/ngx_http_voms_module.so;
load_module /etc/nginx/modules/ngx_http_echo_module.so;
--- http_config
server {
error_log logs/error.log debug;
...
...
@@ -22,7 +21,7 @@ __DATA__
ssl_verify_client on;
location = / {
default_type text/plain;
echo
$voms_user;
return 200 "
$voms_user
\n"
;
}
}
--- config
...
...
@@ -39,38 +38,3 @@ qr/\n/
--- error_log
Cannot verify AC signature
--- error_code: 200
=== TEST 2: Valid proxy, VOMS trust-anchor missing
--- main_config
env X509_VOMS_DIR=t/vomsdir;
env X509_CERT_DIR=t;
load_module /etc/nginx/modules/ngx_http_voms_module.so;
load_module /etc/nginx/modules/ngx_http_echo_module.so;
--- http_config
server {
error_log logs/error.log debug;
listen 8443 ssl;
ssl_certificate ../../certs/nginx_voms_example.cert.pem;
ssl_certificate_key ../../certs/nginx_voms_example.key.pem;
ssl_client_certificate ../../trust-anchors/igi-test-ca.pem;
ssl_verify_depth 10;
ssl_verify_client on;
location = / {
default_type text/plain;
echo $voms_fqans;
}
}
--- config
location = / {
proxy_pass https://localhost:8443/;
proxy_ssl_certificate ../../certs/3.cert.pem;
proxy_ssl_certificate_key ../../certs/3.key.pem;
}
--- request
GET /
--- response_body_like eval
qr/\n/
--- error_log
Cannot verify AC signature
--- error_code: 200
This diff is collapsed.
Click to expand it.
t/untrusted_ac2.t
+
2
−
38
View file @
d5bee32b
...
...
@@ -5,47 +5,11 @@ run_tests();
__DATA__
=== TEST 1: https with x509 client authentication, untrusted AC signature LSC missing
--- main_config
env X509_VOMS_DIR=t/vomsdir;
env X509_CERT_DIR=t/trust-anchors;
load_module /etc/nginx/modules/ngx_http_voms_module.so;
load_module /etc/nginx/modules/ngx_http_echo_module.so;
--- http_config
server {
error_log logs/error.log debug;
listen 8443 ssl;
ssl_certificate ../../certs/nginx_voms_example.cert.pem;
ssl_certificate_key ../../certs/nginx_voms_example.key.pem;
ssl_client_certificate ../../trust-anchors/igi-test-ca.pem;
ssl_verify_depth 10;
ssl_verify_client on;
location = / {
default_type text/plain;
echo $voms_user;
}
}
--- config
location = / {
error_log logs/error-proxy.log debug;
proxy_pass https://localhost:8443/;
proxy_ssl_certificate ../../certs/5.cert.pem;
proxy_ssl_certificate_key ../../certs/5.key.pem;
}
--- request
GET /
--- response_body_like eval
qr/\n/
--- error_log
Cannot verify AC signature
--- error_code: 200
=== TEST 2: Valid proxy, VOMS trust-anchor missing
=== TEST 1: Valid proxy, VOMS trust-anchor missing
--- main_config
env X509_VOMS_DIR=t/vomsdir;
env X509_CERT_DIR=t;
load_module /etc/nginx/modules/ngx_http_voms_module.so;
load_module /etc/nginx/modules/ngx_http_echo_module.so;
--- http_config
server {
error_log logs/error.log debug;
...
...
@@ -57,7 +21,7 @@ Cannot verify AC signature
ssl_verify_client on;
location = / {
default_type text/plain;
echo
$voms_fqans;
return 200 "
$voms_fqans
\n"
;
}
}
--- config
...
...
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