mirror of
https://github.com/coder/coder.git
synced 2025-07-18 14:17:22 +00:00
chore: don't require an organization to read starter templates (#14190)
This commit is contained in:
committed by
GitHub
parent
fab196043e
commit
ff785588fe
@ -1097,17 +1097,17 @@ func TestPreviousTemplateVersion(t *testing.T) {
|
||||
})
|
||||
}
|
||||
|
||||
func TestTemplateExamples(t *testing.T) {
|
||||
func TestStarterTemplates(t *testing.T) {
|
||||
t.Parallel()
|
||||
t.Run("OK", func(t *testing.T) {
|
||||
t.Parallel()
|
||||
client := coderdtest.New(t, nil)
|
||||
user := coderdtest.CreateFirstUser(t, client)
|
||||
_ = coderdtest.CreateFirstUser(t, client)
|
||||
|
||||
ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong)
|
||||
defer cancel()
|
||||
|
||||
ex, err := client.TemplateExamples(ctx, user.OrganizationID)
|
||||
ex, err := client.StarterTemplates(ctx)
|
||||
require.NoError(t, err)
|
||||
ls, err := examples.List()
|
||||
require.NoError(t, err)
|
||||
|
Reference in New Issue
Block a user