@@ -92,7 +92,8 @@ func TestLoadConfig(t *testing.T) {
9292 "url": "http://localhost:3100/loki/api/v1/push",
9393 "flush_interval_second": 5
9494 },
95- "notification_config_path": "` + notificationConfigPath + `"
95+ "notification_config_path": "` + notificationConfigPath + `",
96+ "zlog_output_url": "http://[::1]:3100/loki/api/v1/push?tenant_id=zlog-vms"
9697 }`
9798
9899 // Write the config files
@@ -288,7 +289,8 @@ func TestLoadConfig_InvalidConfig(t *testing.T) {
288289 "reserved_node_health_check_interval_in_hours": 1,
289290 "reserved_node_health_check_timeout_in_minutes": 1,
290291 "reserved_node_health_check_workers_num": 10
291- }
292+ },
293+ "zlog_output_url": "http://[::1]:3100/loki/api/v1/push?tenant_id=zlog-vms"
292294 }` ,
293295 expectedErr : "validation error on field 'Configuration.Database.DSN': dsn" ,
294296 },
@@ -321,7 +323,8 @@ func TestLoadConfig_InvalidConfig(t *testing.T) {
321323 "reserved_node_health_check_interval_in_hours": 1,
322324 "reserved_node_health_check_timeout_in_minutes": 1,
323325 "reserved_node_health_check_workers_num": 10
324- }
326+ },
327+ "zlog_output_url": "http://[::1]:3100/loki/api/v1/push?tenant_id=zlog-vms"
325328 }` ,
326329 expectedErr : "validation error on field 'Configuration.Database.MaxIdleConns': lteMaxOpenConns" ,
327330 },
@@ -349,7 +352,8 @@ func TestLoadConfig_InvalidConfig(t *testing.T) {
349352 "reserved_node_health_check_interval_in_hours": 1,
350353 "reserved_node_health_check_timeout_in_minutes": 1,
351354 "reserved_node_health_check_workers_num": 10
352- }
355+ },
356+ "zlog_output_url": "http://[::1]:3100/loki/api/v1/push?tenant_id=zlog-vms"
353357 }` ,
354358 expectedErr : "validation error on field 'Configuration.JwtToken.Secret': required" ,
355359 },
@@ -379,7 +383,8 @@ func TestLoadConfig_InvalidConfig(t *testing.T) {
379383 "reserved_node_health_check_interval_in_hours": 1,
380384 "reserved_node_health_check_timeout_in_minutes": 1,
381385 "reserved_node_health_check_workers_num": 10
382- }
386+ },
387+ "zlog_output_url": "http://[::1]:3100/loki/api/v1/push?tenant_id=zlog-vms"
383388 }` ,
384389 expectedErr : "validation error on field 'Configuration.Admins': required" ,
385390 },
@@ -445,7 +450,8 @@ func TestSQLiteProductionCheck(t *testing.T) {
445450 "ssh": {"private_key_path": "` + privateKeyPath + `", "public_key_path": "` + publicKeyPath + `"},
446451 "monitor_balance_interval_in_minutes": 1,
447452 "notify_admins_for_pending_records_in_hours": 1,
448- "node_health_check": {"reserved_node_health_check_interval_in_hours": 1, "reserved_node_health_check_timeout_in_minutes": 1, "reserved_node_health_check_workers_num": 1}
453+ "node_health_check": {"reserved_node_health_check_interval_in_hours": 1, "reserved_node_health_check_timeout_in_minutes": 1, "reserved_node_health_check_workers_num": 1},
454+ "zlog_output_url": "http://[::1]:3100/loki/api/v1/push?tenant_id=zlog-vms"
449455 }`
450456 err := os .WriteFile (configPath , []byte (configJSON ), 0644 )
451457 require .NoError (t , err , "Failed to write test config file" )
0 commit comments