Skip to content

Commit

Permalink
chore: #13 Realign APIs of ensemble on other language
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Broudoux <[email protected]>
  • Loading branch information
lbroudoux committed Sep 23, 2024
1 parent bf1eff5 commit d90fc33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ensemble/ensemble.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,10 @@ func WithAsyncFeatureImage(image string) Option {
}

// WithPostman allows to enable Postman container.
func WithPostman(enable bool) Option {
func WithPostman() Option {
return func(e *MicrocksContainersEnsemble) error {
e.postmanContainerImage = postman.DefaultImage
e.postmanEnabled = enable
e.postmanEnabled = true
return nil
}
}
Expand Down
2 changes: 1 addition & 1 deletion ensemble/ensemble_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestPostmanContractTestingFunctionality(t *testing.T) {
ctx,
ensemble.WithMainArtifact("../testdata/apipastries-openapi.yaml"),
ensemble.WithSecondaryArtifact("../testdata/apipastries-postman-collection.json"),
ensemble.WithPostman(true),
ensemble.WithPostman(),
)
require.NoError(t, err)
networkName := ec.GetNetwork().Name
Expand Down

0 comments on commit d90fc33

Please sign in to comment.