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

貢獻指南

開啟貢獻指南

研究方向

先閱讀 FirebaseMessagingClientImpl,追蹤 FCM_URL 的設定方式,並檢查 FcmMessaging 與 FirebaseApp 的建構路徑。完成的標準是:呼叫端可以為功能測試或服務層級測試提供 FCM 主機;未提供主機時,預設硬編碼的主機仍然有效。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
firebase, java
領域
backend-api-design, testing
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。