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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Aurel
slapos
Commits
628ab522
Commit
628ab522
authored
Jan 23, 2017
by
Tristan Cavelier
Committed by
Rafael Monnerat
Jan 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
recipe/generic_cloudooo: set OnlyOffice entries + test
parent
95e7f907
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
0 deletions
+22
-0
slapos/recipe/generic_cloudooo/__init__.py
slapos/recipe/generic_cloudooo/__init__.py
+6
-0
slapos/test/recipe/test_generic_cloudooo.py
slapos/test/recipe/test_generic_cloudooo.py
+16
-0
No files found.
slapos/recipe/generic_cloudooo/__init__.py
View file @
628ab522
...
...
@@ -70,6 +70,12 @@ default_mimetype_entry_list = [
"application/emf * ooo"
,
"application/octet* * ooo"
,
"* application/vnd.oasis.opendocument* ooo"
,
"application/vnd.openxmlformats-officedocument.wordprocessingml.document application/x-asc-text x2t"
,
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet application/x-asc-spreadsheet x2t"
,
"application/vnd.openxmlformats-officedocument.presentationml.presentation application/x-asc-presentation x2t"
,
"application/x-asc-text application/vnd.openxmlformats-officedocument.wordprocessingml.document x2t"
,
"application/x-asc-spreadsheet application/vnd.openxmlformats-officedocument.spreadsheetml.sheet x2t"
,
"application/x-asc-presentation application/vnd.openxmlformats-officedocument.presentationml.presentation x2t"
,
]
class
Recipe
(
GenericBaseRecipe
):
...
...
slapos/test/recipe/test_generic_cloudooo.py
View file @
628ab522
...
...
@@ -58,3 +58,19 @@ class TestGenericCloudooo(unittest.TestCase):
# Check if mimetype_registry is well ordered
self
.
assertIn
(
"
\
n
text/install mimetype/entry addition
\
n
text/* * ooo
\
n
"
,
data
)
# Check OnlyOffice entries
self
.
assertIn
(
"
\
n
"
.
join
([
""
,
" application/vnd.openxmlformats-officedocument.presentationml.presentation application/x-asc-presentation x2t"
,
" application/vnd.openxmlformats-officedocument.spreadsheetml.sheet application/x-asc-spreadsheet x2t"
,
" application/vnd.openxmlformats-officedocument.wordprocessingml.document application/x-asc-text x2t"
,
""
,
]),
data
)
self
.
assertIn
(
"
\
n
"
.
join
([
""
,
" application/x-asc-presentation application/vnd.openxmlformats-officedocument.presentationml.presentation x2t"
,
" application/x-asc-spreadsheet application/vnd.openxmlformats-officedocument.spreadsheetml.sheet x2t"
,
" application/x-asc-text application/vnd.openxmlformats-officedocument.wordprocessingml.document x2t"
,
""
,
]),
data
)
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