- Notifications
You must be signed in to change notification settings - Fork928
Closed
Description
Problem
Customers need to be able to add their license file to a Coder deployment
Definition of Done
- POST
api/v2/licenses
endpoint - CLI command
coder licenses add <file>
Acceptance Criteria
Obtain a valid and invalid license file (you can create an invalid one by changing some of the letters in the license file)
- Add the license
coder license add <file>
- Access the database.
If you are using embedded postgres, you can get the connect string with:c server postgres-builtin-url
If you are running external postgres, connect to it directly - Validate that a row is created in the licenses table
- Add the invalid license
coder license add <file>
- Verify this command fails and no row is added.
Metadata
Metadata
Assignees
Labels
No labels