Authored-By: OpenAI (GPT-5) <noreply@openai.com>
This commit is contained in:
@@ -219,6 +219,17 @@ class ConfigContractTests(unittest.TestCase):
|
||||
with self.assertRaisesRegex(ConfigError, "build inputs overlap after resolution"):
|
||||
validate_artifact_inputs(root, cfg)
|
||||
|
||||
def test_descendant_symlink_cannot_cross_artifact_boundary(self):
|
||||
cfg = normalize_site_config(self.raw, "baseline.fritzlab.net")
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
root = Path(tmp)
|
||||
(root / "dist").mkdir()
|
||||
(root / "portal" / "build").mkdir(parents=True)
|
||||
(root / "portal" / "build" / "private.txt").write_text("private")
|
||||
(root / "dist" / "portal-link").symlink_to(root / "portal" / "build")
|
||||
with self.assertRaisesRegex(ConfigError, "build input contains symlink"):
|
||||
validate_artifact_inputs(root, cfg)
|
||||
|
||||
|
||||
class GenerationTests(unittest.TestCase):
|
||||
def render(self, raw):
|
||||
|
||||
Reference in New Issue
Block a user