263 Commits

Author SHA1 Message Date
Jenkins
2a62ba447b Merge "Revert "Remove unused import library"" 2016-10-17 05:05:54 +00:00
Luka Krajger
edf203acb8 Revert "Remove unused import library"
Directive "from __future__ import print_function" is not an actual
import, but it enables print statement in py2 to behave like a real
function in py3.

This allows us to use print() function in py2/py3 compatible way.

This reverts commit 9910cbc746380dba2c8dc5f89120f0f48a74ced7.

Change-Id: Ibdef82f0da42e815fd6c9ec632d0fd36c272b094
2016-10-14 09:53:53 +02:00
gong yong sheng
e3f0d522ba make python34 CI job to pass
remove _get_attr_metadata monkey_patch since it is for XML test.
remove iterkeys() call which is not py3.x compatible.

Change-Id: I46df0a3748f470521553793111a21eea72bd7663
Closes-bug: 1632714
2016-10-14 06:39:50 +00:00
Trevor McCasland
65a5198d73 mox to mock refactor
Refactoring unit tests to use mock instead of mox

other mox usages by not run test cases will be dealt with
later.

Co-Authored-By: gong yong sheng <gong.yongsheng@99cloud.net>
Co-Authored-By: Trevor McCasland <TM2086@att.com>

Change-Id: I7e42494b96f1e54f5f04534d3b453422ea1bf4ef
Partial-Bug: #1572706
2016-10-14 14:38:29 +08:00
Jenkins
f499e93fcf Merge "Remove unused cliff tablib from test requirements" 2016-10-14 06:31:30 +00:00
Jenkins
19d7cadd8e Merge "rename vm into vnfm" 2016-10-14 06:31:20 +00:00
gong yong sheng
62832b010c Remove unused cliff tablib from test requirements
Change-Id: Ief8c6c2988cccdd9442fa6c38630a126218b3fa4
Closes-bug: 1603561
2016-10-12 11:59:19 +08:00
gong yong sheng
7cbdfabc75 rename vm into vnfm
Change-Id: Ia232eeb94adb190a212e9ec766eeee6dcb63bffd
closes-bug: 1632551
2016-10-12 11:30:04 +08:00
Andreas Jaeger
6cf2973c49 Enable release notes translation
Releasenote translation publishing is being prepared. 'locale_dirs'
needs to be defined in conf.py to generate translated version of the
release notes.

Note that this repository might not get translated release notes - or
no translations at all - but we add the entry here nevertheless to
prepare for it.

Change-Id: Iec2b37e4cb673485b8d6c399ddb51d33b828f069
2016-10-06 20:52:15 +02:00
Sharat Sharma
98a6ea328a Updated home-page info with the developer documentation
Change-Id: I0b44b3a45a6461fd05d7f470a984705c7ad63577
2016-10-05 06:09:28 +00:00
OpenStack Proposal Bot
f160afac6a Updated from global requirements
Change-Id: I43f1a07ca568298f8d11ef0e842f1d7ec1658e43
2016-10-02 20:35:16 +00:00
Anh Tran
66c9b13212 Using assertIsInstance() instead of assertEqual(True, isinstance())
Change-Id: I567519f19d415a17a5253d3864031583619586b4
2016-09-30 02:49:34 +00:00
Jenkins
6c78395976 Merge "Fix cString ImportError for py34" 2016-09-30 01:49:58 +00:00
Jenkins
c2e86d3145 Merge "Remove commented out code in test_shell.py" 2016-09-30 01:48:44 +00:00
Tony Xu
c3d69c8e22 Remove commented out code in test_shell.py
TrivialFix

This is patch remove pdb in
tackerclient/tests/unit/test_shell.py

Change-Id: Ie13f931b6e914eb511cdc4a073b0577b4bab2767
2016-09-29 09:18:36 +08:00
OpenStack Proposal Bot
d763fedc3c Updated from global requirements
Change-Id: I8fb66c01de26acc7490615dc49943b14e8b32909
2016-09-28 17:01:10 +00:00
OpenStack Proposal Bot
f01c05a268 Updated from global requirements
Change-Id: Ide9f72cd4c70f393f8a31b725734b49c27068ed4
2016-09-27 10:07:53 +00:00
Lu lei
45ebce43cb Fix cString ImportError for py34
Here cString dose not exist in py3.x. This patch is used to
fix py34 gate errors.

