sync: 同步 v1.0.4 并脱敏配置与镜像
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
package tasks
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestAllFullSyncTaskRegistrations(t *testing.T) {
|
||||
for name, method := range map[string]string{
|
||||
"start_traffic_usage_full_sync": "StartTrafficUsageFullSync",
|
||||
"syns_sim_status_queue": "SynsSimStatusQueue",
|
||||
"syns_imei_queue": "SynsImeiQueue",
|
||||
"sync_traffic_usage_daily": "SyncTrafficUsageDaily",
|
||||
"sync_traffic_usage_monthly": "SyncTrafficUsageMonthly",
|
||||
"start_traffic_usage_monthly_history": "StartTrafficUsageMonthlyHistory",
|
||||
} {
|
||||
if got := GetInnerTaskName(name); got != method {
|
||||
t.Errorf("task %q registered as %q, want %q", name, got, method)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user