Plugins Preinstall: Fix URL parsing when includes basic auth (#115143)

Preinstall: Fix URL setting when includes basic auth
This commit is contained in:
Andres Martinez Gotor
2025-12-11 13:38:02 +01:00
committed by GitHub
parent eef14d2cee
commit e6b5ece559
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -210,6 +210,11 @@ func Test_readPluginSettings(t *testing.T) {
rawInput: "plugin1@@https://example.com/plugin1.tar.gz",
expected: append(defaultPreinstallPluginsList, InstallPlugin{ID: "plugin1", Version: "", URL: "https://example.com/plugin1.tar.gz"}),
},
{
name: "should parse a plugin with credentials in the URL",
rawInput: "plugin1@@https://username:password@example.com/plugin1.tar.gz",
expected: append(defaultPreinstallPluginsList, InstallPlugin{ID: "plugin1", Version: "", URL: "https://username:password@example.com/plugin1.tar.gz"}),
},
{
name: "when preinstall_async is false, should add all plugins to preinstall_sync",
rawInput: "plugin1",