firebase / firebase/firebase-admin-java

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

オープン
#802 コメント 5 件 リアクション 1 件 担当者 0 名 GitHub で見る
needs-triage type: feature request
主要言語
Java
スター
620
フォーク
305
平均マージ
3時間 23分
マージ済み PR(30日)
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 を短くまとめたダイジェスト。