- For running API tests is required to follow step-by-step:
docker compose -f compose-test.yml up -d
- startup test docker compose environment- Once elasticsearch cluster in container has been started - perform queries from
/dumps/elastic/initiate-elastic.http
- Run test-class
All data used for tests is present in /src/test/resources/data/test-data.json
- Create a Spring-boot service application with REST CRUD methods for the following entities: Category, Product, Order and OrderItem.
- Category contains: name and a list of products.
- Product contains: price, sku and name.
- Order Item contains: “quantity” value and has connection to Product.
- Order contains: a list of order items and a total amount of the order.
- Add report controller, which returns date and sum of income for each day in JSON format (2016-08-22: 250.65, 2016-08.23: 571.12 ... etc).
- Integrate ElasticSearch and add “search” method, which must return the list of orders by part of the product name. Technology stack: Spring-boot, Hibernate, Liquibase, PostgreSQL, ElasticSearch. Will be a plus:
- add appropriate tests to REST methods;
- add integration with Swagger.