Loading .gitignore +1 −0 Original line number Diff line number Diff line Loading @@ -24,3 +24,4 @@ /dist/ /nbdist/ /.nb-gradle/ */target/ No newline at end of file README.md +1 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,7 @@ Afterward you gain a bearer token, which you can use to access other services. Go to main project directory and run`python scenario.py` Scenario will run correctly only in linux systems or in wsl, databases and services need to be started via docker-compose. Before running the scenario, you need to change the token in the scenario.py file to your token you got from the security server. In the scenario, you can see how the services work together and how the basic usage of the system might look like. ### Metrics and monitoring Loading compose.yml +0 −14 Original line number Diff line number Diff line Loading @@ -153,20 +153,6 @@ services: volumes: - ./security/etc/external-app.yml:/app/etc/application.yml master: image: locustio/locust ports: - "8089:8089" volumes: - ./:/mnt/locust command: -f /mnt/locust/locustfile.py --master -H http://master:8089 worker: image: locustio/locust volumes: - ./:/mnt/locust command: -f /mnt/locust/locustfile.py --worker --master-host master volumes: wine-production-db: harvest-management-db: Loading customer-service/src/main/java/cz/muni/fi/pa165/facade/InvoiceFacadeImpl.java +1 −0 Original line number Diff line number Diff line Loading @@ -140,6 +140,7 @@ public class InvoiceFacadeImpl implements InvoiceFacade { } return items.stream().map(item -> { InvoiceItemDTO itemDTO = new InvoiceItemDTO(); itemDTO.setName(item.getName()); itemDTO.setPrice(item.getPrice()); itemDTO.setQuantity(item.getQuantity()); itemDTO.setWineExtId(item.getWineExtId()); Loading customer-service/src/main/java/cz/muni/fi/pa165/service/InvoiceServiceImpl.java +1 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,7 @@ public class InvoiceServiceImpl implements InvoiceService { private InvoiceItemDAO mapToInvoiceItemDAO(InvoiceItemDTO invoiceItemDTO) { InvoiceItemDAO invoiceItemDAO = new InvoiceItemDAO(); invoiceItemDAO.setName(invoiceItemDTO.getName()); invoiceItemDAO.setPrice(invoiceItemDTO.getPrice()); invoiceItemDAO.setQuantity(invoiceItemDTO.getQuantity()); invoiceItemDAO.setWineExtId(invoiceItemDTO.getWineExtId()); Loading Loading
.gitignore +1 −0 Original line number Diff line number Diff line Loading @@ -24,3 +24,4 @@ /dist/ /nbdist/ /.nb-gradle/ */target/ No newline at end of file
README.md +1 −0 Original line number Diff line number Diff line Loading @@ -57,6 +57,7 @@ Afterward you gain a bearer token, which you can use to access other services. Go to main project directory and run`python scenario.py` Scenario will run correctly only in linux systems or in wsl, databases and services need to be started via docker-compose. Before running the scenario, you need to change the token in the scenario.py file to your token you got from the security server. In the scenario, you can see how the services work together and how the basic usage of the system might look like. ### Metrics and monitoring Loading
compose.yml +0 −14 Original line number Diff line number Diff line Loading @@ -153,20 +153,6 @@ services: volumes: - ./security/etc/external-app.yml:/app/etc/application.yml master: image: locustio/locust ports: - "8089:8089" volumes: - ./:/mnt/locust command: -f /mnt/locust/locustfile.py --master -H http://master:8089 worker: image: locustio/locust volumes: - ./:/mnt/locust command: -f /mnt/locust/locustfile.py --worker --master-host master volumes: wine-production-db: harvest-management-db: Loading
customer-service/src/main/java/cz/muni/fi/pa165/facade/InvoiceFacadeImpl.java +1 −0 Original line number Diff line number Diff line Loading @@ -140,6 +140,7 @@ public class InvoiceFacadeImpl implements InvoiceFacade { } return items.stream().map(item -> { InvoiceItemDTO itemDTO = new InvoiceItemDTO(); itemDTO.setName(item.getName()); itemDTO.setPrice(item.getPrice()); itemDTO.setQuantity(item.getQuantity()); itemDTO.setWineExtId(item.getWineExtId()); Loading
customer-service/src/main/java/cz/muni/fi/pa165/service/InvoiceServiceImpl.java +1 −0 Original line number Diff line number Diff line Loading @@ -62,6 +62,7 @@ public class InvoiceServiceImpl implements InvoiceService { private InvoiceItemDAO mapToInvoiceItemDAO(InvoiceItemDTO invoiceItemDTO) { InvoiceItemDAO invoiceItemDAO = new InvoiceItemDAO(); invoiceItemDAO.setName(invoiceItemDTO.getName()); invoiceItemDAO.setPrice(invoiceItemDTO.getPrice()); invoiceItemDAO.setQuantity(invoiceItemDTO.getQuantity()); invoiceItemDAO.setWineExtId(invoiceItemDTO.getWineExtId()); Loading