RyazMax / techpark-db

Project db

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Documentation for API

Documentation for API is stated in OpenAPI: swagger.yml

Documantion can be read in : https://tech-db-forum.bozaro.ru/

To run docker use:

docker build -t forum .
docker run -p 5000:5000 --name forum -t forum

Functional testing

API will be testes by automated functional testing

Method of testing:

  • build Docker;
  • run Docker;
  • run testing script in Go;
  • stop Docker.

Testing programs can be downloaded via:

For local usage of Go testing script use:

go get -u -v github.com/bozaro/tech-db-forum
go build github.com/bozaro/tech-db-forum

After that tech-db-forum will be created.

Run functional testing

To run functional testing use:

./tech-db-forum func -u http://localhost:5000/api -r report.html

Possible parammetres:

Parammetr Description
-h, --help Print possible parammetres
-u, --url[=http://localhost:5000/api] set base URL of tested application
-k, --keep Keep testing after first failed test
-t, --tests[=.*] Mask of running tests (regular expression)
-r, --report[=report.html] Report file name

About

Project db


Languages

Language:Go 83.8%Language:PLpgSQL 11.8%Language:Dockerfile 4.3%