firebase / firebase/firebase-admin-java

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

Aberta
#802 5 comentários 1 reação 0 responsáveis Ver no GitHub
needs-triage type: feature request
Linguagem predominante
Java
Estrelas
620
Forks
305
Merge médio
3h 23min
PRs com merge (30d)
1

Descrição

**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

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Comece lendo FirebaseMessagingClientImpl para rastrear como FCM_URL é definido e inspecione os caminhos de construção de FcmMessaging e FirebaseApp. Considera-se concluído quando os chamadores puderem fornecer um host FCM para testes funcionais ou de nível de serviço, enquanto o host padrão codificado permanece efetivo quando nenhum host é fornecido.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
firebase, java
Domínio
backend-api-design, testing
Tipo de issue
Funcionalidade
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
42/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.