thecodeteam / ecs-cf-service-broker

Cloud Foundry Service Broker for EMC ECS Object Storage
Apache License 2.0
29 stars 28 forks source link

Issue-185 Fixed Bucket Prefix when creating BucketQuota #186

Closed maddisondavid closed 4 years ago

maddisondavid commented 4 years ago

When creating the BucketQuota for a Bucket with a custom name the code was incorrectly prefixing the bucket ID and NOT the bucket name. This lead to the Create Quota attempting to create a quota on a bucket that doesn't exist.

This wasn't picked up by the Unit tests previously because BUCKET_NAME was used for both the ID and the name of the bucket being created therefore the original Unit tests still produced a valid result even if the prefix was incorrectly applied. This has been fixed in this PR.