{"id":15287993,"url":"https://github.com/trsnium/indulgences","last_synced_at":"2025-04-13T06:32:45.315Z","repository":{"id":35113004,"uuid":"205503666","full_name":"TrsNium/Indulgences","owner":"TrsNium","description":"📚Distributed load test framework","archived":false,"fork":false,"pushed_at":"2023-05-05T21:08:08.000Z","size":104,"stargazers_count":4,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T07:35:52.383Z","etag":null,"topics":["distributed","elixir","load-testing"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/TrsNium.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2019-08-31T06:07:09.000Z","updated_at":"2021-10-22T17:50:33.000Z","dependencies_parsed_at":"2023-01-15T14:15:23.182Z","dependency_job_id":"ee4f15f1-2f37-48f1-a5d9-ee0e819fd38e","html_url":"https://github.com/TrsNium/Indulgences","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrsNium%2FIndulgences","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrsNium%2FIndulgences/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrsNium%2FIndulgences/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrsNium%2FIndulgences/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TrsNium","download_url":"https://codeload.github.com/TrsNium/Indulgences/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248674677,"owners_count":21143760,"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":["distributed","elixir","load-testing"],"created_at":"2024-09-30T15:43:42.177Z","updated_at":"2025-04-13T06:32:45.261Z","avatar_url":"https://github.com/TrsNium.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Indulgences\n![badge](https://action-badges.now.sh/TrsNium/Indulgences?workflow=test)\n\n### Work In Progress\n- Output report in html format\n\n## Usage\n\nBasically you can use like following.\n```elixir\nIndulgences.Scenario.new(\"Test Scenario\",\n  fn -\u003e\n    Indulgences.Http.new(\"Test Local Request\")\n    |\u003e Indulgences.Http.get(\"http://localhost\")\n    |\u003e Indulgences.Http.set_header(\"header\", \"value\")\n    |\u003e Indulgences.Http.check(\n        fn(%HTTPoison.Response{}=response, %{}=state)-\u003e\n          Indulgences.Http.is_status(response, 200)\n          state\n          |\u003e Map.put(:body, response.body)\n        end)\n    |\u003e Indulgences.Http.new(\"Test Local Request2\")\n    |\u003e Indulgences.Http.get(\"http://localhost\")\n    |\u003e Indulgences.Http.set_header(\"set-header-body\", fn(state)-\u003eMap.get(state, :body)end)\n    |\u003e Indulgences.Http.check(\n        fn(%HTTPoison.Response{}=response)-\u003e\n          Indulgences.Http.is_status(response, 200)\n        end)\n  end)\n|\u003e Indulgences.Scenario.inject(\n  fn -\u003e\n    Indulgences.Activation.constant_users_per_sec(100, 10)\n  end)\n|\u003e Indulgences.Simulation.start\n```\n\nWhen you wanna use indulgences on a module basis.\n```elixir\ndefmodule Test do\n  use Indulgences\n\n  @scenario_title \"Test Scenario\"\n\n  @impl true\n  def scenario() do\n    Indulgences.Http.new(\"Test Local Request\")\n    |\u003e Indulgences.Http.get(\"https://localhost\")\n    |\u003e Indulgences.Http.set_header(\"hoge\", \"huga\")\n    |\u003e Indulgences.Http.check(\n      fn(%HTTPoison.Response{}=response)-\u003e\n        Indulgences.Http.is_status(response, 404)\n      end)\n  end\n\n  @impl true\n  def activation() do\n    Indulgences.Activation.constant_users_per_sec(100, 10)\n  end\nend\n\nTest.start\n```\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `indulgences` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:indulgences, \"~\u003e 0.1.0\"}\n  ]\nend\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/indulgences](https://hexdocs.pm/indulgences).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrsnium%2Findulgences","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrsnium%2Findulgences","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrsnium%2Findulgences/lists"}