summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2018-10-31Migrate from dep to go modKiran Kamineni5-516/+102
Migrate from dep to go mod which is native package management functionality in golang 1.11 Issue-ID: MULTICLOUD-392 Change-Id: I9a94cb38bd230738d7d0e586e6956b7a46472dd7 Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
2018-10-02Merge "Fix build.sh deployment script"Bin Hu1-2/+1
2018-10-01Fix build.sh deployment scriptVictor Morales1-2/+1
The build.sh file didn't include the GOPATH variable which in some cases was causing some building failures. This change includes a source instruction at beginining of the file. Change-Id: I718411fd90ede74decbaac7efc5c065aa5a853fc Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-29Merge "Improve Services UTs"Victor Morales1-33/+104
2018-09-29Merge "Improve Namespaces UTs"Victor Morales2-31/+67
2018-09-29Merge "Improve Deployments UTs"Victor Morales1-34/+105
2018-09-29Merge "Add UTs for plugins module"Victor Morales2-5/+104
2018-09-26Improve Services UTsVictor Morales1-33/+104
The current implementation of Unit Tests for Services wasn't validating sucessful cases properly. This change fix that gap and increase the coverage number. Change-Id: Ib5daa607f38e490ced471a129a5fa71b2d4eb133 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-26Improve Deployments UTsVictor Morales1-34/+105
The current implementation of Unit Tests for Deployments wasn't validating sucessful cases properly. This change fix that gap and increase the coverage number. Change-Id: I9b891d700c152c9b57d6b5858867a7439ac83f3f Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-25Create code coverage reportVictor Morales1-1/+6
The cover action target allows the creation of code coverage report during the Jenkins Job execution, giving an idea of the impact of the change submitted. Change-Id: Ia2b8d57a0f9235ace021baaa6f74370b6656e58f Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-25Improve Namespaces UTsVictor Morales2-31/+67
The current implementation of Unit Tests for Namespaces wasn't validating sucessful cases properly. This change fix that gap and increase the coverage number. Change-Id: Iddc0aca3b52ea8ffebca7dccfc94d4d99e052b06 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-25Add UTs for plugins moduleVictor Morales2-5/+104
The KRD plugins module wasn't cover by Unit Tests that ensure their functionality. This change create Unit Tests that guarantees basic use cases. Change-Id: Idac9179bfb7b805ebadc60d9d1a41e73a6f13be7 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-25Fix ensure Namespace functionVictor Morales1-4/+7
The I1e1eb40f1a18ba33c74069a117462c8df17767ac change standarizes the Interface for the plugins, this changes affects callers and it's necessary to update those references. This change fix that issue for Namespace Kubernetes resources. Change-Id: I04c957fdd526401523b72e332b6e24385a7ceefe Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-18Add UTs to pluginsVictor Morales13-166/+777
Deployment, service and namespace are plugins which offers CRUD operations to manage their resources. They haven't implemented Unit Tests which makes fragile to change/refactor the source code. This change adds their corresponding Unit Tests and defines a standard interface. Change-Id: I1e1eb40f1a18ba33c74069a117462c8df17767ac Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-17Merge "Separate tests"Victor Morales5-9/+31
2018-09-14Separate testsVictor Morales5-9/+31
The current tests can be separated in two categories: unit test and integration tests. The criteria depends on the scope or dependencies required for the test. This change provides a mechanism to test only one category. Change-Id: Ib7bac49cb0b2d14544fb9704345436a7ba71aead Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-13Change metadata.yaml structureVictor Morales2-90/+76
The metadata.yaml was using a list of resources instead of a set. As result, it's possible to add resources that are duplicated. In order to avoid this the ResourceTypePathMap field was changed. Change-Id: Ic454a9c42fa367b58580641b62b3d1c7ac33b1ca Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-10Add no_proxy config value to docker-compose.ymlVictor Morales3-15/+89
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-7/+4
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-09-05Move mock plugin compilationVictor Morales1-12/+9
The instruction that compiles the Mock plugin is only required during the testing, therefore this instruction can be moved in different place in the Makefile Change-Id: Ib800b2b39992a1020e466aa3f22cada5ac84bcf6 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: MULTICLOUD-301
2018-09-04Merge "Update building process"Victor Morales1-4/+13
2018-08-31Make PLUGINS_DIR to be required than optionalShashank Kumar Shankar1-5/+2
This patch makes sure PLUGINS_DIR is not optional since its better explicitly pass the plugins directory. Change-Id: I08da5cf1563527d8b713fa106aa05b37a26c95cb Issue-ID: MULTICLOUD-301 Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com>
2018-08-31Update building processShashank Kumar Shankar1-4/+13
The building process differed from the build.sh script and Makefile. In other words, the docker images were created with different instructions than development process. This patch centralizes these instructions in a single source for building binaries. Change-Id: Ib214d335b0e696be6a1a09d3cb8126a75bdf2da4 Issue-ID: MULTICLOUD-301 Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com> Signed-off-by: Victor Morales <victor.morales@intel.com>
2018-08-24Seed code for k8s multicloud pluginShashank Kumar Shankar24-0/+2516
This patch provides the initial seed code for the multicloud Kubernetes plugin and also provides the plugin feature to add new Kubernetes kinds. Change-Id: Ie5ee414656665070cde2834c4855ac2ebc179a9a Issue-ID: MULTICLOUD-301 Signed-off-by: Shashank Kumar Shankar <shashank.kumar.shankar@intel.com> Signed-off-by: Victor Morales <victor.morales@intel.com>