Skip to content

Commit 4c2344f

Browse files
committed
make gen
1 parent d7a0abf commit 4c2344f

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

coderd/templates_test.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,13 @@ func TestTemplatesByOrganization(t *testing.T) {
443443
templates, err = client.Templates(ctx)
444444
require.NoError(t, err)
445445
require.Len(t, templates, 2)
446+
447+
org, err := client.Organization(ctx, user.OrganizationID)
448+
require.NoError(t, err)
449+
for _, tmpl := range templates {
450+
require.Equal(t, tmpl.OrganizationID, user.OrganizationID, "organization ID")
451+
require.Equal(t, tmpl.OrganizationName, org.Name, "organization name")
452+
}
446453
})
447454
t.Run("MultipleOrganizations", func(t *testing.T) {
448455
t.Parallel()
@@ -474,6 +481,9 @@ func TestTemplatesByOrganization(t *testing.T) {
474481
templates, err = user.Templates(ctx)
475482
require.NoError(t, err)
476483
require.Len(t, templates, 2)
484+
for _, tmpl := range templates {
485+
require.Equal(t, tmpl.OrganizationName, org2.Name, "organization name on template")
486+
}
477487
})
478488
}
479489

docs/cli/templates_list.md

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)