Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Latest commit

 

History

History
69 lines (45 loc) · 1.16 KB

README.md

File metadata and controls

69 lines (45 loc) · 1.16 KB

Autoscaler - Scheduler

Database

Create tables

Create Scheduler tables

java -cp 'db/target/lib/*'  liquibase.integration.commandline.Main --changeLogFile=scheduler/db/scheduler.changelog-master.yaml --url jdbc:postgresql://127.0.0.1/autoscaler --driver=org.postgresql.Driver update

Create Quartz Scheduler tables

java -cp 'db/target/lib/*'  liquibase.integration.commandline.Main --changeLogFile=scheduler/db/quartz.changelog-master.yaml --url jdbc:postgresql://127.0.0.1/autoscaler --driver=org.postgresql.Driver update

Generate certificates

pushd scripts
./generate_unit_test_certs.sh
popd

Package

Skip Unit Test

mvn clean package -Dmaven.test.skip=true

Package and run Unit Test

mvn clean package

Run Unit Tests

All

mvn test

To run specific class tests specify the test class name

For example to run ScheduleManagerTest

mvn -Dtest=ScheduleManagerTest test

API documentation

Start scheduler module

mvn spring-boot:run

Access API documentation using following url on the browser

http://localhost:8080/swagger-ui.html