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