Skip to content

Stub the /v3/spaces/{guid}/features/{name} endpoint #4255

@danail-branekov

Description

@danail-branekov

Background

The /v3/spaces/{guid}/features/{name} endpoint provides information of whether a space feature is enabled. In Korifi we do not support features, however we could stub the endpoint to return a response that a feature is disabled.

Acceptance

GIVEN I have created a space
WHEN I curl the endpoint via cf curl /v3/spaces/<space-guid>/features/ssh
THEN I get HTTP 200 OK response with body

{
  "name": "ssh",
  "description": "Enable SSHing into apps in the space.",
  "enabled": false
}

Dev notes

  • Spike commit: d130c21
  • In addition to the implementation we need:
    • unit tests for the handler method
    • e2e test to verify that the endpoint returns HTTP 200 OK response with body enabled: false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions