mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
feat: add auto-locking/deleting workspace based on template config (#8240)
This commit is contained in:
@ -112,6 +112,11 @@ type LicenseOptions struct {
|
||||
Features license.Features
|
||||
}
|
||||
|
||||
// AddFullLicense generates a license with all features enabled.
|
||||
func AddFullLicense(t *testing.T, client *codersdk.Client) codersdk.License {
|
||||
return AddLicense(t, client, LicenseOptions{AllFeatures: true})
|
||||
}
|
||||
|
||||
// AddLicense generates a new license with the options provided and inserts it.
|
||||
func AddLicense(t *testing.T, client *codersdk.Client, options LicenseOptions) codersdk.License {
|
||||
l, err := client.AddLicense(context.Background(), codersdk.AddLicenseRequest{
|
||||
|
Reference in New Issue
Block a user