|
|
|
@ -14,6 +14,7 @@ limitations under the License.
|
|
|
|
|
package installer // import "helm.sh/helm/v4/pkg/plugin/installer"
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"fmt"
|
|
|
|
|
"os"
|
|
|
|
|
"testing"
|
|
|
|
|
)
|
|
|
|
@ -32,6 +33,10 @@ func TestPath(t *testing.T) {
|
|
|
|
|
source: "https://github.com/jkroepke/helm-secrets",
|
|
|
|
|
helmPluginsDir: "/helm/data/plugins",
|
|
|
|
|
expectPath: "/helm/data/plugins/helm-secrets",
|
|
|
|
|
}, {
|
|
|
|
|
source: "https://github.com/jkroepke/helm-secrets",
|
|
|
|
|
helmPluginsDir: fmt.Sprintf("/helm/data/plugins%c/remote/helm/data/plugins", os.PathListSeparator),
|
|
|
|
|
expectPath: "/helm/data/plugins/helm-secrets",
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|