aboutsummaryrefslogtreecommitdiffstats
path: root/vagrant/tests/integration_vFW.sh
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2018-10-05 08:35:07 -0700
committerVictor Morales <victor.morales@intel.com>2018-10-05 08:35:07 -0700
commit5878ca891f41df871d69169a411fdfccf4ff74c1 (patch)
tree0566f7a206c21a9ac811eb7c18b7a9e6f5ea7fb9 /vagrant/tests/integration_vFW.sh
parent373ab2024543a1d3c0d025715e80c3755995d6b5 (diff)
Using VirtletCloudInitUserData section
The VirtletCloudInitUserData section defines instructions used by cloud-init service to post-provisioning VMs. But this section cannot be used with VirtletCloudInitUserDataScript in the Deployment file definition. This changer replaces these virtlet sections. Change-Id: I03f5fee223d43b21ceadd50bc356cec4e96cab23 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
Diffstat (limited to 'vagrant/tests/integration_vFW.sh')
-rwxr-xr-xvagrant/tests/integration_vFW.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/vagrant/tests/integration_vFW.sh b/vagrant/tests/integration_vFW.sh
index ee0205cb..df27065a 100755
--- a/vagrant/tests/integration_vFW.sh
+++ b/vagrant/tests/integration_vFW.sh
@@ -24,10 +24,11 @@ fi
popule_CSAR_vms_vFW $csar_id
pushd ${CSAR_DIR}/${csar_id}
-for network in unprotected-private-net-cidr-network protected-private-net-cidr-network onap-private-net-cidr-network; do
- kubectl apply -f $network.yaml
+for resource in unprotected-private-net-cidr-network protected-private-net-cidr-network onap-private-net-cidr-network sink-service sink-ingress; do
+ kubectl apply -f $resource.yaml
done
setup $packetgen_deployment_name $firewall_deployment_name $sink_deployment_name
+#kubectl port-forward deployment/$sink_deployment_name 667:667
# Test
for deployment_name in $packetgen_deployment_name $firewall_deployment_name $sink_deployment_name; do
@@ -35,6 +36,7 @@ for deployment_name in $packetgen_deployment_name $firewall_deployment_name $sin
vm=$(kubectl plugin virt virsh list | grep ".*$deployment_name" | awk '{print $2}')
echo "Pod name: $pod_name Virsh domain: $vm"
echo "ssh -i ~/.ssh/id_rsa.pub admin@$(kubectl get pods $pod_name -o jsonpath="{.status.podIP}")"
+ echo "kubectl attach -it $pod_name"
echo "=== Virtlet details ===="
echo "$(kubectl plugin virt virsh dumpxml $vm | grep VIRTLET_)\n"
done