Comments (9)
Note to self: https://github.com/jaswope/rack-reverse-proxy
from pact-ruby.
Regarding @bethesque's note to self, this is what we're doing at the moment:
require 'rack/reverse_proxy'
class Proxy < Sinatra::Base
use Rack::ReverseProxy do
reverse_proxy '/', 'http://monolith/'
end
end
Pact.service_provider "Horrific Monolith" do
app { Proxy.new }
end
We could probably do it with just plain Rack.
from pact-ruby.
Nice, thanks for the snippet.
from pact-ruby.
Ok, I've made a pact-proxy gem
https://github.com/bethesque/pact-proxy
@uglyog Not sure about some names.
pact-proxy or pact-provider-proxy ?
task.app_base_url or task.provider_base_url ?
Pact::ProxyVerificationTask or Pact::ProviderProxyVerificationTask ?
Give me cache invalidation any day over naming things...
from pact-ruby.
Having given it 5 minutes thought, I think that pact-provider-proxy might be a better name, because we may want to divide pact up into pact-provider and pact-consumer at some stage. I know Brent has started out that way.
from pact-ruby.
Tagging @jagregory Would love you to road test pact-proxy (or pact-provider-proxy as it may be called by then!) and let me know what you think.
from pact-ruby.
I'm up for that. I'll give it a go on Monday.
On Saturday, 14 December 2013, bethesque wrote:
Tagging @jagregory https://github.com/jagregory Would love you to road
test pact-proxy (or pact-provider-proxy as it may be called by then!) and
let me know what you think.—
Reply to this email directly or view it on GitHubhttps://github.com/realestate-com-au/pact/issues/2#issuecomment-30556105
.
James Gregory
Tel: +61 (0) 411 619 513
Website: http://jagregory.com
Twitter: @jagregory http://twitter.com/jagregory
from pact-ruby.
Hey @jagregory, did you ever get to test this? I'd like to close this issue, but would love a 2nd party to test it.
from pact-ruby.
Closing.
from pact-ruby.
Related Issues (20)
- Add support for consumer version selectors for deployed and released versions
- Set "enable pending" to true by default HOT 1
- Let's Encrypt certificate verify failed September 30th HOT 28
- Ruby pact-provider-verifier --enable-pending returns non-zero exit code if pending pact provider state setup fails HOT 2
- Naming collision with term-ansicolor gem HOT 1
- app_version_branch is absent in MessageProviderDSL
- Service Provider and Message Provider seem incompatible in pact_helper HOT 8
- Support for provider states with no operations
- Pact v3 specification implementation for Pact Ruby HOT 2
- Pact v4 specification implementation for Pact Ruby HOT 3
- Verify when the provider has no matching Pacts HOT 1
- "Ignoring unsupported combine AND for path" on every property HOT 2
- Set order of interactions in Pact file HOT 2
- Service provider configuration overlaps with other service providers HOT 1
- undefined method `href' for nil:NilClass (NoMethodError)
- rails pact:verify runs tests and sends to broker, then hangs HOT 3
- Pact creating conflict when using Minitest on Rails 7.1 HOT 2
- Any plan for a new release with support of Rack 3? HOT 1
- Pact No such file or directory publish_dir HOT 1
- Need Guidance on Injecting Dynamic Authentication Headers in Provider Verification HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pact-ruby.