Commit 1038d441 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

tests: specify svn.erp5.org certificate file.

python 2.7.9 validates certificates by default.
parent b9955bfa
master allow_login_change allow_login_change_differentiate_id_and_login allow_login_change_wip arnau arnau-fec arnau-kns arnau-kns-without-property-mapping arnau-real-time-inventory-accounting auto_extend_select_list auto_play autoflake bk_erp5ish_actions_tool bk_sqlcatalog bt5_config callable-jupyter-storage cedriclen-eos cherry-pick-243c2f03 cherry-pick-4a8e045d cleanup/zsql_method_arguments_backslash_n cleanup_acquisition_base_category clickable_progress_bar compact_title_no_reference datetimefield delivery_item_barcode douglas_forum dropbox-config dsn-phase3 eos-dev erp5-component erp5-data-notebook erp5-forum erp5-preference erp5-vifib erp5-vifib-cleanup erp5_catalog erp5_catalog_final erp5_free_subscription erp5_workflow erp5testnode_max_timeout experiment/coding_style_test_suite feat/accounting_stop_using_getObject feat/accounting_translate_gap feat/delete_on_category_workflow feat/longer_language_cookie feat/new_test_template_suggest_bad_coding_practice feat/olapy feat/pdm_content_translation feat/publication_workflow_transitions feat/remove_owner_role_permissions_on_document_workflow feat/test_inventory_api_domain_selection feat/trade_shipment_report feat/wendelin-py-data feature/accounting-reports-stats feature/jio-accounting-reports feature/json-allows-all-jio-actions feature/renderjs-matrixbox feature/renderjs-ui-no-header feature/rjs-listbox-stats feature/rjs-print-action fix/bank_reconciliation_with_internal_transaction fix/consistency_check_alarm fix/edit_activity_pending_error fix/full_text_script_conflict fix/generate_source_reference_after_ptg_clone fix/login_validate_check_consistency fix/multiple_small_fixes_to_zodb_history_tab fix/notification_message_references for_testrunner_1 for_testrunner_2 for_testrunner_3 gadget-json-value heads/fix/notification_tool_unauthorized hotfix/callable_tool hotfix/field-keeps-request hotfix/jio_view hotfix/pdm-test hotfix/rjs-editability hotfix/rjs-form-less-invasive hotfix/rjs-listbox-mutex improve_default_caching_policy_manager initsite isDeletable item_tracking_graph_editor jerome_user_preference_time_zone jm/form-action-guard joblib-activity kns kns-kr maste_copy master_calendar_wip_patches master_calendar_wip_patches_extend_security master_no_guard_on_workflow_transition master_no_guard_on_workflow_transition_plus_calendar_wip_patchs merge monitoring monitoring-graph musicplayer nexedi-erp5-jp no_longer_simulated_state officejs officejs_clean officejs_zip ojs_wip portal_callables portal_solver_process_security_configuration random_play refactor/base_edit refactor/renderjs reindex_calendar_after_change_calendar_exception reusable_gadgets reverse_logistics revert-38554dbe rewrite_test_21_AcquiredPortalType scalability-roque scalability-roque-2 shop-box sms_more_than_140_characters strict_catalog sws_fix taskdistribution-xmlrpc-binary testnode_software_link timezones tmp/getInstalledBusinessTemplate_never_installed_bt tristan tristan-merge view-aggregated-amounts vivekpab_erp5webrenderjs_layoutconfig vivekpab_jabberclient vivekpab_renderjs_interfaces test-ui test-rjsacc test-rjs renderjs-test erp5.util-0.4.49 erp5.util-0.4.46 erp5.util-0.4.44 erp5.util-0.4.43
No related merge requests found
-----BEGIN CERTIFICATE-----
MIIEAzCCA2ygAwIBAgIJAMrO5Fn3rjFgMA0GCSqGSIb3DQEBBQUAMIGYMQswCQYD
VQQGEwJGUjEbMBkGA1UECBMSTm9yZCBQYXMgZGUgQ2FsYWlzMRkwFwYDVQQHExBN
YXJjcSBlbiBCYXJvZXVsMRIwEAYDVQQKEwlOZXhlZGkgU0ExGDAWBgNVBAMTD21h
aWwubmV4ZWRpLmNvbTEjMCEGCSqGSIb3DQEJARYUd2VibWFzdGVyQG5leGVkaS5j
b20wHhcNMDgwNTIyMTM0MzAxWhcNMTgwNTIwMTM0MzAxWjCBmDELMAkGA1UEBhMC
RlIxGzAZBgNVBAgTEk5vcmQgUGFzIGRlIENhbGFpczEZMBcGA1UEBxMQTWFyY3Eg
ZW4gQmFyb2V1bDESMBAGA1UEChMJTmV4ZWRpIFNBMRgwFgYDVQQDEw9tYWlsLm5l
eGVkaS5jb20xIzAhBgkqhkiG9w0BCQEWFHdlYm1hc3RlckBuZXhlZGkuY29tMIGf
MA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDorxW0h825nM0JlhqcqZFIY814cYQw
LRm2n3Lz1yYhO6dyHE4eBZAEu80/NcXUajNmbXuNqq6VzmH9hrbDY/2UPydp1KYu
wuwkdmpI1cLx7YHMlGe2L+0uJCc1d3nMMV7ga16a1G/X9ajed2y3/QjZe6Bf7d9o
o2aqx+uy7bOCYwIDAQABo4IBUTCCAU0wHQYDVR0OBBYEFFeJwgjNclT+IM9/tRgs
CJWlFgf0MIHNBgNVHSMEgcUwgcKAFFeJwgjNclT+IM9/tRgsCJWlFgf0oYGepIGb
MIGYMQswCQYDVQQGEwJGUjEbMBkGA1UECBMSTm9yZCBQYXMgZGUgQ2FsYWlzMRkw
FwYDVQQHExBNYXJjcSBlbiBCYXJvZXVsMRIwEAYDVQQKEwlOZXhlZGkgU0ExGDAW
BgNVBAMTD21haWwubmV4ZWRpLmNvbTEjMCEGCSqGSIb3DQEJARYUd2VibWFzdGVy
QG5leGVkaS5jb22CCQDKzuRZ964xYDAMBgNVHRMEBTADAQH/ME4GA1UdEQRHMEWC
FHJvdW5kY3ViZS5uZXhlZGkuY29tgg5pbXAubmV4ZWRpLm9yZ4IMc3ZuLmVycDUu
b3Jngg9jaGF0Lm5leGVkaS5jb20wDQYJKoZIhvcNAQEFBQADgYEAUAfUIoDP402k
tEA1gpIh2sA+fapHJXXgm0j6Km07L3SNVP/3C5W7dI8KOCzRmLkb6O9unzz+ORar
Ao4LfsAdwcta3vSd5berori7WUMeigY6ZdAaHbbxDAHJ/+dSnd2rlcRHdiFm8SJm
D4nmpPp2u/So0/VLP2zGlsAz+vAK/BM=
-----END CERTIFICATE-----
......@@ -42,6 +42,19 @@ from Products.ERP5.Tool.TemplateTool import BusinessTemplateUnknownError
from Products.ERP5Type.tests.ERP5TypeTestCase import ERP5TypeTestCase
# Specify svn.erp5.org certificate file.
import ssl
_create_default_https_context_orig = ssl._create_default_https_context
def _create_default_https_context(purpose=ssl.Purpose.SERVER_AUTH, cafile=None,
capath=None, cadata=None):
return _create_default_https_context_orig(
purpose,
cafile=os.path.join(os.path.dirname(__file__), 'svn.erp5.org.cert'),
capath=capath,
cadata=cadata,
)
ssl._create_default_https_context = _create_default_https_context
class TestTemplateTool(ERP5TypeTestCase):
"""
Test the template tool
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment