#!/bin/bash # SPDX-license-identifier: Apache-2.0 ############################################################################## # Copyright (c) 2018 # All rights reserved. This program and the accompanying materials # are made available under the terms of the Apache License, Version 2.0 # which accompanies this distribution, and is available at # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## set -o errexit set -o nounset set -o pipefail #set -o xtrace source _common_test.sh source _functions.sh source _common.sh if [ ${1:+1} ]; then if [ "$1" == "--external" ]; then master_ip=$(kubectl cluster-info | grep "Kubernetes master" | \ awk -F ":" '{print $2}' | awk -F "//" '{print $2}') onap_svc_node_port=30498 base_url="http://$master_ip:$onap_svc_node_port/v1" fi fi base_url=${base_url:-"http://localhost:9015/v1"} kubeconfig_path="$HOME/.kube/config" csar_eaa_id=8030a02a-7253-11ea-bc55-0242ac130003 csar_sample_app_id=150da0b3-aa8c-481e-b661-2620b810765e rb_eaa_name="eaa" rb_sample_app_name="sample_app" rb_version="plugin_test" chart_eaa_name="eaa" chart_sample_app_name="sample-app" profile_eaa_name="test_eaa_profile" profile_sample_app_name="test_sample_app_profile" release_name="test-release" namespace_eaa="openness" namespace_sample_app="default" cloud_region_id="kud" cloud_region_owner="localhost" # Setup install_deps populate_CSAR_eaa_rbdefinition "$csar_eaa_id" print_msg "Registering resource bundle for EAA" payload="$(cat </dev/null #massive output print_msg "Creating EAA" payload="$(cat <