{"id":19316042,"url":"https://github.com/socketry/rack-conform","last_synced_at":"2025-04-22T16:33:08.478Z","repository":{"id":57987437,"uuid":"529517318","full_name":"socketry/rack-conform","owner":"socketry","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-02T11:51:02.000Z","size":76,"stargazers_count":8,"open_issues_count":6,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-09-17T03:35:59.593Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/socketry.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-27T07:41:49.000Z","updated_at":"2024-06-14T23:59:53.000Z","dependencies_parsed_at":"2024-06-06T18:16:22.235Z","dependency_job_id":null,"html_url":"https://github.com/socketry/rack-conform","commit_stats":{"total_commits":35,"total_committers":1,"mean_commits":35.0,"dds":0.0,"last_synced_commit":"8b5625a5f274da42c1398ad6ef5dd2a8e824c764"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socketry%2Frack-conform","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socketry%2Frack-conform/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socketry%2Frack-conform/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/socketry%2Frack-conform/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/socketry","download_url":"https://codeload.github.com/socketry/rack-conform/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223900219,"owners_count":17222028,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T01:09:43.382Z","updated_at":"2024-11-10T01:09:43.897Z","avatar_url":"https://github.com/socketry.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rack::Conform\n\nProvides rack server conformance testing.\n\n[![Development Status](https://github.com/socketry/rack-conform/workflows/Test/badge.svg)](https://github.com/socketry/rack-conform/actions?workflow=Test)\n\n## Motivation\n\nRack has pretty decent support for validating applications do the right thing using `Rack::Lint`. But nothing is really testing that servers behave correctly given a certain response from an application. That's what this test suite is for: to check that servers do the \"correct\" thing given a specific response from an application.\n\n## Features\n\n  - Supports Rack 2 and Rack 3.\n\n### Servers Tested\n\n  - Falcon (Rack 2 \u0026 3)\n  - Puma (Rack 2)\n  - Passenger (Rack 2)\n  - Unicorn (Rack 2)\n  - Thin (Rack 2)\n\n## Usage\n\nThis repository includes test suite execution for published versions of major web servers. You can also run it for a specific server.\n\n### Falcon\n\n``` bash\nexport BUNDLE_GEMFILE=gems/falcon-v0-rack-v3.rb\nbundle install\nexport RACK_CONFORM_SERVER=\"falcon --bind http://localhost:9292\"\nexport RACK_CONFORM_ENDPOINT=\"http://localhost:9292\"\nbundle exec sus # run tests\n```\n\nTo see more details about the tests being run, use `sus --verbose`.\n\nFalcon can also run tests over `https` using a self-signed certificate and this will cause HTTP/2 to be used.\n\n``` bash\nexport BUNDLE_GEMFILE=gems/falcon-v0-rack-v3.rb\nbundle install\nexport RACK_CONFORM_SERVER=\"falcon --bind https://localhost:9292\"\nexport RACK_CONFORM_ENDPOINT=\"https://localhost:9292\"\nbundle exec sus # run tests\n```\n\n### Puma\n\n``` bash\nexport BUNDLE_GEMFILE=gems/puma-v6-rack-v3.rb\nbundle install\nexport RACK_CONFORM_SERVER=\"puma --bind tcp://localhost:9292\"\nexport RACK_CONFORM_ENDPOINT=\"http://localhost:9292\"\nbundle exec sus # run tests\n```\n\n### Webrick\n\n``` bash\nexport BUNDLE_GEMFILE=\"gems/webrick-rack-v3.rb\"\nbundle install\nexport RACK_CONFORM_SERVER=\"rackup -s webrick\"\nexport RACK_CONFORM_ENDPOINT=\"http://localhost:9292\"\nbundle exec sus\n```\n\n### Starting A Server\n\nYou can also start a server running the conform application for independent testing (e.g. using `curl`).\n\n``` bash\nexport BUNDLE_GEMFILE=gems/falcon-v0-rack-v3.rb\nbundle install\nexport RACK_CONFORM_SERVER=\"falcon --bind http://localhost:9292\"\nexport RACK_CONFORM_ENDPOINT=\"http://localhost:9292\"\nbundle exec bake rack:conform:server\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocketry%2Frack-conform","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsocketry%2Frack-conform","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocketry%2Frack-conform/lists"}