Partial-Bug: #1612071

Change-Id: I0a36777cba8c4602c16be771956d4cd26f7e979f
2016-09-26 12:41:27 +08:00
OpenStack Proposal Bot
36b52a14a2 Updated from global requirements
Change-Id: I04c37b0b3c0bdb9fb9b2a5847a1ae1bb9b26222c
2016-09-21 06:48:57 +00:00
Jenkins
d810074cda Merge "Body can not be None while creating vnfd" 2016-09-19 04:27:42 +00:00
OpenStack Proposal Bot
e6e54b7f33 Updated from global requirements
Change-Id: Ia3268acaba6ba1985eeb95bb3d0ef73fb41a9568
2016-09-15 20:26:19 +00:00
dharmendra
cb66556390 Body can not be None while creating vnfd
Trivial Fix

Change-Id: I8b2cd1171a530c8cdd0b2a09d87a76ed1a10bd37
2016-09-12 09:17:58 +09:00
Jenkins
1612e2227c Merge "Removing test cases for already removed methods" 2016-09-09 17:47:58 +00:00
dharmendra
495ccbd2aa Add support for multi delete
Currently Tacker client support single resource(i.e VNFD, VNF or
VIM) deletion per call. With this fix, multiple VNFs, VNFDs or
VIMs can be deleted in a single client call.

Change-Id: I0819d94e14637d8e9d8a7b2afb5f948587e00ce0
2016-09-09 14:27:09 +09:00
Jenkins
d8a6fa279a Merge "Allow auth url without port for vim registration" 2016-09-08 19:05:26 +00:00
Jenkins
a624948cc8 Merge "Update reno for stable/newton" 2016-09-07 23:26:52 +00:00
Doug Hellmann
f8e1d00eb8 Update reno for stable/newton
Change-Id: I0358a6c7d753c9b2c7c2e94bc9a7036adbe05901
2016-09-07 16:55:12 -04:00
dharmendra
95733d9eb4 Remove "else" branch in "create_vnfd" function
There is not necessary for "else" branch, so it remove.
Co-Authored-By: dharmendra kushwaha <dharmendra.kushwaha@nectechnologies.in>

Change-Id: Ic4313175518513e583795b84c2725b770eb2888f
2016-09-07 15:20:44 +00:00
gong yong sheng
3b60ab1aaa Allow auth url without port for vim registration
This patch allows vim-register command to register keystone
URL without port.

Change-Id: Ie04a0253aa3f42ef532ccf8a7bddbbd1f88e3e34
Closes-bug: 1618756
2016-08-31 17:14:27 +08:00
Jenkins
48d458d290 Merge "Modify MyURLComparator to handle deep match on URL" 0.7.0 2016-08-27 14:29:16 +00:00
Jenkins
32ad7f33b6 Merge "Moving test files to vm directory" 2016-08-27 14:18:08 +00:00
vish
f1eef18974 Moving test files to vm directory
This commit moves the test files from events and nfvo directory
to the vm directory. Currently tests are executed if they are in
the vm directory.

Change-Id: I7ac08fb5686597926ec3b3c62d8221abf2b0f066
Implements: blueprint: audit-support
2016-08-27 03:40:54 +00:00
OpenStack Proposal Bot
23f34cdf1a Updated from global requirements
Change-Id: I9de7f7fdc86598cfbc23a760769e4dcc806d52d7
2016-08-27 00:41:11 +00:00
Jenkins
78b0876baf Merge "cli: modify vnfd, param & config attr. to dict obj" 2016-08-26 23:33:49 +00:00
Sripriya
f6848f0f31 Modify MyURLComparator to handle deep match on URL
MyURLComparator equals method is enhanced to perfom url comparison
based on url parts such as scheme, netloc, path and query instead
of raw string comparison.

pagination methods are modified to wrap the url requests with pagination
params within MyURLComparator objects.

Change-Id: I69b835dce64d662d1af6a14556fb8281e3b04d63
Closes-Bug: #1617480
2016-08-26 16:03:27 -07:00
Jenkins
542a2bb083 Merge "Deprecate infra_driver and mgmt_driver" 2016-08-26 22:34:28 +00:00
digambar
ced23fe6ab Deprecate infra_driver and mgmt_driver
infra_driver will be automatically figured out
in the VNF instantiation based on target VIM type
mgmt_driver is specified in the TOSCA template
per-VDU and the value the client API is ignored

