Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs-appstore
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
Romain Courteaud
officejs-appstore
Commits
2b713eab
Commit
2b713eab
authored
May 28, 2019
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[officejs_test] Allow to access HTTPS urls
parent
86a6f168
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
9 deletions
+26
-9
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenario.py
...eItem/portal_components/test.erp5.testOfficeJSScenario.py
+9
-2
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenario.xml
...Item/portal_components/test.erp5.testOfficeJSScenario.xml
+5
-1
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenarioRjsUI.py
.../portal_components/test.erp5.testOfficeJSScenarioRjsUI.py
+9
-2
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenarioRjsUI.xml
...portal_components/test.erp5.testOfficeJSScenarioRjsUI.xml
+3
-4
No files found.
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenario.py
View file @
2b713eab
...
...
@@ -5,6 +5,7 @@ from StringIO import StringIO
import
zipfile
import
httplib
import
urlparse
import
ssl
class
LocalStringIO
(
StringIO
):
...
...
@@ -116,7 +117,10 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
api_scheme
,
api_netloc
,
api_path
,
api_query
,
\
api_fragment
=
urlparse
.
urlsplit
(
self
.
portal
.
absolute_url
())
connection
=
httplib
.
HTTPConnection
(
api_netloc
)
if
(
api_scheme
==
'https'
):
connection
=
httplib
.
HTTPSConnection
(
api_netloc
,
context
=
ssl
.
_create_unverified_context
(),
timeout
=
10
)
else
:
connection
=
httplib
.
HTTPConnection
(
api_netloc
,
timeout
=
10
)
connection
.
request
(
method
=
'GET'
,
...
...
@@ -230,7 +234,10 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
api_scheme
,
api_netloc
,
api_path
,
api_query
,
\
api_fragment
=
urlparse
.
urlsplit
(
self
.
portal
.
absolute_url
())
connection
=
httplib
.
HTTPConnection
(
api_netloc
)
if
(
api_scheme
==
'https'
):
connection
=
httplib
.
HTTPSConnection
(
api_netloc
,
context
=
ssl
.
_create_unverified_context
(),
timeout
=
10
)
else
:
connection
=
httplib
.
HTTPConnection
(
api_netloc
,
timeout
=
10
)
connection
.
request
(
method
=
'GET'
,
...
...
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenario.xml
View file @
2b713eab
...
...
@@ -45,7 +45,11 @@
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple/>
<tuple>
<string>
W:117, 28: Unused variable \'api_path\' (unused-variable)
</string>
<string>
W:117, 38: Unused variable \'api_query\' (unused-variable)
</string>
<string>
W:118, 6: Unused variable \'api_fragment\' (unused-variable)
</string>
</tuple>
</value>
</item>
<item>
...
...
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenarioRjsUI.py
View file @
2b713eab
...
...
@@ -5,6 +5,7 @@ from StringIO import StringIO
import
zipfile
import
httplib
import
urlparse
import
ssl
class
LocalStringIO
(
StringIO
):
...
...
@@ -105,7 +106,10 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
api_scheme
,
api_netloc
,
api_path
,
api_query
,
\
api_fragment
=
urlparse
.
urlsplit
(
self
.
portal
.
absolute_url
())
connection
=
httplib
.
HTTPConnection
(
api_netloc
)
if
(
api_scheme
==
'https'
):
connection
=
httplib
.
HTTPSConnection
(
api_netloc
,
context
=
ssl
.
_create_unverified_context
(),
timeout
=
10
)
else
:
connection
=
httplib
.
HTTPConnection
(
api_netloc
,
timeout
=
10
)
connection
.
request
(
method
=
'GET'
,
...
...
@@ -219,7 +223,10 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
api_scheme
,
api_netloc
,
api_path
,
api_query
,
\
api_fragment
=
urlparse
.
urlsplit
(
self
.
portal
.
absolute_url
())
connection
=
httplib
.
HTTPConnection
(
api_netloc
)
if
(
api_scheme
==
'https'
):
connection
=
httplib
.
HTTPSConnection
(
api_netloc
,
context
=
ssl
.
_create_unverified_context
(),
timeout
=
10
)
else
:
connection
=
httplib
.
HTTPConnection
(
api_netloc
,
timeout
=
10
)
connection
.
request
(
method
=
'GET'
,
...
...
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenarioRjsUI.xml
View file @
2b713eab
...
...
@@ -46,10 +46,9 @@
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<tuple>
<string>
W:105, 28: Unused variable \'api_path\' (unused-variable)
</string>
<string>
W:105, 38: Unused variable \'api_query\' (unused-variable)
</string>
<string>
W:105, 4: Unused variable \'api_scheme\' (unused-variable)
</string>
<string>
W:106, 6: Unused variable \'api_fragment\' (unused-variable)
</string>
<string>
W:106, 28: Unused variable \'api_path\' (unused-variable)
</string>
<string>
W:106, 38: Unused variable \'api_query\' (unused-variable)
</string>
<string>
W:107, 6: Unused variable \'api_fragment\' (unused-variable)
</string>
</tuple>
</value>
</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