From e1da0280bace98f0dc109c1b71ffddd3bfaa947b Mon Sep 17 00:00:00 2001 From: Matthias Gatto Date: Fri, 15 Sep 2023 11:51:49 +0200 Subject: [PATCH] add local test Signed-off-by: Matthias Gatto --- local_tests.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 local_tests.sh diff --git a/local_tests.sh b/local_tests.sh new file mode 100755 index 00000000..8024f1de --- /dev/null +++ b/local_tests.sh @@ -0,0 +1,41 @@ +#!/bin/sh + +# Copyright (c) Outscale SAS +# +# SPDX-License-Identifier: BSD-3-Clause + +export OSC_PASSWORD='ashita wa dochida' +export OSC_LOGIN=joe + +export OMI_ID="ami-90067666" + +export OSC_SECRET_KEY=0000001111112222223333334444445555555666 +export OSC_ACCESS_KEY=11112211111110000000 + +export OSC_ENDPOINT_API="http://127.0.0.1:3000/api/v1" +export OSC_ENDPOINT_API_NOPROTO="127.0.0.1:3000/api/v1" +export OSC_REGION="vp-ware-3" +export OSC_PROTOCOL="http" + +export OSC_USING_RICOCHET="oui" + +if [ "$#" -eq 0 ]; then + + if [ ! -d "osc-ricochet-2" ]; then + git clone https://github.com/outscale-mgo/osc-ricochet-2 + fi + + cd osc-ricochet-2 + pkill ricochet + + cargo build --profile 'sdks' + cargo run --profile 'sdks' -- ./ricochet.json &> /dev/null & + cd .. + + sleep 5 +fi + +set -e + +make example-node-create-volumes +make example-node-volumes