mirror of
https://github.com/Sea-Haven-Industries/meal-order-manager.git
synced 2026-09-30 04:13:12 +00:00
* feat(menu): publish the weekly menu from the job worker Monday publish parses the catalog embedded in the Redefine menu page and runs on the Fargate worker, so the GitHub Actions scrape cron can go away. * fix(menu): address review feedback Use the form deadline in the Monday Slack post, and compare that message exactly so CodeQL does not treat the test as URL sanitization.
20 lines
762 B
Python
20 lines
762 B
Python
"""ECS task boundary stays a valid IAM document when Paychex is unset."""
|
|
|
|
from pathlib import Path
|
|
|
|
IAM = Path(__file__).resolve().parents[1] / "terraform" / "iam.tf"
|
|
|
|
|
|
def test_task_boundary_can_publish_the_order_form():
|
|
text = IAM.read_text()
|
|
assert 'sid = "FormObjects"' in text
|
|
assert "cloudfront:CreateInvalidation" in text
|
|
assert "${aws_s3_bucket.form.arn}/index.html" in text
|
|
assert not (IAM.parent / "iam_github_weekly_menu.tf").exists()
|
|
|
|
|
|
def test_checkcomponents_send_omitted_when_queue_arn_empty():
|
|
text = IAM.read_text()
|
|
assert "compact([var.checkcomponents_queue_arn])" not in text
|
|
assert 'for_each = var.checkcomponents_queue_arn == "" ? [] : [1]' in text
|
|
assert 'sid = "CheckcomponentsSend"' in text
|