Add tests for nginx.conf directives #1

Merged
ccm merged 26 commits from ccm-test-nginx-directives into trunk 2025-06-14 21:54:22 +00:00
Owner

Adds tests to make sure all the nginx.conf directives (the redirects and rewrites and such) are all correct.

  • The tests are run in a Docker container by the bash script test.sh
  • The test container has no external connection and each domain added as a host with --add-host
  • Self-signed certs are generated in Dockerfile for all the domain names
  • Uses busted unit testing framework
  • Uses luajit-curl to make the requests
  • Uses luasocket to mock the Gitea unix socket
  • Adds new Makefile commands: test, image-build and image-rm
Adds tests to make sure all the `nginx.conf` directives (the redirects and rewrites and such) are all correct. - The tests are run in a Docker container by the bash script `test.sh` - The test container has no external connection and each domain added as a host with `--add-host` - Self-signed certs are generated in `Dockerfile` for all the domain names - Uses `busted` unit testing framework - Uses `luajit-curl` to make the requests - Uses `luasocket` to mock the Gitea unix socket - Adds new `Makefile` commands: `test`, `image-build` and `image-rm`
ccm added 26 commits 2025-06-14 21:44:20 +00:00
ccm merged commit 85fba54152 into trunk 2025-06-14 21:54:22 +00:00
ccm deleted branch ccm-test-nginx-directives 2025-06-14 21:54:22 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ccm/miti.sh#1
No description provided.