forked from pact-foundation/pact-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(messages): update to latest standalone
Implements minimum v3 spec compatibility: - Multiple states sent through to pact file Reifies message content before sending to consumer message handler.
- Loading branch information
Showing
11 changed files
with
152 additions
and
276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package client | ||
|
||
import ( | ||
"log" | ||
) | ||
|
||
// MessageService is a wrapper for the Pact Message service. | ||
type MessageService struct { | ||
ServiceManager | ||
} | ||
|
||
// NewService creates a new MessageService with default settings. | ||
// Named Arguments allowed: | ||
// --consumer | ||
// --provider | ||
// --pact-dir | ||
func (v *MessageService) NewService(args []string) Service { | ||
v.Args = args | ||
|
||
log.Printf("[DEBUG] starting message service with args: %v\n", v.Args) | ||
v.Cmd = "pact-message" | ||
|
||
return v | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.