firebase / firebase/firebase-admin-java

[FR] - Need a setter to set FCM host for Functional tests/Service Level tests.

未关闭
#802 5 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
needs-triage type: feature request
主要语言
Java
星标
620
派生
305
平均合并
3 小时 23 分钟
30 天内合并 PR
1

描述

**Summary**:
I recently integrated FCM SDK to send Push Notifications. The integration was very simple and smooth but while I started writing Functional Tests, I got to know that I can't give FCM host while constructing a `FcmMessaging` object. The `FCM_URL` is hardcoded in the `FirebaseMessagingClientImpl` class, which is restricting me from writing functional tests.

**Solution**:
While constructing the `FcmMessaging` object or while initializing `FirebaseApp` there can be an option to pass the FCM host. If the host is not passed then the default hardcoded host must be used.

**Describe alternatives you've considered**
Currently, due to this, I'm blocked from writing FTs. I'm currently only dependent on UTs

贡献指南

打开贡献指南

调研方向

Start by reading FirebaseMessagingClientImpl to trace how FCM_URL is set and inspect the construction paths for FcmMessaging and FirebaseApp. Done means callers can provide an FCM host for functional or service-level tests while the default hardcoded host remains effective when no host is supplied.

由索引模型根据 Issue 内容生成。

评估

技术栈
firebase, java
领域
backend-api-design, testing
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。