Skip to content

Commit

Permalink
fix(test): update to matt plugin 0.1.0 to fix plugin test pact_ffi 0.…
Browse files Browse the repository at this point in the history
…4.6+
  • Loading branch information
YOU54F committed Jan 25, 2024
1 parent 370f07c commit c5d7322
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ pact-provider-verifier
_*
*.log
pact-go
examples/pacts
pacts
logs
tmp
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ download_plugins:
./scripts/install-cli.sh
~/.pact/bin/pact-plugin-cli -y install https://github.com/pactflow/pact-protobuf-plugin/releases/tag/v-0.3.8
~/.pact/bin/pact-plugin-cli -y install https://github.com/pact-foundation/pact-plugins/releases/tag/csv-plugin-0.0.1
~/.pact/bin/pact-plugin-cli -y install https://github.com/mefellows/pact-matt-plugin/releases/tag/v0.0.9
~/.pact/bin/pact-plugin-cli -y install https://github.com/you54f/pact-matt-plugin/releases/tag/v0.1.0
~/.pact/bin/pact-plugin-cli -y install https://github.com/austek/pact-avro-plugin/releases/tag/v0.0.3

cli:
Expand Down
4 changes: 2 additions & 2 deletions examples/plugin/consumer_plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestHTTPPlugin(t *testing.T) {
UponReceiving("A request to do a matt").
UsingPlugin(consumer.PluginConfig{
Plugin: "matt",
Version: "0.0.9",
Version: "0.1.0",
}).
WithRequest("POST", "/matt", func(req *consumer.V4InteractionWithPluginRequestBuilder) {
req.PluginContents("application/matt", mattRequest)
Expand Down Expand Up @@ -74,7 +74,7 @@ func TestTCPPlugin(t *testing.T) {
Given("the world exists").
UsingPlugin(message.PluginConfig{
Plugin: "matt",
Version: "0.0.9",
Version: "0.1.0",
}).
WithContents(mattMessage, "application/matt").
StartTransport("matt", "127.0.0.1", nil). // For plugin tests, we can't assume if a transport is needed, so this is optional
Expand Down

0 comments on commit c5d7322

Please sign in to comment.