Open jeremyrickard opened 7 years ago
What would be a good fix to this, to make this part configurable in the test config, i.e. "check for X-Broker-API-Version header" (true or false)?
Requests from the platform to the service broker MUST contain a header that declares the version number of the Service Broker API that the marketplace will use...
I think this means, that requests without that header are invalid requests. That would be a 400 BadRequest.
What do you think?
@zhongyi-zhang @norshtein Any thought?
The following check seems to be imposing a requirement that the spec does not actually impose:
should reject requests without X-Broker-API-Version header with 412
The Open Service Broker Spec states:
Note that this doesn't actually state the brokers MUST fail the request (it doesn't define the behavior so it''s ambiguous).