Closed
Description
Coder v0.7.12+6f34cbf
Cmd
Scenario 1
- Do template init of any template
- Create a template
- Create a workspace based on template
- Delete template:
coder templates delete [template name]
Actual result:
- redundant api output is displayed in the error message
"delete template "aws-windows": DELETE https://fcca2689e23903a563ca16e90d03c1da.pit-1.try.coder.app/api/v2/templates/04950462-6de9-4c63-a854-6c5da260b161: unexpected status code 412: All workspaces must be deleted before a template can be removed."
Expected result:
- the error message "All workspaces must be deleted before a template can be removed. Run 'coder templates delete --help' for usage." is displayed
Scenario 2
- As an Admin create several templates via cli
- Login to CLI as a user with a role Member
- Run in console/terminal
coder templates list - Run
coder templates delete [any template name]
Actual result:
- redundant api output is displayed in the error message
"delete template "aws-windows001": DELETE https://fcca2689e23903a563ca16e90d03c1da.pit-1.try.coder.app/api/v2/templates/bb5e4cf4-8032-498e-8963-ed94d00d188a: unexpected status code 404: Resource not found or you do not have access to this resource"
Expected result:
- the error message "Resource not found or you do not have access to this resource. Run 'coder templates delete --help' for usage." is displayed
Metadata
Metadata
Assignees
Labels
No labels