Merge "Add log level support for orchestrator"
[multicloud/k8s.git] / kud / tests / integration_cFW.sh
1 #!/bin/bash
2 # SPDX-license-identifier: Apache-2.0
3 ##############################################################################
4 # Copyright (c) 2018
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 set -o errexit
12 set -o nounset
13 set -o pipefail
14
15 source _common.sh
16 source _functions.sh
17
18 csar_id=4f726e2a-b74a-11e8-ad7c-525400feed2
19
20 # Setup
21 populate_CSAR_containers_vFW $csar_id
22
23 pushd ${CSAR_DIR}/${csar_id}
24 for resource in $unprotected_private_net $protected_private_net $onap_private_net; do
25     kubectl apply -f $resource.yaml
26 done
27 setup $packetgen_deployment_name $firewall_deployment_name $sink_deployment_name
28
29 # Test
30 popd
31
32 # Teardown
33 teardown $packetgen_deployment_name $firewall_deployment_name $sink_deployment_name