Skip to content

Commit

Permalink
Changes according to sample plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Sameena Syed committed Dec 20, 2022
1 parent 84a5f88 commit 71d7be8
Show file tree
Hide file tree
Showing 10 changed files with 48 additions and 10 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/pact-sample-plugin.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ TEST?=./...
.DEFAULT_GOAL := ci
FFI_VERSION=0.3.15
# Update this version
VERSION=0.0.1
VERSION=0.0.4
# Update to your project name
PROJECT=myplugin
PROJECT=pact-sample-plugin

ci:: deps clean bin test

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/pact-foundation/pact-plugin-template-golang // TODO: change me!
module github.com/sameena-ops/pact-sample-plugin // TODO: change me!

go 1.18

Expand Down
6 changes: 3 additions & 3 deletions pact-plugin.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"pluginInterfaceVersion": 1,
"name": "myplugin",
"version": "0.0.1",
"name": "sample",
"version": "0.0.4",
"executableType": "exec",
"minimumRequiredVersion": null,
"entryPoint": "myplugin",
"entryPoint": "pact-sample-plugin",
"entryPoints": {},
"dependencies": null,
"pluginConfig": {}
Expand Down
6 changes: 3 additions & 3 deletions plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"log"

"github.com/google/uuid"
plugin "github.com/pact-foundation/pact-plugin-template-golang/io_pact_plugin"
plugin "github.com/sameena-ops/pact-sample-plugin/io_pact_plugin"
"google.golang.org/protobuf/types/known/emptypb"
"google.golang.org/protobuf/types/known/wrapperspb"
)
Expand Down Expand Up @@ -44,14 +44,14 @@ func (m *pluginServer) InitPlugin(ctx context.Context, req *plugin.InitPluginReq
return &plugin.InitPluginResponse{
Catalogue: []*plugin.CatalogueEntry{
{
Key: "PROJECT NAME", // TODO: changeme!
Key: "pact-sample-plugin", // TODO: changeme!
Type: plugin.CatalogueEntry_CONTENT_MATCHER, // TODO: changeme!
Values: map[string]string{
"content-types": CONTENT_TYPE,
},
},
{
Key: "TRANSPORT NAME", // TODO: changeme!
Key: "HTTP", // TODO: changeme!
Type: plugin.CatalogueEntry_TRANSPORT,
},
},
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"log"
"net"

plugin "github.com/pact-foundation/pact-plugin-template-golang/io_pact_plugin"
plugin "github.com/sameena-ops/pact-sample-plugin/io_pact_plugin"
"google.golang.org/grpc"
)

Expand Down

0 comments on commit 71d7be8

Please sign in to comment.