feature/tt/initial-implementation (#1)
Reviewed-on: #1 Co-authored-by: Tobias Trabelsi <lerentis@uploadfilter24.eu> Co-committed-by: Tobias Trabelsi <lerentis@uploadfilter24.eu>
This commit is contained in:
22
internal/config_test.go
Normal file
22
internal/config_test.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package internal
|
||||
|
||||
import (
|
||||
"reflect"
|
||||
"testing"
|
||||
)
|
||||
|
||||
var defaultConfig = Config{
|
||||
LogLevel: "Info",
|
||||
LabelSelector: "kops.k8s.io/instance-role=Node",
|
||||
HcloudToken: "",
|
||||
}
|
||||
|
||||
func TestConfigDefaults(t *testing.T) {
|
||||
cfg, err := GenConfig()
|
||||
if err != nil {
|
||||
t.Errorf("%s", err.Error())
|
||||
}
|
||||
if !reflect.DeepEqual(&defaultConfig, cfg) {
|
||||
t.Errorf("got %+v, want %+v", cfg, defaultConfig)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user