Skip to content

Commit

Permalink
Update deps and improve settings handling
Browse files Browse the repository at this point in the history
  • Loading branch information
eruvanos committed Aug 27, 2024
1 parent 0b247e6 commit c9d1701
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changelog
**4.7.1**
- Update depenendcies
- Read settings values during check, instead of import time
Use `import openbrokerapi.settings; openbrokerapi.settings.DISABLE_SPACE_ORG_GUID_CHECK = True`
to disable the check for space_guid and organization_guid, or use the environment variable
`DISABLE_SPACE_ORG_GUID_CHECK=True`

**4.7.0**
- Update to latest dependencies (incl Flask >=3)
Expand Down
6 changes: 5 additions & 1 deletion tests/test_provisioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@

class ProvisioningTest(BrokerTestCase):
def setUp(self):
# default config
import openbrokerapi.settings
openbrokerapi.settings.DISABLE_SPACE_ORG_GUID_CHECK = False

self.broker.catalog.return_value = [
Service(
id="service-guid-here",
Expand Down Expand Up @@ -333,7 +337,7 @@ def test_returns_400_if_missing_org_and_space_guids_data(self):
def test_returns_202_if_missing_org_and_space_guids_data_org_space_check_flag_true(
self,
):
openbrokerapi.service_broker.DISABLE_SPACE_ORG_GUID_CHECK = True
openbrokerapi.settings.DISABLE_SPACE_ORG_GUID_CHECK = True

self.broker.provision.return_value = self.broker.provision.return_value = ProvisionedServiceSpec(
ProvisionState.IS_ASYNC, "dash_url", "operation_str"
Expand Down

0 comments on commit c9d1701

Please sign in to comment.