fix(release): admit exact reviewed publisher SEO repair paths
Deploy Canina / deploy (push) Failing after 9h30m37s
Deploy Canina / deploy (push) Failing after 9h30m37s
This commit is contained in:
1 parent
44d74d35e6
commit
b4420e54b7
2 files changed
+21
-1
No files matched your search
@@ -64,6 +64,21 @@ class ProductionGuards(unittest.TestCase):
|
||||
with self.assertRaises(ValueError):
|
||||
m.validate_receipt(r, 'a'*40, 'b'*40, [path])
|
||||
|
||||
def test_exact_publisher_seo_repair_paths_allowed_only(self):
|
||||
paths = ['frontend/application/app/blog/[slug]/page.tsx',
|
||||
'frontend/application/app/blog/[slug]/publisher-seo.test.tsx',
|
||||
'frontend/application/lib/blogAuthor.ts',
|
||||
'frontend/application/lib/blogAuthor.test.ts']
|
||||
r = self.receipt(); r['paths'] = paths
|
||||
m.validate_receipt(r, 'a'*40, 'b'*40, paths)
|
||||
for path in ['frontend/application/app/blog/[slug]/other.tsx',
|
||||
'frontend/application/lib/other.ts',
|
||||
'frontend/application/app/blog/page.tsx']:
|
||||
r['paths'] = [path]
|
||||
with self.assertRaises(ValueError):
|
||||
m.validate_receipt(r, 'a'*40, 'b'*40, [path])
|
||||
self.assertFalse(any('*' in path for path in m.ALLOWED))
|
||||
|
||||
def test_independent_typed_catalog_acceptance_required(self):
|
||||
r = self.receipt()
|
||||
r.pop('typed_catalog_acceptance', None)
|
||||
|
||||
Reference in new issue
Block a user