bhagyashris 4b9bcfeeef Fix random failing of test_init_monitoring test
The existing unit test case [1] is failing randomly [2]
when both test modules `test_plugin` and `test_monitoring`
runs in a single worker.

Reason: VNFMonitor class is using singleton pattern.
In above test modules same object of VNFMonitor class
is returned from __new__ method but internally it makes
a call __init__ explicitly.
Since we are not initializing `_hosting_vnfs` attribute in
the __init__ method, when we try to access __hosting_vnf in
the second test `test_plugin`, it finds two vnf objects.

This issue is fixed in this patch by reinitializing the
`_hosting_vnfs` class level attribute as empty dict in the
test_init_monitoring unit test.

[1]: https://github.com/openstack/tacker/blob/master/tacker/tests/unit/vnfm/test_plugin.py#L75
[2]: http://logs.openstack.org/10/609610/9/check/openstack-tox-py35/b99de12/testr_results.html.gz

Change-Id: I2a5933ed21e478e860cb12b378a4368f9402291d
2019-01-22 11:20:08 +00:00
2018-07-25 01:42:48 +00:00
2018-07-26 11:48:24 +08:00
2018-07-26 11:48:24 +08:00
2018-06-14 04:49:05 +00:00
2016-04-21 06:08:06 +00:00
2018-04-12 21:36:49 +09:00
2015-10-17 22:40:44 +00:00
2018-06-14 04:49:05 +00:00
2018-12-20 21:34:45 +01:00
2018-10-06 02:46:27 +00:00
2018-12-12 12:08:46 +00:00
2017-03-08 05:28:05 +00:00

Team and repository tags

image

Welcome!

Tacker is an OpenStack based NFV Orchestrator service with built-in general purpose VNF Manager to deploy and operate Virtual Network Functions (VNFs) on an OpenStack based NFV Platform. It is based on ETSI MANO Architectural Framework and provides a fully functional stack to orchestrate VNFs end-to-end.

Installation:

Installation instructions and user guides can be found at: https://docs.openstack.org/tacker/

Tacker code base supports OpenStack master and other releases. Please follow the instructions in the above address for a successful installation of corresponding release.

Code:

Tacker code is available in following repositories:

Bugs:

Please report bugs at: https://bugs.launchpad.net/tacker

External Resources:

Description
Tacker: ETSI MANO NFV Orchestrator / VNF Manager. See https://wiki.openstack.org/wiki/Tacker
Readme 146 MiB
Languages
Python 99.3%
Shell 0.5%
Jinja 0.1%