orange-cloudfoundry / static-creds-broker

A CloudFoundry service broker to ease exposition of static credentials
Apache License 2.0
7 stars 1 forks source link

Better defaults and control for service guids and service plans guids #102

Open gberche-orange opened 3 years ago

gberche-orange commented 3 years ago

Expected behavior

currentl behavior

Given

  test-issue-cc-ng-service-guid:
    NAME: test-issue-cc-ng-service-name
    DESCRIPTION: "A test service to verify cc api v3 behavior when a service plan gets removed, symptom at https://github.com/orange-cloudfoundry/paas-templates/issues/1229"
    TAGS: "tag1"
    METADATA:
      DISPLAY_NAME: "test-issue-cc-ng-service-display-name"
      DOCUMENTATION_URL: "test-issue-cc-ng-service-doc-url"
      PROVIDER_DISPLAY_NAME: "test-issue-cc-ng-service-provider_display_name"
      LONG_DESCRIPTION: "test-issue-cc-ng-service-provider_long_description"
    CREDENTIALS_JSON: '{"username":"admin", "password":"XX", "uri":"mysql://USERNAME:PASSWORD@HOSTNAME:PORT/NAME", "HOSTNAME": "us-cdbr-east-03.cleardb.com"}'
    DASHBOARD_URL: "https://redacted-domain.org/"
    plans:
      1:
        NAME: test-issue-cc-ng-plan1_name
        DESCRIPTION: "test-issue-cc-ng-plan1_description"
        # https://cloud.google.com/sql/docs/mysql/pricing-examples
        FREE: true

then the published catalog is

{
  "id": "test-issue-cc-ng-service-nametest-issue-cc-ng-plan1_name", 
  "name": "test-issue-cc-ng-plan1_name", 
  "description": "test-issue-cc-ng-plan1_description",
  "metadata": {
    "costs": null,
    "displayName": null,
    "bullets": null
  },
  "free": true
}
],
"tags": [ "tag1" ],

"metadata": {
  "longDescription": "test-issue-cc-ng-service-provider_long_description",
  "documentationUrl": "test-issue-cc-ng-service-doc-url",
  "providerDisplayName": "test-issue-cc-ng-service-provider_display_name",
  "displayName": "test-issue-cc-ng-service-display-name",
  "imageUrl": "",
  "supportUrl": ""
},
"requires": [ ],
"dashboard_client": null
},