Skip to content

Dummy server that simulates google GCM responses, it is designed to easy make an integration test in order to verify if tokens are properly managed

Notifications You must be signed in to change notification settings

twiindan/python-gcm-dummy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python-gcm-dummy

Dummy server that simulates google GCM responses, it is designed to make easier integration tests in order to verify if tokens are properly managed

Only json format is supported and there is no ssl support

Responses

By default server will output ok responses but a results file can be defined.

Example file:

sometokentoresponseok,OK
sometokentobeupdated,UPDATE
sometokeninvalid,INVALID

Server will automatically load any resuts.csv file in the working dir.

Usage

pip install gevent
python server.py
Starting server on 0.0.0.0:8081

Options

python server.py --help
Usage: server.py [options]

Options:
  -h, --help            show this help message and exit
  -p PORT, --port=PORT  Server port [8081]
  -b BIND, --bind_address=BIND
                        Bind addreess [0.0.0.0]
  -r RFILE, --results_file=RFILE
                        Results file [results.csv]

About

Dummy server that simulates google GCM responses, it is designed to easy make an integration test in order to verify if tokens are properly managed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%