Compare commits

..

2 Commits

Author SHA1 Message Date
90b09b55ea coverage
Some checks failed
continuous-integration/drone/push Build is failing
2020-05-14 21:21:41 +02:00
d07eb28f58 test with curl
All checks were successful
continuous-integration/drone/push Build is passing
2020-05-08 22:41:22 +02:00
4 changed files with 6 additions and 10 deletions

View File

@ -38,7 +38,7 @@ steps:
- name: coverage - name: coverage
image: python:3.8 image: python:3.8
environment: environment:
REDIS_URL: "redis://cache" PRODUCER_REDIS: cache
commands: commands:
- pip3 install --cache-dir='./.pipcache' -r requirements.txt - pip3 install --cache-dir='./.pipcache' -r requirements.txt
- pip3 install --cache-dir='./.pipcache' coverage pytest - pip3 install --cache-dir='./.pipcache' coverage pytest

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# producer-endpoint

View File

@ -1,6 +0,0 @@
=================
Producer endpoint
=================
Manages IP changes of consumers. If a consumer sends a message to /ip endpoint, it will write the gotten IP address into the redis DB.
Produced by GoldenPogácsa Inc.

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
curl --header "Content-Type: application/json" \ curl --header "Content-Type: application/json" \
--request POST \ --request POST \
--data '{"uuid":"c959ad81-58f9-4445-aab4-8f3d68aee1ad", "ip":"127.1.2.3"}' \ --data '{"uuid":"c959ad81-58f9-4445-aab4-8f3d68aee1ad", "ip":"127.1.2.3"}' \
http://localhost:5000/ip http://localhost:5000/ip