Revert "Revert ""Remove unused lines of code""" This reverts commit 8bfcc14713a71f43f155e3cddec168380134d344. approved by TSC on 15/09/20 Change-Id: I176b1b625cbc2d94013921401b2e6048aed675f8
Revert ""Remove unused lines of code"" This reverts commit e8102d9e28e5c502fc66ca842d14e1ad29efbfda. Change-Id: Ic22f292f601f45451d3fdd56ab98bfa4ea9161eb Signed-off-by: David Garcia <david.garcia@canonical.com>
"Remove unused lines of code" Change-Id: I02be0efe4918083d95a4017c898bfabaf269e779 Signed-off-by: David Garcia <david.garcia@canonical.com>
Enable lint, flake8 and unit tests Cleans up non pep compliant code. Adds a simple unit test. Formats according to black. Tox automatically runs lint, flake8 and unit test suite with coverage. To run each individually, execute: tox -e pylint tox -e black tox -e flake8 tox -e cover Note that these are all run for each patch via Jenkins. The full tox suite should be run locally before any commit to ensure it will not fail in Jenkins. Change-Id: I2f87abe3d5086d6d65ac33a27780c498fc7b1cd3 Signed-off-by: beierlm <mark.beierl@canonical.com>
Add missing argument in notify_callback This fix is related to bug 866 and caused an exception when the charm was not found. Nonetheless it did not fix the bug. https://osm.etsi.org/bugzilla/show_bug.cgi?id=866 Change-Id: I641834461ac508eac131c32a4c4ef3557e192b1a Signed-off-by: Dominik Fleischmann <dominik.fleischmann@canonical.com>
Accept None for parameter ca_cert at vnf.py: N2VC.__init__ To be backward compatible with old LCM versions Change-Id: I05c90d329051f948a569c17e0864a4c2123c28b0 Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
Remove dependency on vendored libjuju This patch removes the dependency on the embedded version of libjuju, instead relying on the upstream library. Change-Id: I88bd762006e5a182eaea74b5eba636ad03d524b0 Signed-off-by: Adam Israel <adam.israel@canonical.com>
Native charm support This patch adds a provisioner which will prepare a VM, via SSH, to run the Juju agent, enabling a native charm to run on the VM. Change-Id: Icd5d873a12e2d7b2e7cb5424e87d8083a7921c16 Signed-off-by: Adam Israel <adam.israel@canonical.com>
Fix bug 760 This commit fixes bug 670 by introducing a new PrimitiveDoesNotExist exception that will be raised if ExecutePrimitive is called but the primitive does not exist in the charm. This also bumps the required version of websocket to match libjuju, along with other minor tweaks to the test framework Change-Id: I028c3c9c19fbfa87c8feb788446a290d66112043 Signed-off-by: Adam Israel <adam.israel@canonical.com>
Fix reference to information model This fixes a bug where the information model for relations was referred to as "vca-relations" rather than the proper "vca-relationships". Change-Id: I3f961ab750df647e2d2086e887d7e9ac0a01c034 Signed-off-by: Adam Israel <adam.israel@canonical.com>
Bug 733 fixed Change-Id: Ibb0891e4cde4bb2db52df43159a94c102809aa9c Signed-off-by: Endika Aldecoa <endika.aldecoa@ehu.eus>
Additional fix for bug 733 An additional fix for bug 733 Change-Id: I0b6d82f7ba8030f28e82a3d68e249fbcb299979c
Fix bug 733 This fixes bug 733, which identified that N2VC was not properly adhering to the Information Model regarding the vca-relationships grouping. Change-Id: I778777446d1d4f8e8b630abfd42bd36f8479ca56 Signed-off-by: Adam Israel <adam.israel@canonical.com>
Feature 'ns primitive' This contains a bug fix to enable deployment of NS charms Change-Id: I9a0adc5dc1a357c6ae3d5e50e4a5905a344d8087 Signed-off-by: Adam Israel <adam.israel@canonical.com>
Merge "Complete Feature 6297"
Complete Feature 6297 This makes feature 6297 functionally complete, with a bug fix and an integration test that demonstrates the functionality Change-Id: I1d993f81ce19778ff8cf0c93514837fb88f4eac0 Signed-off-by: Adam Israel <adam.israel@canonical.com>
Align machine_spec with pydoc Align the name of the machine_spec keys as defined in the pydoc Change-Id: I3e9c3609ea81b53b77cefcda63bbb4a8b0c6510c Signed-off-by: Adam Israel <adam.israel@canonical.com>
Fix bug 680 This patch adds two new methods, Subscribe and Unsubscribe, allowing the caller to subscribe to callback messages for an already deployed charm. Change-Id: I1e34b488914feb488cf80b157fd664ca37037e76 Signed-off-by: Adam Israel <adam.israel@canonical.com>
Add ENV default for bug 585 Per Bug 585, this uses an ENV variable as the default value if one is not used to instantiate N2VC. If neither is present, N2VC will raise an exception on calls to CreateNetworkService and DestroyNetworkService. Change-Id: Ia5761c7eb1954ffb7a3a46390e850de059f0d2a4 Signed-off-by: Adam Israel <adam.israel@canonical.com>
Add Juju Public Key This commit adds the requirement to provide the Juju public key to N2VC - Updates integration testing to use public key - Updates N2VC to accept juju_public_key and ca-cert - Updated docstring of N2VC constructor Change-Id: I4cad1f8c39024137a23060000d7502aad56ac644 Signed-off-by: Adam Israel <adam.israel@canonical.com>