package upstreamimpl_test import ( "context" "testing" _ "git.5iot.com/iotlcm-public/iotlcm-upstream-chan/internal/logic" "git.5iot.com/iotlcm-public/iotlcm-upstream-chan/internal/model" "git.5iot.com/iotlcm-public/iotlcm-upstream-chan/internal/model/entity" "git.5iot.com/iotlcm-public/iotlcm-upstream-chan/internal/service" ) func TestMingqianRegistration(t *testing.T) { template, ok := service.UpstreamAPI().GetTemp("sim_mingqian_v3") if !ok || template == nil { t.Fatal("mingqian template not registered") } cfg := &model.SimChannelConfigItemCache{Template: &entity.TSimChannelTemplate{}, Channel: &entity.TSimChannels{AppKey: "test", AppSecret: "test"}} if instance := template.NewTemp(context.Background(), cfg); instance == nil { t.Fatal("mingqian instance creation failed") } }