-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pipline & bug fixes, adding test cases
- Loading branch information
1 parent
ea7cdc1
commit 1122d09
Showing
15 changed files
with
670 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
Auth: 5001 | ||
cache:6379 | ||
DB: 5432 | ||
# user:${email} | ||
# token includes: | ||
# generateToken({ id: userId.toString(), email, type }); | ||
auth_exchange => auth.registered => auth_queue | ||
Routes: | ||
GET /auth/health | ||
POST /auth/register:Params:{email}:{password} | ||
POST /auth/login:Params:{email}:{password} | ||
|
||
|
||
DB Server: 5003 | ||
|
||
|
||
Event: 8000 | ||
event_exchange => event.registered => event_queue | ||
cache:6380 | ||
DB: 5433 | ||
# event:{eventID} | ||
# events = live_events:{cursor}:{limit} | ||
|
||
Routes: | ||
GET /event/health | ||
POST /event/Params:{Whole Object} | ||
GET /event/{eventID} | ||
GET /event/events/URLParams:{cursor}:{limit} | ||
POST /event/settlements/Params:{eventID} | ||
|
||
Testcases: | ||
1. Write first because it's more needed | ||
Ex. | ||
1. Register | ||
1. Register a user | ||
2. Try to register the same user | ||
3. Try to register a user with invalid email | ||
4. Try to register a user with invalid password | ||
5. Try to register a user with invalid Params or Body | ||
2. Login | ||
1. Login a user | ||
2. Try to login a user with invalid email | ||
3. Try to login a user with not registered email | ||
4. Try to login a user with invalid password | ||
5. Try to login a user with invalid Params or Body | ||
|
||
3. Create an event | ||
1. Create an event | ||
2. Try to create an event with invalid Params or Body | ||
3. Unauthorizaed means not admin user try to create an event | ||
4. without token try to create an event | ||
|
||
4. Get an event | ||
1. Get an event | ||
2. Try to get an event with invalid eventID | ||
3. Try to get an event with invalid Params or Body | ||
4. without token try to get an event | ||
|
||
5. Get all live events | ||
1. Get all live events | ||
2. Try to get all live events with invalid Params or Body | ||
3. without token try to get all live events | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
version: '3.8' | ||
|
||
networks: | ||
main_network: | ||
external: true | ||
|
||
services: | ||
rabbitmq: | ||
image: rabbitmq:3-management | ||
container_name: rabbitmq | ||
restart: always | ||
ports: | ||
- "5672:5672" | ||
- "15672:15672" | ||
environment: | ||
RABBITMQ_DEFAULT_USER: "admin" | ||
RABBITMQ_DEFAULT_PASS: "password" | ||
RABBITMQ_ERLANG_COOKIE: "secret-cookie" | ||
RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: "-rabbitmq_management load_definitions \"/etc/rabbitmq/definitions.json\"" | ||
volumes: | ||
- rabbitmq_data:/var/lib/rabbitmq | ||
- ./rabbitmq/definitions.json:/etc/rabbitmq/definitions.json # Preconfigured Exchanges & Queues | ||
- ./rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf | ||
networks: | ||
- main_network | ||
|
||
volumes: | ||
rabbitmq_data: | ||
|
||
|
||
# docker run --rm rabbitmq:3-management rabbitmqctl hash_password adminpass(passowrd creations) |
Oops, something went wrong.