Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update broker api version from poc to v1

Change-Id: I4cd5d4b3a5b0951e58c806ba5cc23a77334720ab
  • Loading branch information...
commit 1fb94f66ad6257cc676835cfbf7229fb2fe74182 1 parent 95e5b43
Chunjie Zhu authored
View
4 service_broker/lib/service_broker/async_gateway.rb
@@ -26,7 +26,7 @@ class BrokeredService
end
REQ_OPTS = %w(mbus external_uri token cloud_controller_uri).map {|o| o.to_sym}
- API_VERSION = "poc"
+ API_VERSION = "v1"
set :raise_errors, Proc.new {false}
set :show_exceptions, false
@@ -48,7 +48,7 @@ def setup(opts)
@cld_ctrl_uri = http_uri(opts[:cloud_controller_uri])
@external_uri = opts[:external_uri]
@offering_uri = "#{@cld_ctrl_uri}/services/v1/offerings/"
- @service_list_uri = "#{@cld_ctrl_uri}/brokered_services/poc/offerings"
+ @service_list_uri = "#{@cld_ctrl_uri}/brokered_services/#{API_VERSION}/offerings"
@router_start_channel = nil
@proxy_opts = opts[:proxy]
@ready_to_serve = false
View
2  service_broker/spec/service_broker_spec.rb
@@ -32,7 +32,7 @@ def app
"CONTENT_TYPE" => Rack::Mime.mime_type('.json'),
"HTTP_X_VCAP_SERVICE_TOKEN" => @config[:token],
}
- @api_version = "poc"
+ @api_version = "v1"
end
it "should return bad request if request type is not json " do
View
2  tools/service_broker_cli/bin/service_broker_cli
@@ -61,7 +61,7 @@ end
@broker = @config[:service_broker]
@service = @config[:service]
-API_VERSION = "poc"
+API_VERSION = "v1"
uri = URI.parse(@broker)
hdrs = {
'Content-Type' => 'application/json',
Please sign in to comment.
Something went wrong with that request. Please try again.