-
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.
Merge pull request #284 from Clariteia/0.0.3
0.0.3
- Loading branch information
Showing
229 changed files
with
61,749 additions
and
1,931 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
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,53 @@ | ||
name: Unit Tests - Cart | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: python:3.9-buster | ||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_DB: cart_db | ||
POSTGRES_USER: minos | ||
POSTGRES_PASSWORD: min0s | ||
ports: | ||
- 5432:5432 | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
|
||
zookeeper: | ||
image: wurstmeister/zookeeper:latest | ||
ports: | ||
- 2181:2181 | ||
|
||
kafka: | ||
image: wurstmeister/kafka:latest | ||
ports: | ||
- 9092:9092 | ||
env: | ||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | ||
KAFKA_ADVERTISED_HOST_NAME: kafka | ||
defaults: | ||
run: | ||
working-directory: ./microservices/cart | ||
|
||
env: | ||
MINOS_REPOSITORY_HOST: postgres | ||
MINOS_SNAPSHOT_HOST: postgres | ||
MINOS_BROKER_QUEUE_HOST: postgres | ||
MINOS_BROKER_HOST: kafka | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Run tests | ||
run: poetry run pytest |
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,53 @@ | ||
name: Unit Tests - Customer | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: python:3.9-buster | ||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_DB: customer_db | ||
POSTGRES_USER: minos | ||
POSTGRES_PASSWORD: min0s | ||
ports: | ||
- 5432:5432 | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
|
||
zookeeper: | ||
image: wurstmeister/zookeeper:latest | ||
ports: | ||
- 2181:2181 | ||
|
||
kafka: | ||
image: wurstmeister/kafka:latest | ||
ports: | ||
- 9092:9092 | ||
env: | ||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | ||
KAFKA_ADVERTISED_HOST_NAME: kafka | ||
defaults: | ||
run: | ||
working-directory: ./microservices/customer | ||
|
||
env: | ||
MINOS_REPOSITORY_HOST: postgres | ||
MINOS_SNAPSHOT_HOST: postgres | ||
MINOS_BROKER_QUEUE_HOST: postgres | ||
MINOS_BROKER_HOST: kafka | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Run tests | ||
run: poetry run pytest |
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
on: | ||
push: | ||
paths: | ||
- 'microservices/order/**' | ||
name: Unit Tests - Order | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
|
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
on: | ||
push: | ||
paths: | ||
- 'microservices/payment/**' | ||
name: Unit Tests - Payment | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
|
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,53 @@ | ||
name: Unit Tests - Review | ||
|
||
on: push | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: python:3.9-buster | ||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_DB: review_db | ||
POSTGRES_USER: minos | ||
POSTGRES_PASSWORD: min0s | ||
ports: | ||
- 5432:5432 | ||
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
|
||
zookeeper: | ||
image: wurstmeister/zookeeper:latest | ||
ports: | ||
- 2181:2181 | ||
|
||
kafka: | ||
image: wurstmeister/kafka:latest | ||
ports: | ||
- 9092:9092 | ||
env: | ||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | ||
KAFKA_ADVERTISED_HOST_NAME: kafka | ||
defaults: | ||
run: | ||
working-directory: ./microservices/review | ||
|
||
env: | ||
MINOS_REPOSITORY_HOST: postgres | ||
MINOS_SNAPSHOT_HOST: postgres | ||
MINOS_BROKER_QUEUE_HOST: postgres | ||
MINOS_BROKER_HOST: kafka | ||
|
||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Install Poetry | ||
uses: snok/[email protected] | ||
|
||
- name: Install dependencies | ||
run: poetry install | ||
|
||
- name: Run tests | ||
run: poetry run pytest |
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 |
---|---|---|
@@ -1,80 +1,15 @@ | ||
rest: | ||
host: 0.0.0.0 | ||
port: 5566 | ||
endpoints: | ||
|
||
- name: AddOrder | ||
route: /orders | ||
method: POST | ||
controller: minos.api_gateway.rest.DefaultController | ||
action: default | ||
|
||
- name: GetOrders | ||
route: /orders | ||
method: GET | ||
controller: minos.api_gateway.rest.DefaultController | ||
action: default | ||
|
||
- name: AddPayment | ||
route: /payments | ||
method: POST | ||
controller: minos.api_gateway.rest.DefaultController | ||
action: default | ||
|
||
- name: GetPayments | ||
route: /payments | ||
method: GET | ||
controller: minos.api_gateway.rest.DefaultController | ||
action: default | ||
|
||
- name: AddProduct | ||
route: /products | ||
method: POST | ||
controller: minos.api_gateway.rest.DefaultController | ||
action: default | ||
|
||
- name: GetProducts | ||
route: /products | ||
method: GET | ||
controller: minos.api_gateway.rest.DefaultController | ||
action: default | ||
|
||
- name: DeleteProduct | ||
route: /products/{id} | ||
method: DELETE | ||
controller: minos.api_gateway.rest.DefaultController | ||
action: default | ||
|
||
- name: UpdateInventory | ||
route: /products/{uuid}/inventory | ||
method: PUT | ||
controller: minos.api_gateway.rest.DefaultController | ||
action: default | ||
|
||
- name: UpdateInventoryDiff | ||
route: /products/{uuid}/inventory | ||
method: PATCH | ||
controller: minos.api_gateway.rest.DefaultController | ||
action: default | ||
|
||
- name: GetTickets | ||
route: /tickets | ||
method: GET | ||
controller: minos.api_gateway.rest.DefaultController | ||
action: default | ||
|
||
- name: CreateUser | ||
route: /users | ||
method: POST | ||
controller: minos.api_gateway.rest.DefaultController | ||
action: default | ||
|
||
endpoints: [] | ||
discovery: | ||
host: localhost | ||
port: 5567 | ||
path: /discover | ||
path: "" | ||
endpoints: [] | ||
db: | ||
host: localhost | ||
port: 6379 | ||
password: | ||
cors: | ||
enabled: true |
Oops, something went wrong.