[x] 1) we return 201 when BindingID was not existing, and was created with success
[ ] 2) we return 200 when BindingID WAS already existing, input parameters are the same and was created with success (in_progress,error is not success)
[ ] 3) we return 400 when invalid input params provided [JP - question - including not existent InstanceID?]
[ ] 4) we return 409 when BindingID already exists but input params different
[ ] 5) we return 500 if KEB itself is not able to finalize binding creation
[x] 6) we return 200 on DELETE when bindings exists, [JP - question - 410 when does not exists? - it seems that DELETE is not supposed to be idempotent] [MM - OSB says 410 if not exists]
user wants to create binding x again. The previous one with the same id is expired, but is still in the database
From meeting 17.09.2024: We decided to return 400 if the expired binding is still in the DB, and create a new binding if previous incarnation of binding (expired) is already removed by the cleaner job.
Create a test for OSB Api Compliance especially to check if all error codes are correct.
AC
AC from https://github.com/kyma-project/kyma-environment-broker/issues/284 - https://github.com/kyma-project/kyma-environment-broker/issues/284#issuecomment-2418846444