Skip to content

Add CI that checks the authorizer allows and denies requests - #5

Merged
HarshCasper merged 1 commit into
mainfrom
ci/assert-authorizer-responses
Oct 13, 2026
Merged

HarshCasper merged 1 commit into
mainfrom
ci/assert-authorizer-responses

Conversation

@HarshCasper

Copy link
Copy Markdown
Member

The repo had no CI and no test.

  • New test.sh calls the API with each token src/authorizer.js handles:

    Token Status Body contains
    allow 200 hello world
    deny 403 explicit deny
    unauthorized 401 Unauthorized
    any other 500
    none 401 Unauthorized
  • make deploy no longer prompts. It runs sam deploy with --stack-name $(STACK_NAME) --resolve-s3 --capabilities CAPABILITY_IAM --no-confirm-changeset. STACK_NAME defaults to sam-app.

  • New make test target, and the README covers both.

  • New workflow deploys with make deploy and runs make test.

Tested locally against LocalStack.

https://claude.ai/code/session_01DZfDmzUBPqNAu3yFKyfCNM

Add CI that checks the authorizer allows and denies requests

Claude-Session: https://claude.ai/code/session_01DZfDmzUBPqNAu3yFKyfCNM
@HarshCasper
HarshCasper merged commit e03c89c into main Oct 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant