fix(export): require HTTPS Google endpoint
This commit is contained in:
1 parent
1979583550
commit
af5c047e27
5 files changed
+15
-2
No files matched your search
@@ -93,6 +93,15 @@ class ApplicationTests(unittest.TestCase):
|
||||
self.assertEqual(exporter.sync_pending(), 0)
|
||||
self.assertEqual(len(store.pending_exports()), 2)
|
||||
|
||||
def test_google_export_refuses_an_insecure_endpoint_even_when_enabled(self) -> None:
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
store = ApplicationStore(sqlite_path=Path(directory) / "applications.sqlite3")
|
||||
exporter = GoogleSheetsExportService(
|
||||
store, GoogleSheetsExportConfig(enabled=True, url="http://example.test/export", token="secret"),
|
||||
)
|
||||
self.assertFalse(exporter.config.ready)
|
||||
self.assertEqual(exporter.sync_pending(), 0)
|
||||
|
||||
def test_vk_kitten_application_uses_profile_and_saves(self) -> None:
|
||||
with tempfile.TemporaryDirectory() as directory:
|
||||
store = ApplicationStore(sqlite_path=Path(directory) / "applications.sqlite3")
|
||||
|
||||
Reference in new issue
Block a user