aboutsummaryrefslogtreecommitdiffstats
path: root/vagrant/tests/plugin.sh
AgeCommit message (Collapse)AuthorFilesLines
2019-03-22Restructuring the repo.Akhila Kishore1-161/+0
The idea is to restructure the existing repo create a deployment independent of Vagrant or other hosting providers. Renamed KRD to KUbernetes Deploy(Kud) including the ansible scripts Added new path to functional tests. Moved samples pdfs to sites. Minor changes to Readme. Updated aio.sh, moved sample config Corrected other nits. Updated and verified test cases. Addressed comments and changes associated with it. Updated Readme and minor change in Vagrantfile. Validated test cases again. Moved aio.sh into vagrant folder. Added new README for each hosting provider and project on the whole. Updated the installer script with relative path. Updated the name to deployment_infra, moved the cFW sripcts to tests. Updated the gitignore file. Issue-ID: MULTICLOUD-301 Change-Id: Ie48c26b12ab58b604493fba58a9c5b9f8ba10942 Signed-off-by: Akhila Kishore <akhila.kishore@intel.com>
2019-03-19Bring in all the other helper codeKiran Kamineni1-3/+3
Bring in all the helper functions added for end to end integration. This allows the api level upload of helm charts, profiles and also instantiation of said helm charts. P3: Plugin index is based on lowercase kind name whereas the map contains the correct case for kind. Convert to lower case before loading the plugin. Changes after rebasing on the new folder structure. Rebasing over the new folder structure P8: Add unit tests for Resolve function Fix the integration tests for createvnf I had to add a huge blob of base64 encoded data based on the profile and sample helm chart to test the flow. P12: Update the integration test with the rb_profile_id parameter Issue-ID: MULTICLOUD-291 Change-Id: If04c41cb185074989ab6c96557958140c43e456d Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2019-03-08Add test helm chart for testingKiran Kamineni1-9/+73
Add a test helm chart for testing the end to end flow. This chart brings up a service and a deployment. The deployment brings up two containers, vault and consul. Vault and Consul are brought up in dev mode. The helm chart also has a subchart, common, which contains templates that are used within the main chart. Added an override deployment.yaml which creates only one container instead of two Fixed plugin.sh and tar file creation steps Issue-ID: MULTICLOUD-291 Change-Id: I7eb10c9f43f8a4e09938139b5e2edee5d59feb3b Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com> Signed-off-by: Victor Morales <victor.morales@intel.com>
2018-12-14Migrating from consul to mongodb for backendKiran Kamineni1-1/+1
Migrating to mongodb from consul. The main reason being the value size limitation of 512kb in consul. See https://jira.onap.org/browse/MULTICLOUD-426 for details. This requires a little bit of hierarchy management and data management. We are no longer converting structs to json encoded strings. The underlying db supports structs without any modifications. Also, since Mongo has the concept of collections, each submodule can use its own collection for storage as needed. Definition uses a collection called rbdef right now. P10: Enabling unit tests for mongo.go. This requires the usage of aliased functions. P11: Expanded unit tests for all functions in mongo.go P12: Refactored parameter validation. Removed TestHealthCheck as we are not mocking any of the db commands right now Checking return value of read with an expected value P13: Adding back consul support. Fixing functional test Full consul implementation check and modifications is being tracked by MULTICLOUD-427 P15: Fix ReadAll unit test and corresponding code ReadAll now returns error when no objects are found Issue-ID: MULTICLOUD-426 Change-Id: I42d239b324025fc4ef4e561790aceeff794001ef Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-09-17Refactor plugin.sh functional testVictor Morales1-65/+17
There are some instructions located in plugin.sh script which can be exported to a common place like _common.sh library. This change moves those instructions. Change-Id: I44aeaf75ea70aa2148b17bbcb82314ea339d7a00 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-13Complete Plugin Functional testsVictor Morales1-16/+20
The script that consumes the Plugin Endpoints to ensuring its funtionality was completed. This change helps to covers all the endpoints exposed by the API. Change-Id: I56d1412debd3942d42484389a1c3ff04aa3da563 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-11Complete Plugin Functional TestsVictor Morales1-20/+64
It was fixed the issue to connect the plugin with the consul DB. This was a main roadblock to complete the functional Tests for the plugin. Change-Id: I3032e82a8f6baf4739c7433a5ffa97dac23daac8 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-10Add no_proxy config value to docker-compose.ymlVictor Morales1-1/+1
The no_proxy configuration value was missing in the docker-compose.yml this was causing a different behaviour when the functional tests were running and consuming the services on the container. Change-Id: Ie88e88d50e0ec9c4aa0d03367f2a9d25edccb753 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-06Improve compilation processVictor Morales1-2/+2
The current architecture offers the possibility to add more plugins and extend the its functionality. This flexibility has to be supported during the compilation process. This change modify the Makefile to find plugins and compile them. It also adds a start.sh script which allows to run MultiCloud services without the need of packaging their binaries in a container. Change-Id: I9271c51daa4fd9156717e37f1818886c72e36c27 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-08-30Add KRD source codeVictor Morales1-0/+97
This changes includes the source code created for the Kubernetes Reference Deployment(KRD) which helps to provide an automated mechanism to install and configure Kubernetes services required for the MultiCloud/K8s plugin. Change-Id: Ica49566fcd531e25846ed3e5062de2f92ec56f6c Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301