diff options
author | Victor Morales <victor.morales@intel.com> | 2019-01-15 10:10:04 -0800 |
---|---|---|
committer | Victor Morales <victor.morales@intel.com> | 2019-01-17 04:45:16 -0800 |
commit | c45fe7124c018f3d7bae67f4507406bcdc2de788 (patch) | |
tree | 65e34b5e20c3e08222e4b230f7203bdb5243be3b /lib/files/test-complex | |
parent | 76e856209a5389cc12d6b063ed29f46664387d96 (diff) |
Update AAI script
The way to configure the AAI environment in standalone mode has been
change in Casablanca release[1]. Now this project now uses JanusGraph
database instead of Titan. This change pretends to reflect those
changes offering a single line command to provision an environment.
$ ./tools/run.sh aai
[1] https://wiki.onap.org/display/DW/AAI+Developer+Environment+Setup+-+Casablanca
Change-Id: I222d98d4a158d94dca8d07bec1430cebab072b89
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: INT-470
Diffstat (limited to 'lib/files/test-complex')
-rwxr-xr-x | lib/files/test-complex | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/files/test-complex b/lib/files/test-complex new file mode 100755 index 0000000..2d4e53b --- /dev/null +++ b/lib/files/test-complex @@ -0,0 +1,21 @@ +set -x + +PROTO=https:// +AAIINST1=127.0.0.1:8443/aai/v14 +CURLOPTS="--verbose --silent --insecure --user AAI:AAI" +CURLHDR='--header "Accept: application/json" --header "X-TransactionId: testaai" --header "Content-Type: application/json" --header "X-FromAppId: AAI"' + +date + +eval curl $CURLOPTS $CURLHDR $PROTO$AAIINST1/cloud-infrastructure/complexes | jq '.' +eval curl $CURLOPTS $CURLHDR --upload-file data-complex.json $PROTO$AAIINST1/cloud-infrastructure/complexes/complex/clli2 | jq '.' +eval curl $CURLOPTS $CURLHDR $PROTO$AAIINST1/cloud-infrastructure/complexes/complex/clli2 | jq '.' +eval curl $CURLOPTS $CURLHDR $PROTO$AAIINST1/cloud-infrastructure/complexes | jq '.' + + +RESVER1=`eval curl $CURLOPTS $CURLHDR $PROTO$AAIINST1/cloud-infrastructure/complexes | jq '.["complex"] | .[] | select(.["physical-location-id"] == "clli2") | .["resource-version"] '` +eval curl $CURLOPTS $CURLHDR --request DELETE $PROTO$AAIINST1/cloud-infrastructure/complexes/complex/clli2?resource-version=$RESVER1 | jq '.' +eval curl $CURLOPTS $CURLHDR $PROTO$AAIINST1/cloud-infrastructure/complexes | jq '.' + +echo end test-complex + |