Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow configuration of host #13

Merged

Conversation

bewatts
Copy link
Contributor

@bewatts bewatts commented Feb 8, 2022

Description

Allows configuring of host for the provider. I'm still verifying that this fixes my problem, so let's not merge this until I can verify.

Motivation and Context

I'm having an issue running nestjs-pact in CI. See this thread for more information.

This should fix: #12

How Has This Been Tested?

Yes, tested by mocking what app.listen recieves.

Mac M1, ran all tests.

Expands the options type that nestjs-pact accepts.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@omermorad
Copy link
Collaborator

@bewatts looks good, did you have a chance to test it against your project? I mean to link the package to your project

@bewatts
Copy link
Contributor Author

bewatts commented Feb 9, 2022

No, I've been flailing on convincing my nest app to use the nestjs-pact version from my branch, unsuccessfully. At this point, I'm tempted to say we should just merge it? It's potentially useful beyond my usecase, even if it doesn't work for me.

What do you think?

@voinik
Copy link

voinik commented Jul 12, 2022

Hey guys, what's the status on this PR? I could really use this feature as nest is using an IPv6 IP address by default, but when running the pact test on my remote container, it's not picking up the connection. It works if I manually edit thePactVerifierService code to use a port number and '0.0.0.0' as the hostname.

Edit: clarified a bit

@omermorad omermorad merged commit 01151f3 into pact-foundation:master Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to pass in host?
3 participants