Ecosyste.ms: Packages
An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.
Top 0.4% dependent packages on proxy.golang.org
Top 0.1% dependent repos on proxy.golang.org
Top 2.7% forks on proxy.golang.org
Top 0.9% docker downloads on proxy.golang.org
proxy.golang.org : github.com/pact-foundation/pact-go
Pact Go enables consumer driven contract testing, providing a mock service and DSL for the consumer project, and interaction playback and verification for the service provider project. Consumer side Pact testing is an isolated test that ensures a given component is able to collaborate with another (remote) component. Pact will automatically start a Mock server in the background that will act as the collaborators' test double. This implies that any interactions expected on the Mock server will be validated, meaning a test will fail if all interactions were not completed, or if unexpected interactions were found: A typical consumer-side test would look something like this: If this test completed successfully, a Pact file should have been written to ./pacts/my_consumer-my_provider.json containing all of the interactions expected to occur between the Consumer and Provider. In addition to verbatim value matching, you have 3 useful matching functions in the `dsl` package that can increase expressiveness and reduce brittle test cases. Here is a complex example that shows how all 3 terms can be used together: This example will result in a response body from the mock server that looks like: See the examples in the dsl package and the matcher tests (https://github.com/pact-foundation/pact-go/blob/master/dsl/matcher_test.go) for more matching examples. NOTE: You will need to use valid Ruby regular expressions (http://ruby-doc.org/core-2.1.5/Regexp.html) and double escape backslashes. Read more about flexible matching (https://github.com/pact-foundation/pact-ruby/wiki/Regular-expressions-and-type-matching-with-Pact. Provider side Pact testing, involves verifying that the contract - the Pact file - can be satisfied by the Provider. A typical Provider side test would like something like: The `VerifyProvider` will handle all verifications, treating them as subtests and giving you granular test reporting. If you don't like this behaviour, you may call `VerifyProviderRaw` directly and handle the errors manually. Note that `PactURLs` may be a list of local pact files or remote based urls (possibly from a Pact Broker - http://docs.pact.io/documentation/sharings_pacts.html). Pact reads the specified pact files (from remote or local sources) and replays the interactions against a running Provider. If all of the interactions are met we can say that both sides of the contract are satisfied and the test passes. When validating a Provider, you have 3 options to provide the Pact files: 1. Use "PactURLs" to specify the exact set of pacts to be replayed: Options 2 and 3 are particularly useful when you want to validate that your Provider is able to meet the contracts of what's in Production and also the latest in development. See this [article](http://rea.tech/enter-the-pact-matrix-or-how-to-decouple-the-release-cycles-of-your-microservices/) for more on this strategy. Each interaction in a pact should be verified in isolation, with no context maintained from the previous interactions. So how do you test a request that requires data to exist on the provider? Provider states are how you achieve this using Pact. Provider states also allow the consumer to make the same request with different expected responses (e.g. different response codes, or the same resource with a different subset of data). States are configured on the consumer side when you issue a dsl.Given() clause with a corresponding request/response pair. Configuring the provider is a little more involved, and (currently) requires running an API endpoint to configure any [provider states](http://docs.pact.io/documentation/provider_states.html) during the verification process. The option you must provide to the dsl.VerifyRequest is: An example route using the standard Go http package might look like this: See the examples or read more at http://docs.pact.io/documentation/provider_states.html. See the Pact Broker (http://docs.pact.io/documentation/sharings_pacts.html) documentation for more details on the Broker and this article (http://rea.tech/enter-the-pact-matrix-or-how-to-decouple-the-release-cycles-of-your-microservices/) on how to make it work for you. Publishing using Go code: Publishing from the CLI: Use a cURL request like the following to PUT the pact to the right location, specifying your consumer name, provider name and consumer version. The following flags are required to use basic authentication when publishing or retrieving Pact files to/from a Pact Broker: Pact Go uses a simple log utility (logutils - https://github.com/hashicorp/logutils) to filter log messages. The CLI already contains flags to manage this, should you want to control log level in your tests, you can set it like so:
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/pact-foundation/pact-go
Keywords: consumer-driven-contracts, golang, hacktober, hacktoberfest, pact, test-framework
License: MIT
Latest release: 8 months ago
First release: about 8 years ago
Namespace: github.com/pact-foundation
Dependent packages: 141
Dependent repositories: 19,894
Stars: 730 on GitHub
Forks: 97 on GitHub
Docker dependents: 11
Docker downloads: 7,283
See more repository details: repos.ecosyste.ms
Funding links: https://opencollective.com/pact-foundation, https://pactflow.io
Last synced: 2 days ago
github.com/replicatedhq/replicated v0.75.0
A CLI to create, edit and promote releases in Replicated128 versions - Latest release: 26 days ago - 2 dependent packages - 2 dependent repositories - 34 stars on GitHub
github.com/ministryofjustice/opg-sirius-workflow v1.193.0
OPG sirius supervision workflow frontend: Managed by opg-org-infra & Terraform923 versions - Latest release: 30 days ago - 2 stars on GitHub
github.com/ministryofjustice/opg-sirius-supervision-workflow v1.193.0
OPG sirius supervision workflow frontend: Managed by opg-org-infra & Terraform1,699 versions - Latest release: 30 days ago - 2 stars on GitHub
flamingo.me/flamingo/v3 v3.8.1
Flamingo Framework and Core Library. Flamingo is a go based framework to build pluggable applicat...36 versions - Latest release: about 2 months ago - 34 dependent packages - 18 dependent repositories - 356 stars on GitHub
github.com/form3tech-oss/pact-proxy v0.6.0
A proxy that can inject additional behaviour into provider mocks without modifying the generated ...22 versions - Latest release: 2 months ago - 3 stars on GitHub
github.com/tgulacsi/go v0.27.4
Common go helper utils, each in its subdir155 versions - Latest release: 3 months ago - 20 dependent packages - 17 dependent repositories - 71 stars on GitHub
github.com/interhyp/metadata-service v0.36.4
A service for managing metadata about microservices in a GitOps style.54 versions - Latest release: 3 months ago - 7 stars on GitHub
github.com/Interhyp/metadata-service v0.36.4
A service for managing metadata about microservices in a GitOps style.54 versions - Latest release: 3 months ago - 7 stars on GitHub
github.com/form3tech-oss/go-pact-testing/v2 v2.2.0
pact testing in go12 versions - Latest release: 3 months ago - 4 stars on GitHub
github.com/eurofurence/reg-attendee-service v0.1.3
EF Registration backend micro-service providing an attendee-related REST API.29 versions - Latest release: 4 months ago - 2 stars on GitHub
github.com/ministryofjustice/opg-modernising-lpa v0.999.0
OPG Modernising LPA: Managed by opg-org-infra & Terraform3,050 versions - Latest release: 4 months ago - 6 stars on GitHub
github.com/StephanHCB/go-backend-service-common v0.9.0
22 versions - Latest release: 4 months ago - 3 dependent packages - 1 dependent repositories - 0 stars on GitHubgithub.com/stephanhcb/go-backend-service-common v0.9.0
22 versions - Latest release: 4 months ago - 0 stars on GitHubgithub.com/redhat-appstudio/application-service v0.0.0-20240124163622-ebf7b480656c
Hybrid application service creates and manages applications and controls the lifecycle of applica...113 versions - Latest release: 5 months ago - 6 dependent packages - 26 dependent repositories - 14 stars on GitHub
github.com/snyk/snyk-ls v0.0.0-20240124150059-6e9473b53945
Language Server using LSP meant to be used by IDEs as Snyk Backend for Frontends57 versions - Latest release: 5 months ago - 1 dependent package - 1 dependent repositories - 27 stars on GitHub
github.com/khulnasoft-lab/vulnmap-ls v0.0.0-20231114193735-dfd24c6de01b
1 version - Latest release: 7 months ago - 0 stars on GitHubgitverse2.corernd.ru/sc/go_libs/go-kit-kit v0.13.1
14 versions - Latest release: 7 months agogithub.com/moov-io/achgateway v0.27.2
Payment gateway enabling automated ACH operations in a distributed and fault tolerant way.112 versions - Latest release: 7 months ago - 49 stars on GitHub
github.com/khulnasoft/khulnasoft-ls v0.0.0-20231002030931-df5614f65950
2 versions - Latest release: 8 months ago - 0 stars on GitHubgithub.com/tgulacsi/mnbarf v0.5.0
MNB Árfolyam letöltő15 versions - Latest release: 9 months ago - 1 stars on GitHub
github.com/ministryofjustice/opg-modernising-lpa/app v0.0.0-20230824113500-897bb117705d
OPG Modernising LPA: Managed by opg-org-infra & Terraform3 versions - Latest release: 10 months ago - 6 stars on GitHub
github.com/UNO-SOFT/wpsql v0.5.3
21 versions - Latest release: 10 months ago - 0 stars on GitHubgithub.com/uno-soft/wpsql v0.5.3
21 versions - Latest release: 10 months ago - 0 stars on GitHubgithub.com/pact-cdc-example/basket-service v0.0.0-20230626202211-7d57675ea012
1 version - Latest release: 12 months ago - 0 stars on GitHubgithub.com/OWASP/AMASS/v3 v3.23.3 💰
In-depth Attack Surface Mapping and Asset Discovery107 versions - Latest release: 12 months ago - 8,961 stars on GitHub
github.com/owasp-amass/Amass/v3 v3.23.3
107 versions - Latest release: 12 months agogithub.com/owasp-amass/amass/v3 v3.23.3
107 versions - Latest release: 12 months ago - 3 dependent packagesgithub.com/OWASP/AMass/v3 v3.23.3 💰
In-depth Attack Surface Mapping and Asset Discovery107 versions - Latest release: 12 months ago - 8,995 stars on GitHub
github.com/OWASP/Amass/v3 v3.23.3 💰
In-depth Attack Surface Mapping and Asset Discovery107 versions - Latest release: 12 months ago - 6 dependent packages - 5 dependent repositories - 8,961 stars on GitHub
github.com/owasp/amass/v3 v3.23.3 💰
In-depth Attack Surface Mapping and Asset Discovery107 versions - Latest release: 12 months ago - 8,961 stars on GitHub
github.com/owasp/Amass/v3 v3.23.3 💰
In-depth Attack Surface Mapping and Asset Discovery107 versions - Latest release: 12 months ago - 8,961 stars on GitHub
github.com/OWASP/amass/v3 v3.23.3 💰
In-depth Attack Surface Mapping and Asset Discovery107 versions - Latest release: 12 months ago - 8,961 stars on GitHub
github.com/OWASP-amass/Amass/v3 v3.23.3
107 versions - Latest release: 12 months agogithub.com/OWASP-Amass/Amass/v3 v3.23.3 💰
In-depth Attack Surface Mapping and Asset Discovery107 versions - Latest release: 12 months ago - 9,037 stars on GitHub
github.com/OWASP-amass/amass/v3 v3.23.3
107 versions - Latest release: 12 months agogithub.com/OWASP-Amass/amass/v3 v3.23.3
107 versions - Latest release: 12 months agogithub.com/mundipagg/boleto-api v0.0.0-20230620145841-3f9ec742599f
API for register and generate "Boletos"4 versions - Latest release: 12 months ago - 241 stars on GitHub
github.com/eneskzlcn/pact-cdc v0.0.0-20230618203844-d8cc4e05f092
Consumer driven contract tests with pact.1 version - Latest release: 12 months ago - 0 stars on GitHub
github.com/mazrean/ssh-separator v0.5.20
sshをユーザーごとのコンテナへ振り分けるツール37 versions - Latest release: about 1 year ago - 4 stars on GitHub
github.com/mazrean/separated-webshell v0.5.20
37 versions - Latest release: about 1 year ago - 1 dependent package - 1 dependent repositoriesgithub.com/Simplewallethq/casper-golang-sdk v0.0.0-20230530122749-7a3a6197b733 removed
15 versions - Latest release: about 1 year agogithub.com/Go-kit/kit v0.13.0 💰
A standard library for microservices.13 versions - Latest release: about 1 year ago - 24,683 stars on GitHub
github.com/go-kit/Kit v0.13.0 💰
A standard library for microservices.13 versions - Latest release: about 1 year ago - 24,683 stars on GitHub
github.com/go-kit/kit v0.13.0 💰
A standard library for microservices.13 versions - Latest release: about 1 year ago - 15,176 dependent packages - 101,143 dependent repositories - 24,683 stars on GitHub
www.github.com/go-kit/kit.git v0.13.0 💰
A standard library for microservices.13 versions - Latest release: about 1 year ago - 24,683 stars on GitHub
github.com/go-kit/gokit v0.13.0
13 versions - Latest release: about 1 year agogithub.com/go-Kit/Kit v0.13.0 💰
A standard library for microservices.13 versions - Latest release: about 1 year ago - 24,683 stars on GitHub
github.com/peterbourgon/gokit v0.13.0
13 versions - Latest release: about 1 year agogithub.com/go-Kit/kit v0.13.0 💰
A standard library for microservices.13 versions - Latest release: about 1 year ago - 24,683 stars on GitHub
gitee.com/mirrors/go-kit v0.13.0
13 versions - Latest release: about 1 year agogithub.com/fionahiklas/simple-static-graphql-api v0.0.0-20230524143149-81d16f753c17
2 versions - Latest release: about 1 year ago - 0 stars on GitHubgithub.com/nth347/amass/v3 v3.23.2
88 versions - Latest release: about 1 year agogithub.com/go-coldbrew/interceptors v0.1.7
Package interceptors provides a common set of interceptors which are used in Coldbrew Almost all...8 versions - Latest release: about 1 year ago - 1 dependent package - 3 dependent repositories - 0 stars on GitHub
github.com/PacktPublishing/Test-Driven-Development-in-Go v1.0.0
Test-Driven Development in Go, published by Packt8 versions - Latest release: about 1 year ago - 13 stars on GitHub
github.com/packtpublishing/test-driven-development-in-go v1.0.0
Test-Driven Development in Go, published by Packt1 version - Latest release: about 1 year ago - 13 stars on GitHub
github.com/pactflow/example-provider-golang v0.0.0-20230123175808-b0639e7deae8
Example Gin Golang Provider1 version - Latest release: over 1 year ago - 2 stars on GitHub
github.com/fclairamb/ftpserver v0.13.0
ftpserver allows to create your own FTP(S) server13 versions - Latest release: over 1 year ago - 11 dependent packages - 9 dependent repositories - 370 stars on GitHub
github.com/faozimipa/micro/services.order v0.0.0-20230102201758-c41a4624672a
Event-driven architecture (EDA) software architecture paradigm1 version - Latest release: over 1 year ago - 2 stars on GitHub
github.com/eneskzlcn/ping-pong v1.0.0
The api has one post handler with route /ping. If you send { times: x} as JSON on the body of po...1 version - Latest release: over 1 year ago - 0 stars on GitHub
github.com/ministryofjustice/opg-sirius-lpa-dashboard v1.71.0
LPA dashboard frontend for Sirius: Managed by opg-org-infra & Terraform345 versions - Latest release: almost 2 years ago - 0 stars on GitHub
github.com/go-dummy/dummy v0.8.0
Run mock server based off an API contract with one command29 versions - Latest release: almost 2 years ago - 169 stars on GitHub
github.com/neotoolkit/dummy v0.8.0
Run mock server based off an API contract with one command29 versions - Latest release: almost 2 years ago - 169 stars on GitHub
github.com/tsxylhs/go-starter v1.0.2
golang模块启动器3 versions - Latest release: almost 2 years ago - 1 dependent package - 1 dependent repositories - 1 stars on GitHub
github.com/hachh/Amass/v3 v3.19.3
In-depth Attack Surface Mapping and Asset Discovery96 versions - Latest release: almost 2 years ago - 0 stars on GitHub
github.com/hachh/amass/v3 v3.19.3
In-depth Attack Surface Mapping and Asset Discovery96 versions - Latest release: almost 2 years ago - 0 stars on GitHub
github.com/cpctf2022/ssh-separator v1.0.3 removed
26 versions - Latest release: about 2 years agogithub.com/thallgren/ftpserver v0.11.0
Golang based autonomous FTP server with SFTP, S3, Dropbox, and Google Drive connectors.10 versions - Latest release: about 2 years ago - 0 stars on GitHub
github.com/ministryofjustice/opg-sirius-lpa-frontend v1.10.11
LPA frontend for Sirius: Managed by opg-org-infra & Terraform54 versions - Latest release: about 2 years ago - 0 stars on GitHub
github.com/sonzqn/pact-provider-go v0.0.0-20220413080654-657b95c935a4
2 versions - Latest release: about 2 years ago - 0 stars on GitHubgithub.com/gaikwadamolraj/accountapi-client v1.1.0
2 versions - Latest release: over 2 years ago - 1 stars on GitHubgithub.com/Peanuttown/tzzGoUtil v1.5.5
36 versions - Latest release: over 2 years ago - 4 dependent packages - 1 dependent repositoriesgithub.com/Peanuttown/tzzGoutil v1.5.5
36 versions - Latest release: over 2 years agogithub.com/peanuttown/tzzgoutil v1.5.5
36 versions - Latest release: over 2 years agogithub.com/pigfall/tzzgoutil v1.5.5
36 versions - Latest release: over 2 years ago - 1 stars on GitHubgithub.com/pigfall/tzzGoUtil v1.5.5
36 versions - Latest release: over 2 years ago - 3 dependent packages - 2 dependent repositories - 1 stars on GitHubgithub.com/testingallthethings/033-go-rest v0.0.0-20220211105349-67aa52413012
Demonstrating End to End, Integration & Unit test to create a simple REST API1 version - Latest release: over 2 years ago - 7 stars on GitHub
github.com/ivloz/amass/v3 v3.16.0
86 versions - Latest release: over 2 years agogithub.com/ivloz/Amass/v3 v3.16.0
86 versions - Latest release: over 2 years agogithub.com/0xlwoe21k/Amass/v3 v3.15.2
In-depth Attack Surface Mapping and Asset Discovery85 versions - Latest release: over 2 years ago - 0 stars on GitHub
github.com/0xlwoe21k/amass/v3 v3.15.2
In-depth Attack Surface Mapping and Asset Discovery85 versions - Latest release: over 2 years ago - 0 stars on GitHub
github.com/go-kit/examples v0.0.0-20211116124531-e18c82edc2f9
Example Go kit services1 version - Latest release: over 2 years ago - 1 dependent repositories - 228 stars on GitHub
github.com/ministryofjustice/opg-sirius-user-management v1.60.4
User management frontend for Sirius: Managed by opg-org-infra & Terraform161 versions - Latest release: over 2 years ago - 2 stars on GitHub
github.com/zerotohero-dev/fizz-app v0.5.2
Application-specific utility functions.21 versions - Latest release: over 2 years ago - 1 dependent repositories - 0 stars on GitHub
github.com/tgulyuva/todo-backend v0.0.0-20211010141213-8bd84d98164a
1 version - Latest release: over 2 years agogithub.com/i-love-flamingo/flamingo/v3 v3.3.0 removed
28 versions - Latest release: over 2 years agogithub.com/AliasYermukanov/kit v0.12.0
A standard library for microservices.12 versions - Latest release: over 2 years ago - 0 stars on GitHub
github.com/denopink/kit v0.12.0 💰
A standard library for microservices.12 versions - Latest release: over 2 years ago - 0 stars on GitHub
github.com/mises-id/kit v0.12.0 💰
A standard library for microservices.12 versions - Latest release: over 2 years ago - 1 dependent repositories - 0 stars on GitHub
github.com/aliasyermukanov/kit v0.12.0
A standard library for microservices.12 versions - Latest release: over 2 years ago - 0 stars on GitHub
github.com/gospodinzerkalo/crime_city_api v0.0.0-20210911183640-ca40f45ef1c7
1 version - Latest release: over 2 years ago - 1 dependent repositoriesgithub.com/nek0fi5t/kit v0.12.0 💰
A standard library for microservices.12 versions - Latest release: almost 3 years ago - 0 stars on GitHub
github.com/replicatedhq/kots/kotsadm/operator v0.0.0-20210812182055-477358ab5978
KOTS provides the framework, tools and integrations that enable the delivery and management of 3r...2 versions - Latest release: almost 3 years ago - 1 dependent package - 807 stars on GitHub
github.com/jenpaff/golang-microservices v0.0.0-20210810084421-35ddc407b2c3
1 version - Latest release: almost 3 years agogithub.com/testingallthethings/038-pact-http-consumer-go v0.0.0-20210806085032-7c289f620ae6
A simple HTTP Consumer to demonstrate Pact in Golang1 version - Latest release: almost 3 years ago - 0 stars on GitHub
github.com/vovinacci/kit v0.11.1
12 versions - Latest release: almost 3 years agogithub.com/brian-avery/kit v0.11.0 💰
A standard library for microservices.12 versions - Latest release: almost 3 years ago - 0 stars on GitHub
github.com/form3tech-oss/go-pact-testing v1.4.1
pact testing in go11 versions - Latest release: about 3 years ago - 1 dependent repositories - 4 stars on GitHub
github.com/bakhdaulet/kit v0.11.0 💰
A standard library for microservices.11 versions - Latest release: about 3 years ago - 0 stars on GitHub
github.com/mhchlib/go-kit v0.10.5 💰
A standard library for microservices.13 versions - Latest release: about 3 years ago - 2 dependent packages - 3 dependent repositories - 0 stars on GitHub