tests: fix multiarch-workflow test syntax slip
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
This commit is contained in:
1 parent
b0c8ec9683
commit
4e86a99eb1
1 file changed
+1
-1
@@ -417,12 +417,12 @@ class AttachWorkflow(unittest.TestCase):
|
|||||||
self.assertNotIn('linux/amd64', st)
|
self.assertNotIn('linux/amd64', st)
|
||||||
self.assertNotIn('Build amd64', self.job)
|
self.assertNotIn('Build amd64', self.job)
|
||||||
|
|
||||||
|
def test_nothing_but_the_script_writes_a_tag(self):
|
||||||
for bad in ('imagetools create', 'docker push', 'docker tag', '/cac:latest', '/cac-fpm:latest', 'ghcr.io'):
|
for bad in ('imagetools create', 'docker push', 'docker tag', '/cac:latest', '/cac-fpm:latest', 'ghcr.io'):
|
||||||
self.assertNotIn(bad, self.job, bad)
|
self.assertNotIn(bad, self.job, bad)
|
||||||
self.assertEqual(self.job.count('docker buildx build'), 1) # only the local PHP-version probe
|
self.assertEqual(self.job.count('docker buildx build'), 1) # only the local PHP-version probe
|
||||||
self.assertIn('type=local,dest=', self.job)
|
self.assertIn('type=local,dest=', self.job)
|
||||||
self.assertNotIn('--push', self.job)
|
self.assertNotIn('--push', self.job)
|
||||||
self.assertNotIn(bad, self.job, bad)
|
|
||||||
self.assertEqual(self.job.count('scripts/attach-arm64-index.sh'), 2) # plan (read-only) + attach
|
self.assertEqual(self.job.count('scripts/attach-arm64-index.sh'), 2) # plan (read-only) + attach
|
||||||
self.assertIn('--plan-only', step(self.job, 'Plan'))
|
self.assertIn('--plan-only', step(self.job, 'Plan'))
|
||||||
self.assertNotIn('--arm64', step(self.job, 'Plan'))
|
self.assertNotIn('--arm64', step(self.job, 'Plan'))
|
||||||
|
|||||||
Reference in new issue
Block a user