23 lines
752 B
Python
23 lines
752 B
Python
import pathlib
|
|
import unittest
|
|
|
|
ROOT = pathlib.Path(__file__).parents[1]
|
|
|
|
|
|
class ArtifactTests(unittest.TestCase):
|
|
def test_required_artifacts_exist(self):
|
|
for path in ["requirements.yaml", "architecture.mmd", "architecture.md", "workflow.yaml", "solution-architecture-guide.md"]:
|
|
self.assertTrue((ROOT / path).is_file(), path)
|
|
|
|
def test_product_selection_is_deferred_in_discovery_record(self):
|
|
text = (ROOT / "requirements.yaml").read_text()
|
|
self.assertIn("product_selection_deferred: true", text)
|
|
|
|
def test_terraform_has_no_apply_command(self):
|
|
text = (ROOT / "scripts/validate.sh").read_text()
|
|
self.assertNotIn("terraform apply", text)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|