Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastien Robin
erp5
Commits
7a39c02e
Commit
7a39c02e
authored
Dec 07, 2021
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_openid_connect_client_login: Remove unused test
parent
d3d4df63
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
17 deletions
+1
-17
bt5/erp5_openid_connect_client_login/TestTemplateItem/portal_components/test.erp5.testOpenIdConnectLogin.py
...tem/portal_components/test.erp5.testOpenIdConnectLogin.py
+0
-14
bt5/erp5_openid_connect_client_login/TestTemplateItem/portal_components/test.erp5.testOpenIdConnectLogin.xml
...em/portal_components/test.erp5.testOpenIdConnectLogin.xml
+1
-3
No files found.
bt5/erp5_openid_connect_client_login/TestTemplateItem/portal_components/test.erp5.testOpenIdConnectLogin.py
View file @
7a39c02e
...
...
@@ -290,20 +290,6 @@ return credential_request
oidc_login
=
person
.
objectValues
(
portal_types
=
"OpenId Connect Login"
)[
0
]
self
.
assertEqual
(
getUserId
(
None
),
oidc_login
.
getReference
())
def
test_redirect
(
self
):
"""
Check URL generate to redirect to OpenId Connect
"""
return
"EXpected Failure"
self
.
logout
()
self
.
portal
.
ERP5Site_redirectToOpenIdLoginPage
()
location
=
self
.
portal
.
REQUEST
.
RESPONSE
.
getHeader
(
"Location"
)
self
.
assertIn
(
URL_STRING
,
location
)
self
.
assertIn
(
"response_type=code"
,
location
)
self
.
assertIn
(
"client_id=%s"
%
CLIENT_ID
,
location
)
self
.
assertNotIn
(
"secret_key="
,
location
)
self
.
assertIn
(
"https://testdomain.erp5.net/hateoas/connection/oid_auth"
,
location
)
class
TestERP5JSOpenIdConnectLogin
(
OpenIdConnectLoginTestCase
):
def
_getWebSite
(
self
):
...
...
bt5/erp5_openid_connect_client_login/TestTemplateItem/portal_components/test.erp5.testOpenIdConnectLogin.xml
View file @
7a39c02e
...
...
@@ -51,9 +51,7 @@
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple>
<string>
W:298, 4: Unreachable code (unreachable)
</string>
</tuple>
<tuple/>
</value>
</item>
<item>
...
...
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