Both these attributes will be removed in Ocata.

Change-Id: Ic59d7f8af6e4b1a27f4125f57d8165dc1011ce9e
Closes-bug: #1524243
2016-08-26 20:26:40 +00:00
Sripriya
aa499bb5f3 Remove list_vnf_resource_pagination unit test
This patch removes the list_vnf_resource_pagination unit test
which tested the pagination support of list_vnf_resources.
Pagination support is not enabled for vnf resources and hence
removed the test case.

Change-Id: I98843a63f6566595ceeb4758926a441fff2ee0ff
2016-08-26 12:54:41 -07:00
Jenkins
c047bf9db2 Merge "Add client support for VNFFG in NFVO" 2016-08-26 17:25:42 +00:00
dharmendra
7951ebb39e Removing test cases for already removed methods
tackerclient/common/utils.py doeas not contains these methods:
  to_primitive
  loads
  dumps.
Removing related test cases

Change-Id: I73035fcd120efc09cd19c94a8fa41671c2b3a7c3
Partial-Bug: 1617157
2016-08-27 01:09:24 +09:00
xu-haiwei
882f6b6c93 Add client support for VNFFG in NFVO
Co-Authored-By: Tim Rozet <trozet@redhat.com>

implements blueprint: tacker-vnffg
Change-Id: Ic5273319a01b8003e9497fbf7f984972602c7698
2016-08-26 09:23:35 -04:00
Sripriya
ed102cac10 cli: modify vnfd, param & config attr. to dict obj
vnfd templates, parameter and config files are sent as yaml
strings in requests body to tacker server.

Change the attributes to dictionary objects. New behavior
is applicable to tosca templates only. Also, this change may mangle
the order of nodes in tosca templates. In order to address this
concern and preserve the network interfaces order in these nodes,
there will be follow on patch (on server) to addres this.

Change-Id: I05a1d60dc643dca864aff559f37491914b1fcfc3
Partial-Bug: #1591361
2016-08-26 00:57:13 -07:00
Tim Rozet
144408331e Adds client commands for listing a VNF resources
Support now for being able list sub resources of a vnf. REST path is
/vnf/<vnf_id>/resources/.  Resources will contain 'name', 'id', and
'type'.

APIImpact
Partial-Bug: 1602112

Change-Id: Ib9f0163c0c86df2a4d17630a5e6f7ca2d2fb22de
Signed-off-by: Tim Rozet <trozet@redhat.com>
2016-08-25 22:34:03 +00:00
Jenkins
7f829587b0 Merge "Revert "Creates details API to fetch VNF detials"" 2016-08-25 21:55:25 +00:00
Janki Chhatbar
cc0a66884b Revert "Creates details API to fetch VNF detials"
This reverts commit 5a1f2f5717bc55e196e9006d6891ad077e0e4211.

Reverting in account of a new patch [1].

[1]. https://review.openstack.org/#/c/360197/

Change-Id: Iaf5f65bd20bb098120378f9b63c86b97a86df35d
2016-08-25 14:22:29 +00:00
Jenkins
7a0f627e2e Merge "Add "Description" parameter while creating VNF with CLI." 2016-08-24 21:03:57 +00:00
Janki
5a1f2f5717 Creates details API to fetch VNF detials
Created details API to fetch VNF details. This is optional
based on the --show-details flag enabled.

APIImpact
Partial-Bug: #1602112

Change-Id: I63bcf3f9ad23fbbcfdec6f72e45540ce55e6bd7c
2016-08-20 05:35:42 +05:30
Jenkins
6b677a8f38 Merge "Remove '--config' option when create/update a vim" 0.6.0 2016-08-18 02:59:51 +00:00
vish
647baba801 Adds audit support in client
This commit enables support in the client for the resource event
logging

Implements: blueprint: audit-support

Co-Authored-By: Kanagaraj Manickam <mkr1481@gmail.com>

Change-Id: Ia54aed6720043840b00dd2eb00ca03a2ed92da5e
Depends-On: Change-Id: Ib82be521c5aa8b627e3f34a3696b10508371d3a0
2016-08-16 22:35:03 +00:00
Jenkins
977038a0b3 Merge "VNF scaling: CLI and python client" 2016-08-16 21:28:03 +00:00