Record deployed Vergabe pilot chart and company sign-in evidence
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a092fe-13b1-7f12-ac74-7d258af4d79c
This commit is contained in:
parent
fd5e57bc99
commit
e8a7ff2547
13 changed files with 479 additions and 88 deletions
|
|
@ -59,6 +59,20 @@ class PilotChartTests(unittest.TestCase):
|
|||
self.assertEqual(claim['metadata']['annotations']['helm.sh/resource-policy'], 'keep')
|
||||
self.assertEqual(pod['securityContext']['fsGroup'], 999)
|
||||
|
||||
def test_migrations_finish_before_serving_with_same_identity_and_resource_request(self):
|
||||
values = pilot()
|
||||
values.update(migrations={'enabled': True}, resources={'requests': {'cpu': '60m'}})
|
||||
deployment = next(o for o in self.objects(values) if o['kind'] == 'Deployment')
|
||||
pod = deployment['spec']['template']['spec']
|
||||
init, app = pod['initContainers'][0], pod['containers'][0]
|
||||
self.assertEqual(init['command'], ['python', 'manage.py', 'migrate', '--noinput'])
|
||||
for key in ('image', 'envFrom', 'env', 'resources', 'securityContext'):
|
||||
self.assertEqual(init[key], app[key])
|
||||
self.assertEqual(init['resources']['requests']['cpu'], '60m')
|
||||
self.assertFalse(pod['automountServiceAccountToken'])
|
||||
legacy = next(o for o in self.objects(pilot()) if o['kind'] == 'Deployment')
|
||||
self.assertNotIn('initContainers', legacy['spec']['template']['spec'])
|
||||
|
||||
def test_pilot_refuses_each_ephemeral_store(self):
|
||||
for store in ('media', 'appState'):
|
||||
with self.subTest(store=store):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue