{"id":22152127,"url":"https://github.com/findinpath/wiremock-recorded-request-timestamp","last_synced_at":"2025-03-24T13:25:15.256Z","repository":{"id":112791252,"uuid":"221448428","full_name":"findinpath/wiremock-recorded-request-timestamp","owner":"findinpath","description":"Proof of concept for recording the timestamp of requests made towards WireMock server","archived":false,"fork":false,"pushed_at":"2019-11-13T14:50:53.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T18:32:03.298Z","etag":null,"topics":["wiremock"],"latest_commit_sha":null,"homepage":"https://www.findinpath.com/wiremock-logged-requests/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/findinpath.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-11-13T11:56:25.000Z","updated_at":"2019-11-14T10:59:27.000Z","dependencies_parsed_at":"2023-09-15T05:47:14.869Z","dependency_job_id":null,"html_url":"https://github.com/findinpath/wiremock-recorded-request-timestamp","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/findinpath%2Fwiremock-recorded-request-timestamp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findinpath%2Fwiremock-recorded-request-timestamp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findinpath%2Fwiremock-recorded-request-timestamp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/findinpath%2Fwiremock-recorded-request-timestamp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/findinpath","download_url":"https://codeload.github.com/findinpath/wiremock-recorded-request-timestamp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245277456,"owners_count":20589154,"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":["wiremock"],"created_at":"2024-12-02T00:47:14.877Z","updated_at":"2025-03-24T13:25:15.231Z","avatar_url":"https://github.com/findinpath.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Record the timestamp of requests made towards WireMock server\n=============================================================\n\nThis project is a proof of concept for showing how to log the timestamp of the requests\nmade toward the [WireMock](http://wiremock.org/) server.\n\nWireMock records by default information about which requests are made to the mock\nserver and also when these requests were made.\n\nSuch a functionality can come in handy in tests where it is needed to make sure that a certain\nAPI call happens only after another event (e.g. : the API call made to insert the corresponding\nentry in the search index engine - Apache Solr, elasticearch - is done only after the entry has \nbeen saved in the relational database - otherwise the search engine could return inaccurate data \nin case of database failure).\n\n\nConsult [Wiremock Verifying](http://wiremock.org/docs/verifying/) section for more details on\nthe available operations for retrieving the details about the requests performed towards WireMock.\n\nWireMock also provides a series of instruments that can be used to extend its basic functionality:\n\n- `com.github.tomakehurst.wiremock.extension.requestfilter.RequestFilter`\n- `com.github.tomakehurst.wiremock.extension.PostServeAction`\n- `com.github.tomakehurst.wiremock.extension.ResponseDefinitionTransformer`\n\nWhen registering an extension based on these classes in WireMock, there could be accessed\nthe requests made towards WireMock and specific callbacks could be registered depending on the\nneeds in the tests.\n\nOut of the classes enumerated earlier, the interface  `com.github.tomakehurst.wiremock.extension.requestfilter.RequestFilter`\nis the most appropriate for recording the exact timestamp when a request has been made because it doesn't\ntake into consideration the eventual delays configured for the stub endpoint on WireMock.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindinpath%2Fwiremock-recorded-request-timestamp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffindinpath%2Fwiremock-recorded-request-timestamp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffindinpath%2Fwiremock-recorded-request-timestamp/lists"}