diff options
author | Piotr Jaszczyk <piotr.jaszczyk@nokia.com> | 2018-06-14 09:48:46 +0200 |
---|---|---|
committer | Piotr Jaszczyk <piotr.jaszczyk@nokia.com> | 2018-08-02 09:49:02 +0200 |
commit | 67689405071acdad2b26d5112b3662605e474ce9 (patch) | |
tree | 3e945129934d5721922fdabf229b0d61b772dfdb /development.sh | |
parent | e7987b7a660060746d5f49e1ec90b1ff90fcf55a (diff) |
Various improvements
* Kotlin upgrade
* Monad usage on APIs
* Idle timeout
* Simulator enhancements
Closes ONAP-390
Change-Id: I3c00fcfe38c722caf661ddaad428cf089eeefcaa
Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Issue-ID: DCAEGEN2-601
Diffstat (limited to 'development.sh')
-rwxr-xr-x | development.sh | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/development.sh b/development.sh new file mode 100755 index 00000000..94500079 --- /dev/null +++ b/development.sh @@ -0,0 +1,66 @@ +#!/bin/bash + +# Usage: source ./development.sh and use functions defined here +# https://httpie.org/ is required for API calls + +export MAVEN_OPTS="-T1C" + +function veshv_full_rebuild() { + mvn clean install -Panalysis ${MAVEN_OPTS} +} + +function veshv_rebuild() { + mvn clean install ${MAVEN_OPTS} +} + +function veshv_build() { + mvn install ${MAVEN_OPTS} +} + +function veshv_fast_build() { + mvn install -DskipTests ${MAVEN_OPTS} +} + +function veshv_docker_start() { + docker-compose down + docker-compose rm -f + docker-compose up +} + +function veshv_docker_clean() { + docker volume prune +} + +function veshv_build_and_start() { + veshv_fast_build && veshv_docker_start +} + +function veshv_fresh_restart() { + docker-compose down + docker-compose rm -f + veshv_docker_clean + veshv_fast_build && docker-compose up +} + +function veshv_simul_dcaeapp_count() { + http --json GET http://localhost:8100/messages/count +} + +function veshv_simul_dcaeapp_last_key() { + http --json GET http://localhost:8100/messages/last/key +} + +function veshv_simul_dcaeapp_last_value() { + http --json GET http://localhost:8100/messages/last/value +} + +function veshv_simul_client() { + # feed me with json file using "<" + http --json POST http://localhost:8000/simulator/sync +} + +function veshv_simul_client_async() { + # feed me with json file using "<" + http --json POST http://localhost:8000/simulator/async +} + |