Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos
Commits
d9b411da
Commit
d9b411da
authored
Nov 06, 2024
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
theia: test resiliency of a non ascii only filename
parent
2e5c7422
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
software/theia/test/test_resiliency.py
software/theia/test/test_resiliency.py
+10
-0
No files found.
software/theia/test/test_resiliency.py
View file @
d9b411da
...
...
@@ -50,6 +50,7 @@ from test import TheiaTestCase, ResilientTheiaMixin, theia_software_release_url
dummy_software_url
=
os
.
path
.
abspath
(
os
.
path
.
join
(
'resilience_dummy'
,
'software.cfg'
))
non_ascii_only_filename
=
' 🙊
\
t
nonascii
\
n
$
\
r
é '
class
WorkaroundSnapshotConflict
(
TheiaTestCase
):
...
...
@@ -387,6 +388,11 @@ class TestTheiaExportAndImport(ResilienceMixin, ExportAndImportMixin, ResilientT
# Check that dummy instance was properly deployed
self
.
initial_log
=
self
.
checkLog
(
os
.
path
.
join
(
dummy_root
,
'log.log'
))
# Create a non ascii filename, to ensure signature correctly handles it
self
.
writeFile
(
os
.
path
.
join
(
self
.
getPartitionPath
(
'export'
,
'srv'
,
'project'
),
non_ascii_only_filename
),
'This file should be included in resilient backup'
)
# Create ~/include and ~/include/included
self
.
writeFile
(
os
.
path
.
join
(
dummy_root
,
'include'
,
'included'
),
'This file should be included in resilient backup'
)
...
...
@@ -428,6 +434,10 @@ class TestTheiaExportAndImport(ResilienceMixin, ExportAndImportMixin, ResilientT
# Check that the dummy instance is not yet started
self
.
checkLog
(
os
.
path
.
join
(
dummy_root
,
'log.log'
),
self
.
initial_log
,
newline
=
None
)
# Check that the non ascii filename has been correctly propagated
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
getPartitionPath
(
'import'
,
'srv'
,
'project'
),
non_ascii_only_filename
))
# Check that ~/srv/.backup_identity_script was detected and called
signature
=
self
.
getPartitionPath
(
'import'
,
'srv'
,
'backup'
,
'theia'
,
'slappart0.backup.signature.custom'
)
...
...
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