@@ -116,7 +116,32 @@ var loadConfigTests = []struct {
116
116
err string
117
117
}{
118
118
{"nonexistingfile.yaml" , "alice" , []string {}, "open nonexistingfile.yaml: no such file or directory" },
119
- {"../../test/configEmpty.yaml" , "alice" , []string {}, "no destination defined for service 'default'" },
119
+ {"../../test/configEmpty.yaml" , "alice" , []string {
120
+ "libnodeset.so not found, falling back to iskylite's implementation" ,
121
+ "groups = map[bar:true foo:true]" ,
122
+ "config.debug = false" ,
123
+ "config.log = " ,
124
+ "config.check_interval = 0s" ,
125
+ "config.error_banner = " ,
126
+ "config.dump = " ,
127
+ "config.dump_limit_size = 0" ,
128
+ "config.dump_limit_window = 0s" ,
129
+ "config.etcd = {Endpoints:[] TLS:{CAFile: KeyFile: CertFile:} Username: Password: KeyTTL:0 Mandatory:<nil>}" ,
130
+ "config.etcd_stats_interval = 0s" ,
131
+ "config.log_stats_interval = 0s" ,
132
+ "config.blocking_command = " ,
133
+ "config.bg_command = " ,
134
+ "config.ssh = {Exe:ssh Args:[-q -Y]}" ,
135
+ "config.environment = map[]" ,
136
+ "config.service = default" ,
137
+ "config.dest = []" ,
138
+ "config.route_select = ordered" ,
139
+ "config.mode = sticky" ,
140
+ "config.force_command = " ,
141
+ "config.command_must_match = false" ,
142
+ "config.etcd_keyttl = 0" ,
143
+ "config.max_connections_per_user = 0" ,
144
+ }, "" },
120
145
{"../../test/configInvalid.yaml" , "alice" , []string {}, "yaml: found character that cannot start any token" },
121
146
{"../../test/configCheckIntervalError.yaml" , "alice" , []string {}, `time: invalid duration "not a duration"` },
122
147
{"../../test/configCheckIntervalNotString.yaml" , "alice" , []string {}, "check_interval: 10 is not a string" },
0 commit comments