{"id":42934223,"url":"https://github.com/trickstercache/mockster","last_synced_at":"2026-01-30T19:13:42.846Z","repository":{"id":50954505,"uuid":"243578699","full_name":"trickstercache/mockster","owner":"trickstercache","description":"HTTP Server Mocks for Byte Range and Time Series Databases","archived":false,"fork":false,"pushed_at":"2025-03-18T00:32:57.000Z","size":69,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-18T01:27:19.852Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trickstercache.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-27T17:41:58.000Z","updated_at":"2025-03-18T00:27:59.000Z","dependencies_parsed_at":"2022-08-28T15:33:46.446Z","dependency_job_id":null,"html_url":"https://github.com/trickstercache/mockster","commit_stats":null,"previous_names":["tricksterproxy/mockster"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/trickstercache/mockster","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trickstercache%2Fmockster","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trickstercache%2Fmockster/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trickstercache%2Fmockster/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trickstercache%2Fmockster/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trickstercache","download_url":"https://codeload.github.com/trickstercache/mockster/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trickstercache%2Fmockster/sbom","scorecard":{"id":898581,"data":{"date":"2025-08-11","repo":{"name":"github.com/trickstercache/mockster","commit":"becee1717c9785e1c643ce4a63363dbff18be560"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 2/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/create-upload-prerelease.yml:1","Warn: no topLevel permission defined: .github/workflows/create-upload-release.yml:1","Warn: no topLevel permission defined: .github/workflows/go-build.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-upload-prerelease.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-prerelease.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-upload-prerelease.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-prerelease.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-upload-prerelease.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-prerelease.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-upload-prerelease.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-prerelease.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-upload-prerelease.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-prerelease.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-upload-prerelease.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-prerelease.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-upload-prerelease.yml:75: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-prerelease.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-upload-prerelease.yml:82: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-prerelease.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-upload-prerelease.yml:89: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-prerelease.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-upload-prerelease.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-prerelease.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-upload-release.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-upload-release.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-upload-release.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-upload-release.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-upload-release.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/create-upload-release.yml:66: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-upload-release.yml:75: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-upload-release.yml:82: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-upload-release.yml:89: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/create-upload-release.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/create-upload-release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go-build.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/go-build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/go-build.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/trickstercache/mockster/go-build.yml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:5","Warn: containerImage not pinned by hash: Dockerfile:11","Info:   0 out of  14 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   8 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v1.1.3 not signed: https://api.github.com/repos/trickstercache/mockster/releases/206399903","Warn: release artifact v1.1.2 not signed: https://api.github.com/repos/trickstercache/mockster/releases/43655975","Warn: release artifact v1.1.1 not signed: https://api.github.com/repos/trickstercache/mockster/releases/26183718","Warn: release artifact v1.1.0 not signed: https://api.github.com/repos/trickstercache/mockster/releases/25830324","Warn: release artifact v1.1.3 does not have provenance: https://api.github.com/repos/trickstercache/mockster/releases/206399903","Warn: release artifact v1.1.2 does not have provenance: https://api.github.com/repos/trickstercache/mockster/releases/43655975","Warn: release artifact v1.1.1 does not have provenance: https://api.github.com/repos/trickstercache/mockster/releases/26183718","Warn: release artifact v1.1.0 does not have provenance: https://api.github.com/repos/trickstercache/mockster/releases/25830324"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 8 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-24T14:39:07.591Z","repository_id":50954505,"created_at":"2025-08-24T14:39:07.591Z","updated_at":"2025-08-24T14:39:07.591Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28917578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T19:10:10.838Z","status":"ssl_error","status_checked_at":"2026-01-30T19:06:40.573Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-30T19:13:42.617Z","updated_at":"2026-01-30T19:13:42.838Z","avatar_url":"https://github.com/trickstercache.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mockster - Suite for mocking time series and byte range responses\n\nMockster is a suite of golang packages and accompanying runnable applications that facilitate unit testing of components by providing mock data on-the-fly.\n\nMockster aims to support all of the output formats that are accelerated by [Trickster](https://github.com/Comcast/trickster).\n\nAny project is welcome to import the Mockster packages for testing these supported formats.\n\nMockster is the merger of two previously separate applications (PromSim and RangeSim) that were formerly part of the Trickster core project codebase.\n\n## Running as a Standalone App\n\nThe project provides a standalone server implementation of Mockster. This is useful for backing full simulation environments or running a local background app for querying during development of a data consumer app. You can find it at `github.com/trickstercache/mockster/cmd/mockster`, and, from that working directory, simply run `go run main.go \\[PORT\\]`. If a port number is not provided, it defaults to 8482.\n\n## Running from Docker\n\nWe offer Mockster as an image on Docker Hub at `trickstercache/mockster`:\n\n```bash\n$ docker run --rm -p 8482:8482 trickstercache/mockster:latest \u0026\n  Starting up mockster 1.1.1 on port 8482\n\n\n$ curl -v http://127.0.0.1:8482/prometheus/api/v1/query?query=up\n\u003e GET /prometheus/api/v1/query?query=up HTTP/1.1\n\u003e Host: 127.0.0.1:8482\n\u003e User-Agent: curl/7.64.1\n\u003e Accept: */*\n\u003e\n\u003c HTTP/1.1 200 OK\n\u003c Content-Type: application/json\n\u003c Date: Tue, 05 May 2020 14:17:10 GMT\n\u003c Content-Length: 117\n\u003c\n{\"status\":\"success\",\"data\":{\"resultType\":\"vector\",\"result\":[{\"metric\":{\"series_id\":\"0\"},\"value\":[1588688230,\"76\"]}]}}\n\n\n$ curl -v -H 'Range: bytes=0-10,12-25' http://127.0.0.1:8482/byterange/test1\n\u003e GET /byterange/test1 HTTP/1.1\n\u003e Host: 127.0.0.1:8482\n\u003e User-Agent: curl/7.64.1\n\u003e Accept: */*\n\u003e Range: bytes=0-10,12-25\n\u003e\n\u003c HTTP/1.1 206 Partial Content\n\u003c Cache-Control: max-age=60\n\u003c Content-Type: multipart/byteranges; boundary=TestRangeServerBoundary\n\u003c Last-Modified: Wed, 01 Jan 2020 00:00:00 UTC\n\u003c Date: Tue, 05 May 2020 14:17:15 GMT\n\u003c Content-Length: 263\n\u003c\n--TestRangeServerBoundary\nContent-Range: bytes 0-10/1224\nContent-Type: text/plain; charset=utf-8\n\nLorem ipsum\n--TestRangeServerBoundary\nContent-Range: bytes 12-25/1224\nContent-Type: text/plain; charset=utf-8\n\ndolor sit amet\n--TestRangeServerBoundary--\n\n\n$ fg\n$ \u003cctrl + c\u003e\n\n```\n\n## Output Formats\n\nMockster currently supports mocking the following outputs:\n\n- HTTP Byte Ranges\n- Prometheus\n\n### mockster/byterange\n\nmockster/byterange simply prints out the `Lorem ipsum ...` sample text, pared down to the requested range or multipart ranges, with a few bells and whistles that allow you to customize its response for unit testing purposes. We make extensive use of mockster/byterange in unit testing to verify the integrity of Trickster's output after performing operations like merging disparate range parts, extracting ranges from other ranges, or from a full body, compressing adjacent ranges into a single range in the cache, etc.\n\nRead more about using mockster/byterange for your needs [here](./byterange.md).\n\n### mockster/prometheus\n\nmockster/prometheus can output data in the Prometheus format, which consists of values that are repeatably generatable for the provided query and timerange inputs. The data output by mockster/prometheus does not represent reality in any way, and is only useful for unit testing and integration testing, by providing a synthesized Prometheus environment that outputs meaningless data. None of mockster/prometheus's result sets are stored on or retrieved from disk, and are calculated just-in-time on every request, using simple mathematical computations. In Trickster, we use mockster/prometheus to conduct end-to-end testing of our DeltaProxyCache during unit testing, without requiring a real Prometheus server.\n\nRead more about using and customizing mockster/prometheus for your needs [here](./prometheus.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrickstercache%2Fmockster","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrickstercache%2Fmockster","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrickstercache%2Fmockster/lists"}