mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
fix(coderd): update icon url to the right one (#8718)
This commit is contained in:
@ -40,7 +40,7 @@ func TestTemplateEdit(t *testing.T) {
|
|||||||
name := "new-template-name"
|
name := "new-template-name"
|
||||||
displayName := "New Display Name 789"
|
displayName := "New Display Name 789"
|
||||||
desc := "lorem ipsum dolor sit amet et cetera"
|
desc := "lorem ipsum dolor sit amet et cetera"
|
||||||
icon := "/icons/new-icon.png"
|
icon := "/icon/new-icon.png"
|
||||||
defaultTTL := 12 * time.Hour
|
defaultTTL := 12 * time.Hour
|
||||||
allowUserCancelWorkspaceJobs := false
|
allowUserCancelWorkspaceJobs := false
|
||||||
|
|
||||||
@ -168,7 +168,7 @@ func TestTemplateEdit(t *testing.T) {
|
|||||||
// Test the cli command.
|
// Test the cli command.
|
||||||
displayName := "New Display Name 789"
|
displayName := "New Display Name 789"
|
||||||
description := "New Description ABC"
|
description := "New Description ABC"
|
||||||
icon := "/icons/new-icon.png"
|
icon := "/icon/new-icon.png"
|
||||||
cmdArgs := []string{
|
cmdArgs := []string{
|
||||||
"templates",
|
"templates",
|
||||||
"edit",
|
"edit",
|
||||||
|
@ -257,7 +257,7 @@ func convertTemplateInsightsBuiltinApps(usage database.GetTemplateInsightsRow) [
|
|||||||
Type: codersdk.TemplateAppsTypeBuiltin,
|
Type: codersdk.TemplateAppsTypeBuiltin,
|
||||||
DisplayName: "Visual Studio Code",
|
DisplayName: "Visual Studio Code",
|
||||||
Slug: "vscode",
|
Slug: "vscode",
|
||||||
Icon: "/icons/code.svg",
|
Icon: "/icon/code.svg",
|
||||||
Seconds: usage.UsageVscodeSeconds,
|
Seconds: usage.UsageVscodeSeconds,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -265,7 +265,7 @@ func convertTemplateInsightsBuiltinApps(usage database.GetTemplateInsightsRow) [
|
|||||||
Type: codersdk.TemplateAppsTypeBuiltin,
|
Type: codersdk.TemplateAppsTypeBuiltin,
|
||||||
DisplayName: "JetBrains",
|
DisplayName: "JetBrains",
|
||||||
Slug: "jetbrains",
|
Slug: "jetbrains",
|
||||||
Icon: "/icons/intellij.svg",
|
Icon: "/icon/intellij.svg",
|
||||||
Seconds: usage.UsageJetbrainsSeconds,
|
Seconds: usage.UsageJetbrainsSeconds,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -273,7 +273,7 @@ func convertTemplateInsightsBuiltinApps(usage database.GetTemplateInsightsRow) [
|
|||||||
Type: codersdk.TemplateAppsTypeBuiltin,
|
Type: codersdk.TemplateAppsTypeBuiltin,
|
||||||
DisplayName: "Web Terminal",
|
DisplayName: "Web Terminal",
|
||||||
Slug: "reconnecting-pty",
|
Slug: "reconnecting-pty",
|
||||||
Icon: "/icons/terminal.svg",
|
Icon: "/icon/terminal.svg",
|
||||||
Seconds: usage.UsageReconnectingPtySeconds,
|
Seconds: usage.UsageReconnectingPtySeconds,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -281,7 +281,7 @@ func convertTemplateInsightsBuiltinApps(usage database.GetTemplateInsightsRow) [
|
|||||||
Type: codersdk.TemplateAppsTypeBuiltin,
|
Type: codersdk.TemplateAppsTypeBuiltin,
|
||||||
DisplayName: "SSH",
|
DisplayName: "SSH",
|
||||||
Slug: "ssh",
|
Slug: "ssh",
|
||||||
Icon: "/icons/terminal.svg",
|
Icon: "/icon/terminal.svg",
|
||||||
Seconds: usage.UsageSshSeconds,
|
Seconds: usage.UsageSshSeconds,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -478,7 +478,7 @@ func TestPatchTemplateMeta(t *testing.T) {
|
|||||||
Name: "new-template-name",
|
Name: "new-template-name",
|
||||||
DisplayName: "Displayed Name 456",
|
DisplayName: "Displayed Name 456",
|
||||||
Description: "lorem ipsum dolor sit amet et cetera",
|
Description: "lorem ipsum dolor sit amet et cetera",
|
||||||
Icon: "/icons/new-icon.png",
|
Icon: "/icon/new-icon.png",
|
||||||
DefaultTTLMillis: 12 * time.Hour.Milliseconds(),
|
DefaultTTLMillis: 12 * time.Hour.Milliseconds(),
|
||||||
AllowUserCancelWorkspaceJobs: false,
|
AllowUserCancelWorkspaceJobs: false,
|
||||||
}
|
}
|
||||||
@ -883,7 +883,7 @@ func TestPatchTemplateMeta(t *testing.T) {
|
|||||||
version := coderdtest.CreateTemplateVersion(t, client, user.OrganizationID, nil)
|
version := coderdtest.CreateTemplateVersion(t, client, user.OrganizationID, nil)
|
||||||
template := coderdtest.CreateTemplate(t, client, user.OrganizationID, version.ID, func(ctr *codersdk.CreateTemplateRequest) {
|
template := coderdtest.CreateTemplate(t, client, user.OrganizationID, version.ID, func(ctr *codersdk.CreateTemplateRequest) {
|
||||||
ctr.Description = "original description"
|
ctr.Description = "original description"
|
||||||
ctr.Icon = "/icons/original-icon.png"
|
ctr.Icon = "/icon/original-icon.png"
|
||||||
ctr.DefaultTTLMillis = ptr.Ref(24 * time.Hour.Milliseconds())
|
ctr.DefaultTTLMillis = ptr.Ref(24 * time.Hour.Milliseconds())
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -950,7 +950,7 @@ func TestPatchTemplateMeta(t *testing.T) {
|
|||||||
user := coderdtest.CreateFirstUser(t, client)
|
user := coderdtest.CreateFirstUser(t, client)
|
||||||
version := coderdtest.CreateTemplateVersion(t, client, user.OrganizationID, nil)
|
version := coderdtest.CreateTemplateVersion(t, client, user.OrganizationID, nil)
|
||||||
template := coderdtest.CreateTemplate(t, client, user.OrganizationID, version.ID, func(ctr *codersdk.CreateTemplateRequest) {
|
template := coderdtest.CreateTemplate(t, client, user.OrganizationID, version.ID, func(ctr *codersdk.CreateTemplateRequest) {
|
||||||
ctr.Icon = "/icons/code.png"
|
ctr.Icon = "/icon/code.png"
|
||||||
})
|
})
|
||||||
req := codersdk.UpdateTemplateMeta{
|
req := codersdk.UpdateTemplateMeta{
|
||||||
Icon: "",
|
Icon: "",
|
||||||
|
Reference in New Issue
Block a user