docs(cv): publish qualified acceptance and import handoff

This commit is contained in:
cesnimda
2026-10-26 10:37:31 +01:00
parent b1817aa52c
commit 4a0af6273b
10 changed files with 272 additions and 39 deletions
+8 -1
View File
@@ -135,6 +135,8 @@ class LifecycleTests(unittest.TestCase):
if args[:2] == ['docker', 'inspect'] and args[-1] == DB:
return json.dumps([database()])
if args[:2] == ['docker', 'inspect']:
if '{{json .NetworkSettings.Ports}}' in args:
return json.dumps({'8080/tcp': [] if failure == 'port' else [{'HostIp': '127.0.0.1', 'HostPort': '5302'}]})
return IMAGE
if '--entrypoint' in args and args[args.index('--entrypoint') + 1] == 'sha256sum':
return 'f' * 64 + ' ' + runner.APP + '/JobTrackerApi.dll'
@@ -191,11 +193,16 @@ class LifecycleTests(unittest.TestCase):
return calls
def test_success_records_positive_cleanup(self):
self.exercise()
calls = self.exercise()
network = next(args for args in calls if args[:3] == ['docker', 'network', 'create'])
self.assertNotIn('--internal', network)
def test_api_startup_failure_still_cleans_every_owned_resource(self):
self.exercise('startup')
def test_unpublished_api_port_fails_and_cleans_every_owned_resource(self):
self.exercise('port')
def test_log_failure_cannot_suppress_removal_or_pass(self):
self.exercise('log')