Keep Mongo operations online across Vault credential rotation
This commit is contained in:
1 parent
80d6917aa7
commit
23f7b78c3b
30 files changed
+1290
-202
No files matched your search
@@ -4,6 +4,7 @@ import tempfile
|
||||
import unittest
|
||||
from unittest.mock import patch
|
||||
|
||||
import agents
|
||||
import bootstrap
|
||||
import images
|
||||
from vault import Vault
|
||||
@@ -33,6 +34,14 @@ class Releases(unittest.TestCase):
|
||||
self.assertEqual(target.read_text(), 'previous build')
|
||||
|
||||
|
||||
class AgentContract(unittest.TestCase):
|
||||
def test_database_lease_does_not_trigger_process_restart(self):
|
||||
for service in ['bff', 'notifications']:
|
||||
config = agents.config(service)
|
||||
self.assertNotIn('database/creds/', config)
|
||||
self.assertNotIn('SXCHNGE_MONGO_URI', config)
|
||||
|
||||
|
||||
class Bootstrap(unittest.TestCase):
|
||||
def test_missing_resend_credentials_stops_before_product_start(self):
|
||||
with tempfile.TemporaryDirectory() as temporary:
|
||||
|
||||
Reference in new issue
Block a user