feat: add integration testing

This commit is contained in:
Aravinth Manivannan 2023-12-31 01:28:43 +05:30
parent c72688656f
commit e548a532a0
Signed by: realaravinth
GPG Key ID: F8F50389936984FF
2 changed files with 44 additions and 0 deletions

View File

@ -5,10 +5,22 @@ steps:
- apt update
- apt-get install -y --no-install-recommends protobuf-compiler
- cargo build
- cargo test
# - make migrate
# - make
# - make release
# - make test // requires Docker-in-Docker
backend:
image: python
commands:
- pip install -r requirements.txt
- nohup ./target/debug/main
- nohup ./target/debug/main --id 1 --http-addr 127.0.0.1:9001 --introducer-addr 127.0.0.1:9001 --introducer-id 1 --cluster-size 3 &
- sleep 1
- nohup ./target/debug/main --id 2 --http-addr 127.0.0.1:9002 --introducer-addr 127.0.0.1:9001 --introducer-id 1 --cluster-size 3 &
- sleep 1
- nohup ./target/debug/main --id 3 --http-addr 127.0.0.1:9003 --introducer-addr 127.0.0.1:9001 --introducer-id 1 --cluster-size 3 &
- python tests/tests.py
build_docker_img:
image: plugins/docker

32
requirements.txt Normal file
View File

@ -0,0 +1,32 @@
asyncio==3.4.3
blinker==1.7.0
Brotli==1.1.0
certifi==2023.11.17
charset-normalizer==3.3.2
click==8.1.7
ConfigArgParse==1.7
Flask==3.0.0
Flask-BasicAuth==0.2.0
Flask-Cors==4.0.0
gevent==23.9.1
geventhttpclient==2.0.11
greenlet==3.0.2
grpc-interceptor==0.15.4
grpcio==1.60.0
grpcio-tools==1.60.0
idna==3.6
itsdangerous==2.1.2
Jinja2==3.1.2
locust==2.20.0
MarkupSafe==2.1.3
msgpack==1.0.7
protobuf==4.25.1
psutil==5.9.7
pyzmq==25.1.2
requests==2.31.0
roundrobin==0.0.4
six==1.16.0
urllib3==2.1.0
Werkzeug==3.0.1
zope.event==5.0
zope.interface==6.1