Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Rafael Monnerat
slapos.core
Commits
a070a805
Commit
a070a805
authored
Jan 30, 2025
by
Rafael Monnerat
👻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_cloud (test only): Email should be ascii compatible, according to RFC
parent
d48a6a67
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.SlapOSTestCaseDefaultScenarioMixin.py
...omponents/test.erp5.SlapOSTestCaseDefaultScenarioMixin.py
+4
-1
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.SlapOSTestCaseMixin.py
...teItem/portal_components/test.erp5.SlapOSTestCaseMixin.py
+9
-1
No files found.
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.SlapOSTestCaseDefaultScenarioMixin.py
View file @
a070a805
...
...
@@ -108,7 +108,10 @@ class DefaultScenarioMixin(TestSlapOSSecurityMixin):
self
.
assertTrue
(
expected_message
in
credential_request_form
,
'%s not in %s'
%
(
expected_message
,
credential_request_form
))
email
=
'%s@example.com'
%
reference
# According to email address RFC you should be 'ascii' compatible
# for email specificiations.
# reference: https://en.wikipedia.org/wiki/Email_address#Local-part
email
=
'joe%s@example.com'
%
self
.
generateNewAsciiId
()
redirect_url
=
self
.
web_site
.
slapos_master_panel
.
hateoas
.
connection
.
WebSection_newCredentialRequest
(
reference
=
reference
,
...
...
master/bt5/slapos_cloud/TestTemplateItem/portal_components/test.erp5.SlapOSTestCaseMixin.py
View file @
a070a805
...
...
@@ -275,7 +275,11 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
person_user
.
edit
(
title
=
"live_test_%s"
%
new_id
,
reference
=
"live_test_%s"
%
new_id
,
default_email_text
=
"live_test_%s@example.org"
%
new_id
,
# According to email address RFC you should be 'ascii' compatible
# for email specificiations.
# reference: https://en.wikipedia.org/wiki/Email_address#Local-part
default_email_text
=
"live_test_%s@example.org"
%
\
self
.
generateNewAsciiId
(),
)
person_user
.
validate
()
...
...
@@ -1044,6 +1048,10 @@ class SlapOSTestCaseMixin(testSlapOSMixin):
self
.
portal
.
REQUEST
[
'request_instance'
]
=
None
self
.
portal
.
REQUEST
.
headers
=
{}
def
generateNewAsciiId
(
self
):
return
"%s"
%
self
.
portal
.
portal_ids
.
generateNewId
(
id_group
=
(
'slapos_core_test'
))
def
generateNewId
(
self
):
return
"%sö"
%
self
.
portal
.
portal_ids
.
generateNewId
(
id_group
=
(
'slapos_core_test'
))
...
...
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