Skip to content

Treat normal and secure built-in namespaces as existing namespaces - #703

Open
eamansour wants to merge 1 commit into
galasa-dev:mainfrom
eamansour:em-2631-fix-cps-service-namespace-error
Open

Treat normal and secure built-in namespaces as existing namespaces#703
eamansour wants to merge 1 commit into
galasa-dev:mainfrom
eamansour:em-2631-fix-cps-service-namespace-error

Conversation

@eamansour

Copy link
Copy Markdown
Member

Why?

Refer to galasa-dev/projectmanagement#2631

This PR adds the service namespace as a built-in namespace.

Previously, all existing namespaces and non-existent namespaces would be initialised as CPSNamespace objects. The API server would then check if a namespace contained any properties to determine whether it actually exists. This meant that if a built-in namespace like secure or service didn't contain properties, then it would be treated as a non-existent namespace and return a 404 Not Found.

This PR fixes this by treating built-in namespaces as namespaces that always exist, regardless of whether they contain properties, so the API server will not return a 404 Not Found.

Changes

  • Added service to the built-in namespaces
  • Unit tests (if applicable)

…es instead of returning not found

Signed-off-by: Eamonn Mansour <47121388+eamansour@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant