Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
5badf57f
Commit
5badf57f
authored
Oct 10, 2019
by
James Edwards-Jones
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configurable SAML fingerprint in e2e tests
parent
2b607f09
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
qa/qa/ee/runtime/env.rb
qa/qa/ee/runtime/env.rb
+4
-0
qa/qa/ee/runtime/saml.rb
qa/qa/ee/runtime/saml.rb
+15
-2
No files found.
qa/qa/ee/runtime/env.rb
View file @
5badf57f
...
@@ -16,6 +16,10 @@ module QA
...
@@ -16,6 +16,10 @@ module QA
def
simple_saml_hostname
def
simple_saml_hostname
ENV
[
'SIMPLE_SAML_HOSTNAME'
]
ENV
[
'SIMPLE_SAML_HOSTNAME'
]
end
end
def
simple_saml_fingerprint
ENV
[
'SIMPLE_SAML_FINGERPRINT'
]
end
end
end
end
end
end
end
...
...
qa/qa/ee/runtime/saml.rb
View file @
5badf57f
...
@@ -3,12 +3,25 @@ module QA
...
@@ -3,12 +3,25 @@ module QA
module
EE
module
EE
module
Runtime
module
Runtime
module
Saml
module
Saml
def
self
.
idp_base_url
host
=
QA
::
Runtime
::
Env
.
simple_saml_hostname
||
'localhost'
"https://
#{
host
}
:8443/simplesaml/saml2/idp"
end
def
self
.
idp_sso_url
def
self
.
idp_sso_url
"https://
#{
QA
::
Runtime
::
Env
.
simple_saml_hostname
||
'localhost'
}
:8443/simplesaml/saml2/idp/SSOService.php"
"
#{
idp_base_url
}
/SSOService.php"
end
def
self
.
idp_metadata_url
"
#{
idp_base_url
}
/metadata.php"
end
def
self
.
idp_issuer
idp_metadata_url
end
end
def
self
.
idp_certificate_fingerprint
def
self
.
idp_certificate_fingerprint
'119b9e027959cdb7c662cfd075d9e2ef384e445f'
QA
::
Runtime
::
Env
.
simple_saml_fingerprint
||
'119b9e027959cdb7c662cfd075d9e2ef384e445f'
end
end
end
end
end
end
...
...
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