Skip to content

cosee/cwa-verification-fake

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cwa-verification-fake

This is a simple golang service to fake the verification service of the Corona-Warn-App.

Enter your fake TANs to the validTans array in the main.go. By default the service will start on port 8004. To try out the default setup, send a post request to http://localhost:8004/version/v1/tan/verify with the following reuqestBody:

{
    "tan": "edc07f08-a1aa-11ea-bb37-0242ac130002"
}

If requested with a TAN included in the valid TAN array, the fake service will return a status code 200. If the service is provided with any other valid UUID, the service will return a status code 404.

Quickstart

make run [delay-in-millis]

Runs the verification fake on localhost:8004 with optional delay-in-millis.

Environment Variables

Available when you run the container yourself independently of the make run target.

Name Default
CWA_FAKE_DELAY_MILLIS 0
CWA_FAKE_IP 0.0.0.0
CWA_FAKE_PORT 8004

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Go 57.3%
  • Makefile 35.6%
  • Dockerfile 7.1%