Skip to content

Commit 8f8a4c1

Browse files
committed
make gen
1 parent 5dd9f2b commit 8f8a4c1

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy