Age | Commit message (Collapse) | Author | Files | Lines |
|
Url path parameters are not tested in the current
unit tests. This is fixed with the use of the same
router that is used by the main program.
Issue-ID: MULTICLOUD-547
Change-Id: Ie162150fb1ecf22766011339e68e03f1067779a0
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
|
|
Change-Id: Id553c1300e6559443d87c58abf46bab81bf71535
Signed-off-by: Akhila Kishore <akhila.kishore@intel.com>
Issue-ID: MULTICLOUD-301
|
|
|
|
Remove build tags as this is causing issues where
mock plugins need to be loaded into files that do
unit testing as well.
Full integration testing is being done in the CSIT.
Issue-ID: MULTICLOUD-559
Change-Id: Icd147dac80d16a6fb8f33048c76d4083158cecd2
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
|
|
Using profilename instead of name in the db key
protects it from getting overwritten by anything
else that might use name as a key.
Using explicit key names makes sure that we don't
have to add bson structure tags in the code.
Issue-ID: MULTICLOUD-558
Change-Id: I9bd6f757496af22d8662b0d114f0ef7d33a5784a
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
|
|
The TestUpdate method was updated properly with the
merge on to master. This fixes that issue.
Issue-ID: MULTICLOUD-553
Change-Id: I97c95b628fade37304590de59bb4bb6faaeb4450
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
|
|
|
|
|
|
Fix some small typos in the readme.md file
Issue-ID: MULTICLOUD-350
Change-Id: I7ad44170ce773779e5c19711618ac8c349b618a9
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
|
|
Add update interface to the db.
This will allow us to support PUT http methods
in the future.
Issue-ID: MULTICLOUD-553
Change-Id: I7263d42e893734eadbdaf78022005d6004601772
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
|
|
Bringing all the definition and profile code upto the latest spec.
Integrated the end to end instance code changes that were made.
P9: Added updated plugin.sh with updated uri paths based on spec
Issue-ID: MULTICLOUD-291
Change-Id: Id6e3c6bc2cd02cfb7005e203ccf03e0793b97e95
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
|
|
|
|
|
|
|
|
Namespace is being created by k8splugin
if it doesn't exist. This is done before
other resources are created in kubernetes.
This patch removes check that failed if
namespace didn't exist
Change-Id: I8c5b2409ad1cf77d5f529f601870fcf87e8e8760
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Issue-ID: MULTICLOUD-462
|
|
Composite keys help us store objects which are unique
for a given set of pre-existing objects.
Eg: Many profiles can exist for a definition and its
key will have a definition name as a part of the composite key.
P2: Use a predefined interface for keys instead of generic interfaceP{}
P3: Add check for empty strings in stringer interface
P5: Add appropriate keys in other packages.
Issue-ID: MULTICLOUD-531
Change-Id: I314b1fbd718489ae8a45f0f38915c08ca32f9f43
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
|
|
Correcting the path to diagram.png on the Readme in KUD folder.
Change-Id: I6be0c4137f810277d81593bfb0f62b1b2332540b
Issue-ID: MULTICLOUD-301
Signed-off-by: Akhila Kishore <akhila.kishore@intel.com>
|
|
This configuration value allows to generate Libvirt instances with
randomly domain names generated. As result, it's possible to use this
project in the same server but in different folders at the same time.
As part of the change, it was necessary to centraliza some Libvirt
common configurations.
Change-Id: Ie6adf3f40de7a8cced875b0c899738f9f6449181
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301
|
|
|
|
|
|
Use httptest instead of http in unit tests similar to:
https://golang.org/pkg/net/http/httptest/#example_ResponseRecorder
Update empty body checking to account for change
Issue-ID: MULTICLOUD-545
Change-Id: Ib9775078c2c9ae2878b714363b569d8d79bd7698
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
|
|
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>
|
|
|
|
|
|
|
|
|
|
|
|
-a forces rebuilding of packages
that are already up-to-date. This is
slowing down builds to several minutes
Change-Id: Iac082538b91e60b23dc1a2f3b1f1597e078d7a4a
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Issue-ID: MULTICLOUD-301
|
|
NewRouter needs to support custom clients
This is needed where the backend clients are mocked
and we need url path parameters to be available in our
unit tests.
Using the same router code allows us to do this.
Issue-ID: MULTICLOUD-547
Change-Id: Id51b6f0a9afe4965efaf2611fc642bccb9ac1d39
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
|
|
Due to Ubuntu Kernel package issue
KRD is not installing.
https://bugs.launchpad.net/ubuntu/+source/linux-base/+bug/1820755
This is a workaround to not install
those kernel packages
Change-Id: Ib298ad695c2e7b88bef46340afc9407868820e1d
Signed-off-by: Ritu Sood <ritu.sood@intel.com>
Issue-ID: MULTICLOUD-301
|
|
|
|
|
|
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>
|
|
Mongo driver 1.0 was released recently
Upgrading from 0.2.0 which we were on right now.
Issue-ID: MULTICLOUD-530
Change-Id: I6d968e99b129d4307414ec31410505200b7bd47d
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
|
|
|
|
Push latest tag during the nightly docker build
along with the snapshot version that we already push
Issue-ID: MULTICLOUD-526
Change-Id: Ifb5e27c8d86577e54d5dad9ce1d8320b422fec62
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
|
|
Add support for evaluating helm templates
The interface provides a way to get a map which
contains a mapping from kubernetes kind to the
corresponding yaml file that defines a resource
of that kind. This map is then provided to the
instantiation code at instantiation time to create
in the kubernetes cluster.
P5: Use filepath.join instead of strings.join
P9: rebase with new folder structure
P10: moved the helm code into its own package.
P12: Add unit tests
update the go.mod to use latest docker version
Issue-ID: MULTICLOUD-291
Change-Id: Ie75f5c616cc0cdc3e0ace49ff2c2f6c356a4c0d1
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
|
|
|
|
Add code to parse profile configuration yaml
The parsing function is global and returns a client
which can then be used to get or apply specific parts
of the configuration on top of an extracted helm chart.
P14: Add unit test that covers both ProcessProfileYaml
and CopyConfigurationOverrides
P15: Adding mock_charts and mock_profiles
We expect to reuse these files for other unit tests
Issue-ID: ONAPARC-348
Change-Id: I4504d0b158fdfef476b8c2a461d33306926545d7
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
|
|
ChartName should not be mandatory field
If not provided it will be detected by inspection
of the tar.gz archive.
Issue-ID: MULTICLOUD-525
Change-Id: Idaf9672f2cbbb882d78b1987467472ce73c651da
Signed-off-by: Kiran Kamineni <kiran.k.kamineni@intel.com>
|
|
|
|
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>
|
|
The Ubuntu Xenial Docker image has lower footprint than Trusty,
besides more security patches. This change modifies the Dockerfile
that is used for building the Docker image.
Change-Id: I89228ef555668aad1e621973fd33481ce49499d3
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301
|
|
This script was changed some instructions which was reported by
shellcheck tool and fix some non-ubuntu instructions.
Change-Id: If7dce994f024d99aa8f4d306da928e616774b013
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301
|
|
There were some kubespray configuration values that are not needed
and some are causing conflicts with the dashboard. This change
removes them.
Change-Id: I6e58b9faf45a24bb29e2760976a157a759ac3115
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301
|
|
Change-Id: I39dec4a2dade465ea7cd561354724dd67cd28d20
Signed-off-by: Akhila Kishore <akhila.kishore@intel.com>
Issue-ID: MULTICLOUD-301
|
|
The Dockerfiles that are used for building the Docker images during
the testing the Hybrid Firewall ONAP use case are hosted in an
external repo. This change includes the latest working version for
those scripts.
Change-Id: I92c10c3161820ac09a94ff997c6bc39617278965
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-301
|
|
|
|
The k8s pluging is running with root user in the Docker image, this
execution can compromise the host system. Therefore, it's necessary
to explicit change those permissions.
Change-Id: I2455895662c68943f5c8800dfff1aaf6202bd870
Signed-off-by: Victor Morales <victor.morales@intel.com>
Issue-ID: MULTICLOUD-492
|
|
|