mirror of
https://github.com/ipedrazas/drone-helm.git
synced 2026-06-14 05:12:51 +08:00
debug and dry-run flags added
This commit is contained in:
+23
-1
@@ -1,6 +1,9 @@
|
||||
package main
|
||||
|
||||
import "testing"
|
||||
import (
|
||||
"fmt"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestInitialiseKubeconfig(t *testing.T) {
|
||||
|
||||
@@ -21,3 +24,22 @@ func TestInitialiseKubeconfig(t *testing.T) {
|
||||
initialiseKubeconfig(&plugin.Config, "kubeconfig", "config3.test")
|
||||
|
||||
}
|
||||
|
||||
func TestGetHelmCommand(t *testing.T) {
|
||||
plugin := &Plugin{
|
||||
Config: Config{
|
||||
APIServer: "http://myapiserver",
|
||||
Token: "secret-token",
|
||||
HelmCommand: nil,
|
||||
Namespace: "default",
|
||||
SkipTLSVerify: true,
|
||||
Debug: true,
|
||||
DryRun: true,
|
||||
Chart: "./chart/test",
|
||||
Release: "test-release",
|
||||
},
|
||||
}
|
||||
setHelmCommand(plugin)
|
||||
fmt.Println(plugin.Config.HelmCommand)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user