Poller: final review fixes (no secret in the image, Storage's real error read, non-http attachment skipped, failing conversation named, duplicate message saved once)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d80b6face8
commit
b9dddaf221
8 files changed
+121
-34
No files matched your search
@@ -21,6 +21,14 @@ class TestGuardPoller(unittest.TestCase):
|
||||
with self.assertRaises(ValueError):
|
||||
Supabase("http://x", "k")._request("POST", "/api/v1/conversations", b"")
|
||||
|
||||
def test_secrets_never_in_the_image(self): # the build context is the repository root
|
||||
ignored = (ROOT / ".dockerignore").read_text().split()
|
||||
self.assertIn("**/.env", ignored)
|
||||
self.assertIn(".git", ignored)
|
||||
|
||||
def test_db_password_not_in_the_container_env(self): # poller/.env is the container's env_file
|
||||
self.assertIsNone(re.search(r"DB_PASSWORD[^\n]*>> poller/\.env", (ROOT / "docs" / "production.md").read_text()))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main()
|
||||
Reference in new issue
Block a user