#################################################################
#################################################################
This folder contains following test cases to run with EMCO. These tests assumes one edge cluster to run all test cases. EMCO needs to be installed on a cluster before running these tests.
- Prometheus and Collectd Helm charts
- vFw
- Collectd Helm chart and adding configmap during instantiation (using Generic Action Controller)
- DTC ( Create client/server images using kud/tests/helm_charts/dtc/app-code/README.md )
- export environment variables 1) KUBE_PATH where the kubeconfig for edge cluster is located and 2) HOST_IP: IP address of the cluster where EMCO is installed
NOTE: For HOST_IP, assuming here that nodeports are used to access all EMCO services both from outside and between the EMCO services.
-
Setup script
Run Sets up script for creating artifacts needed to test EMCO on one cluster.
$ ./setup.sh create
Output of this command are 1) values.yaml file for the current environment 2) emco_cfg.yaml for the current environment and 3) Helm chart and profiles tar.gz files for all the usecases.
Cleanup artifacts generated above with cleanup command
$ ./setup.sh cleanup
-
Apply prerequisites.yaml. This is required for all the tests. This creates controllers, one project, one cluster, default logical cloud. This step is required to be done only once for all usecases:
$ $bin/emcoctl --config emco-cfg.yaml apply -f prerequisites.yaml -v values.yaml
-
Prometheus and Collectd usecase
$ $bin/emcoctl --config emco-cfg.yaml apply -f test-prometheus-collectd.yaml -v values.yaml
-
Generic action controller testcase
$ $bin/emcoctl --config emco-cfg.yaml apply -f test-gac.yaml -v values.yaml
-
Firewall testcase
$ $bin/emcoctl --config emco-cfg.yaml apply -f test-vfw.yaml -v values.yaml
NOTE: This usecase is only tested using kubernetes installation: https://github.com/onap/multicloud-k8s/tree/master/kud, which comes with the requisite packages installed.
multus - https://github.com/k8snetworkplumbingwg/multus-cni
ovn4nfv - https://github.com/akraino-edge-stack/icn-ovn4nfv-k8s-network-controller/tree/master
-
DTC testcase
$ $bin/emcoctl --config emco-cfg.yaml apply -f test-dtc.yaml -v values.yaml
-
Installing Monitor on edge cluster
$ $bin/emcoctl --config emco-cfg.yaml apply -f monitor.yaml -v values.yaml
-
Delete Prometheus and Collectd usecase
$ $bin/emcoctl --config emco-cfg.yaml delete -f test-prometheus-collectd.yaml -v values.yaml
-
Delete Generic action controller testcase
$ $bin/emcoctl --config emco-cfg.yaml delete -f test-gac.yaml -v values.yaml
-
Firewall testcase
$ $bin/emcoctl --config emco-cfg.yaml delete -f test-vfw.yaml -v values.yaml
-
DTC testcase
$ $bin/emcoctl --config emco-cfg.yaml delete -f test-dtc.yaml -v values.yaml
-
Cleanup prerequisites
$ $bin/emcoctl --config emco-cfg.yaml delete -f prerequisites.yaml -v values.yaml
-
Cleanup generated files
$ ./setup.sh cleanup