Sign inSign up

rslota/fcm-http2-mock-server

By rslota

•Updated over 9 years ago

Simple HTTP/2 based FCM mock for testing server applications.

Image
1

50K+

rslota/fcm-http2-mock-server repository overview

⁠FCM Mock Server (docker)

Simple HTTP/2 based FCM mock for testing server applications.

⁠Quick start

There is an atomatic build setup on my Docker Hub, so you can run this docker simply with:

docker run rslota/fcm-http2-mock-server

⁠API

The docker exposes one port - 443. Beside, of course, FCM API, there are some simple controll enpoints:

  • POST /reset - resets state of the mock
  • POST /error-tokens - by sending JSON list of objects you can set HTTP error code and error reason that should be returned for given device token. The objects should have the following fields: device_token, code, reason
  • GET /activity - returns (as JSON) history of FCM API calls to this mock

Tag summary

Content type

Image

Digest

Size

193.4 MB

Last updated

over 9 years ago

docker pull rslota/fcm-http2-mock-server