feat: add experimental flag (#4364)

This commit is contained in:
Garrett Delfosse
2022-10-04 19:45:00 +00:00
committed by GitHub
parent 18b282cabb
commit ffbaa93722
12 changed files with 55 additions and 9 deletions
+1
View File
@@ -68,5 +68,6 @@ func TestFeaturesList(t *testing.T) {
assert.Equal(t, codersdk.EntitlementNotEntitled,
entitlements.Features[codersdk.FeatureWorkspaceQuota].Entitlement)
assert.False(t, entitlements.HasLicense)
assert.False(t, entitlements.Experimental)
})
}
+4 -3
View File
@@ -346,8 +346,9 @@ func (*fakeLicenseAPI) entitlements(rw http.ResponseWriter, r *http.Request) {
}
}
httpapi.Write(r.Context(), rw, http.StatusOK, codersdk.Entitlements{
Features: features,
Warnings: []string{testWarning},
HasLicense: true,
Features: features,
Warnings: []string{testWarning},
HasLicense: true,
Experimental: true,
})
}