Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteeb0f48

Browse files
committed
make gen
1 parentd7a0abf commiteeb0f48

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

‎cli/testdata/coder_templates_list_--help.golden

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ OPTIONS:
1111
-O, --org string, $CODER_ORGANIZATION
1212
Select which organization (uuid or name) to use.
1313

14-
-c, --column string-array (default: name,last updated,used by)
14+
-c, --column string-array (default: name,organization name,last updated,used by)
1515
Columns to display in table output. Available columns: name, created
16-
at, last updated, organization id,provisioner, active version id,
17-
used by, default ttl.
16+
at, last updated, organization id,organization name, provisioner,
17+
active version id,used by, default ttl.
1818

1919
-o, --output string (default: table)
2020
Output format. Available formats: table, json.

‎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:=rangetemplates {
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:=rangetemplates {
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 aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp