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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
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
Hide 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
...
@@ -5,6 +5,7 @@ from StringIO import StringIO
import
zipfile
import
zipfile
import
httplib
import
httplib
import
urlparse
import
urlparse
import
ssl
class
LocalStringIO
(
StringIO
):
class
LocalStringIO
(
StringIO
):
...
@@ -116,7 +117,10 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
...
@@ -116,7 +117,10 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
api_scheme
,
api_netloc
,
api_path
,
api_query
,
\
api_scheme
,
api_netloc
,
api_path
,
api_query
,
\
api_fragment
=
urlparse
.
urlsplit
(
self
.
portal
.
absolute_url
())
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
(
connection
.
request
(
method
=
'GET'
,
method
=
'GET'
,
...
@@ -230,7 +234,10 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
...
@@ -230,7 +234,10 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
api_scheme
,
api_netloc
,
api_path
,
api_query
,
\
api_scheme
,
api_netloc
,
api_path
,
api_query
,
\
api_fragment
=
urlparse
.
urlsplit
(
self
.
portal
.
absolute_url
())
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
(
connection
.
request
(
method
=
'GET'
,
method
=
'GET'
,
...
...
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenario.xml
View file @
2b713eab
...
@@ -45,7 +45,11 @@
...
@@ -45,7 +45,11 @@
<item>
<item>
<key>
<string>
text_content_warning_message
</string>
</key>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<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>
</value>
</item>
</item>
<item>
<item>
...
...
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenarioRjsUI.py
View file @
2b713eab
...
@@ -5,6 +5,7 @@ from StringIO import StringIO
...
@@ -5,6 +5,7 @@ from StringIO import StringIO
import
zipfile
import
zipfile
import
httplib
import
httplib
import
urlparse
import
urlparse
import
ssl
class
LocalStringIO
(
StringIO
):
class
LocalStringIO
(
StringIO
):
...
@@ -105,7 +106,10 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
...
@@ -105,7 +106,10 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
api_scheme
,
api_netloc
,
api_path
,
api_query
,
\
api_scheme
,
api_netloc
,
api_path
,
api_query
,
\
api_fragment
=
urlparse
.
urlsplit
(
self
.
portal
.
absolute_url
())
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
(
connection
.
request
(
method
=
'GET'
,
method
=
'GET'
,
...
@@ -219,7 +223,10 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
...
@@ -219,7 +223,10 @@ class TestOfficeJSScenario(testOfficeJSAppstoreMixin):
api_scheme
,
api_netloc
,
api_path
,
api_query
,
\
api_scheme
,
api_netloc
,
api_path
,
api_query
,
\
api_fragment
=
urlparse
.
urlsplit
(
self
.
portal
.
absolute_url
())
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
(
connection
.
request
(
method
=
'GET'
,
method
=
'GET'
,
...
...
bt5/officejs_test/TestTemplateItem/portal_components/test.erp5.testOfficeJSScenarioRjsUI.xml
View file @
2b713eab
...
@@ -46,10 +46,9 @@
...
@@ -46,10 +46,9 @@
<key>
<string>
text_content_warning_message
</string>
</key>
<key>
<string>
text_content_warning_message
</string>
</key>
<value>
<value>
<tuple>
<tuple>
<string>
W:105, 28: Unused variable \'api_path\' (unused-variable)
</string>
<string>
W:106, 28: Unused variable \'api_path\' (unused-variable)
</string>
<string>
W:105, 38: Unused variable \'api_query\' (unused-variable)
</string>
<string>
W:106, 38: Unused variable \'api_query\' (unused-variable)
</string>
<string>
W:105, 4: Unused variable \'api_scheme\' (unused-variable)
</string>
<string>
W:107, 6: Unused variable \'api_fragment\' (unused-variable)
</string>
<string>
W:106, 6: Unused variable \'api_fragment\' (unused-variable)
</string>
</tuple>
</tuple>
</value>
</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