mirror of
https://github.com/getsentry/self-hosted.git
synced 2026-01-18 15:12:42 +00:00
Mount a certificate folder to local ca storage in containers, and add update command to cron image's entrypoint. Result of poking and prodding from getsentry/sentry#26851
16 lines
381 B
Python
16 lines
381 B
Python
import unittest
|
|
import requests
|
|
|
|
|
|
class CustomCATests(unittest.TestCase):
|
|
def test_valid_self_signed(self):
|
|
self.assertEqual(requests.get("https://self.test").text, 'ok')
|
|
|
|
def test_invalid_self_signed(self):
|
|
with self.assertRaises(requests.exceptions.SSLError):
|
|
requests.get("https://fail.test")
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|