Commit Graph

1523 Commits (ca437bd223d3d14a31952aa624adc971a21e816b)

Author SHA1 Message Date
Yan Xing'an ca437bd223 Improve UT test_wsgi, reduce code duplication
Add helpers for cases that require PY2 or PY3.
Reduce code duplication in test_wsgi.

Partially Implements: blueprint test-addition-refactoring

Change-Id: Ibd30063ca1a46c7ea5686734835a030386ba06e5
2018-11-26 22:39:22 +08:00
Zuul 92ee4eddcd Merge "tosca.policies.tacker.Scaling of tacker_defs.yaml define incorrect" 2018-11-26 13:23:21 +00:00
Zuul 3fffdc5285 Merge "Refactoring UT test_resource" 2018-11-26 10:38:13 +00:00
Zuul 109061639e Merge "Add UT case for common_services_db_plugin in db" 2018-11-26 01:44:44 +00:00
Zuul 21a3add782 Merge "Refactor func and add UT in attributes" 2018-11-24 10:06:59 +00:00
Li Jiale b898f2a27a tosca.policies.tacker.Scaling of tacker_defs.yaml define incorrect
Change-Id: I548ca00d066bd7e12ee5aba5d54d81dca141e6b1
closes-bug: #1778613
2018-11-22 21:28:53 +08:00
Zuul 984db66159 Merge "fixed numa node count defined error." 2018-11-22 12:27:34 +00:00
Zuul 941ffeb242 Merge "Verify the validity of cpu_affinity" 2018-11-22 03:15:02 +00:00
Zuul fd87aa5979 Merge "Add blueprints notes link to README" 2018-11-21 11:00:20 +00:00
hewei 9170a26389 Refactor func and add UT in attributes
Refactor validate mac address fun to solute problem when data is None
Update UT in test_attributes

Change-Id: I6c2bb87c3873ea30fb177ce5c2caacd7046d5f91
2018-11-21 15:16:56 +08:00
Li Jiale 5e5301b845 fixed numa node count defined error.
the min value of numa node count is 1, not 2.
doc ref:

Change-Id: I3e508d76aeeaaf203aaad0d96e7301ba332bb69d
2018-11-21 14:03:09 +08:00
Zuul b68ebfb363 Merge "Improve UT test_resource_helper" 2018-11-20 13:53:36 +00:00
Zuul 02aed879ff Merge "Support UT for agent/linux/" 2018-11-20 13:39:52 +00:00
hewei 43cf012ea8 Verify the validity of cpu_affinity
we should preventing user to create a vnf when getting any
invalid value of cpu_affinity

Change-Id: Ic0014ab55b4710fd04fd2121d46679d319af6681
2018-11-20 14:08:41 +08:00
liuyuanyuan e3a64a5821 Add UT case for common_services_db_plugin in db
add a new UT case for in the
tacker.db.common_services module and fix some typos in the

Change-Id: Ifb88a1dcb73d7e5dc9df5292f7c67d47413e3284
2018-11-19 22:19:57 +08:00
hewei 99b683ff09 Improve UT test_resource_helper
Add one case into resource helper UT.

Change-Id: I0e3c083be2acef23e034f5b703e3dad51cef6c1f
2018-11-19 18:55:44 +08:00
hewei c3a129eefa Refactoring UT test_resource
move location of test_resource
Remove redundant tests and move partion of tests to test_wsgi

Change-Id: I7a7fbfc6aeccb27b219676a93a5d965416ea17cc
2018-11-17 15:49:49 +08:00
hewei f9414c99e8 Fix error in resource_help and add UT
The func should be used in the condition of 'policies to policy'
Add test UT in test_resource_helper

Change-Id: I41fa8b0b029398ea9c3977fabd649a094a9538ac
2018-11-15 23:35:34 +08:00
Zuul a3670e4b68 Merge "Enable UT" 2018-11-15 01:42:27 +00:00
Zuul de6657cb4d Merge "Remove i18n.enable_lazy() call from tacker.cmd" 2018-11-15 01:41:05 +00:00
Yan Xing'an bcf269cab0 Support UT for agent/linux/
Add UT test file agent/linux/

Partially Implements: blueprint test-addition-refactoring

Change-Id: Icadc53637b8c2b7fb857c4f015f0f4d595d2987f
2018-11-15 01:17:46 +08:00
Zuul 5fa1b3d707 Merge "Improve UT test_alarm_receiver" 2018-11-14 16:26:13 +00:00
Yan Xing'an 929183a893 Enable UT
Remove the skip line in this file, and make some changes to
make them pass.

Partially Implements: blueprint test-addition-refactoring

Change-Id: I6b747da14bc743dbd2b79a6629e761d316de629f
2018-11-15 00:19:49 +08:00
Zuul 24f4459f26 Merge "Refactoring UT directories" 2018-11-14 15:53:01 +00:00
akhiljain23 29ed778793 Remove i18n.enable_lazy() call from tacker.cmd
Lazy translation of messages is not used in OpenStack. This
causes problems for commands which use translatable messages.
The lazy translation effort was abandoned several years ago.
For more information refer [1]


Change-Id: I42cde2be3a5507861989c8e20eee416f06c79351
2018-11-14 14:56:52 +05:30
Yan Xing'an 3d583d241a Improve UT test_alarm_receiver
Add two cases into alarm receiver UT.

Partially Implements: blueprint test-addition-refactoring

Change-Id: I89499e3975d28d43352dde325cbe26aea5ec2443
2018-11-13 00:12:21 +08:00
Yan Xing'an dabd18d326 Refactoring UT directories
Adding some corresponding directories to UT, and
moving some cases to right places.

Partially Implements: blueprint test-addition-refactoring

Change-Id: Ic47ea2640c89787ac291c31db51a8529f73a66a3
2018-11-12 13:13:39 +00:00
Li Jiale 2350cc7496 the http response code is not accurate
When Unsupported Content-Type, it is best to return

Change-Id: If0c11e2ab4645d2acc61c9845c0abd6e12a40df9
2018-11-12 12:50:32 +00:00
Zuul 53c78de6ca Merge "Correct '/v3' suffix to auth_url" 2018-11-12 09:06:23 +00:00
Zuul eec48ccfc5 Merge "Optimize func and log" 2018-11-12 08:01:46 +00:00
Zuul 10f041be75 Merge "Add missing contants" 2018-11-12 05:24:04 +00:00
hewei 9906b03f74 Optimize func and log
Fix the VimNotFoundException log, it should be give one argument.
optimize the func of _find_vim_key

Change-Id: I16d3904071636571e963232875c9703d8bc2e2d7
2018-11-12 10:18:50 +08:00
Li Jiale 3b85a611a5 Fixed incorrect bin name
the bin name should be tacker, not neutron.

Change-Id: Ia97bf57cd074da56e1b0428338d4178591385111
2018-11-11 18:58:41 +08:00
hewei dd66889c29 Add missing contants
Missing constants MIN_VLAN_TAG and MAX_VLAN_TAG in function
is_valid_vlan_tag, path: tacker/common/utils

Change-Id: I26619fa71219c24f2eeed77de3c69e46a00e22a5
2018-11-11 06:17:09 +00:00
Zuul 76cdc8deef Merge "Add cover job" 2018-11-09 08:32:50 +00:00
hewei 9b43ecec98 Fix exception msg
Missing 'limit' argument in api_common when giving exception msg

Change-Id: Ica648d10c4467e8c83cd3cdde3f1b51553900fcc
2018-11-08 16:12:09 +08:00
Nguyen Hai Truong 4a7a068d8c Add cover job
Insert python coverage job for py-test.

Change-Id: I1586c527437c57724fd24678594e13490060b74d
2018-11-06 20:44:33 -08:00
Li Jiale 0f0f0a6287 Fixed incorrect auth_url in doc
incrorrect :

Change-Id: I3a430f626fdc0f4669dd4ea0d22f43870f44a155
2018-11-07 08:36:27 +08:00
hewei 1c455d4d25 Fix incorrect argument name in multisite_vim_usage_guide
The optional argument should be --vim-id when not need to register vim during vnf creation.

Change-Id: Ib379944847043021a28a2e68da4b61a7dbf9a138
2018-11-05 14:58:52 +08:00
Kim Bao Long 5fec9293c9 Update min tox version to 2.0
The commands used by constraints need at least tox 2.0.  Update to
reflect reality, which should help with local running of constraints

Change-Id: I220127ff324719ed0b824b2288273bfd849182e0
2018-11-02 11:21:03 +07:00
Zuul 12d42827c2 Merge "Fix missing 'region_name' parameter" 2018-10-31 16:56:57 +00:00
Zuul d9ce43de92 Merge "spelling error" 2018-10-31 16:46:53 +00:00
Zuul ad3bd6b631 Merge "Add notes about the path of tacker commands" 2018-10-31 16:33:57 +00:00
Zuul 759e762a08 Merge "Fix errors in vnfd_template_description" 2018-10-31 15:42:35 +00:00
hewei bb3fabe40b Fix errors in vnfd_template_description
The sample template configuring a VDU as a firewall can be
viewed in <.../tosca-config-openwrt-firewall.yaml>.
Image in properties use VDU more correct than VM.

Change-Id: Ib55c473888c078ae8df905adc754a253ad7ce63f
Signer-off-by: hewei <>
2018-10-30 23:16:50 +08:00
Zuul 0056ed8b18 Merge "Fix image fit width in Tacker doc" 2018-10-30 08:27:42 +00:00
Kim Bao Long bcd46a9efa Fix image fit width in Tacker doc
Currently, images in [1] is too wide compared to the horizontal of
the webpage. This patch aims to make these images fit with the
displaying site of webpage.


Change-Id: I9ce12dfc9d2424e9e5b700c168b5a6a807dbea1d
2018-10-30 13:35:41 +07:00
Kim Bao Long 9a7ce4f83c Update Keystone auth_url in vim_config.yaml
Currently, keystone_authtoken.auth_url is working at
``, not `` as shown in
sample vim_config.yaml. So this patch aims to update the outdated
auth_url in vim_config.yaml file

Change-Id: I9e66ab5cd365c7bc70c80974fa891fc2e6ddd96f
2018-10-30 05:14:02 +00:00
akhiljain23 fb06b7c96c Add framework for tacker-status upgrade check
This commit adds the functionality of tacker-status CLI for performing
upgrade checks as part of the Stein cycle upgrade-checkers goal.
It only includes a sample check which must be replaced by real checks in

Change-Id: I7bb127fa10dd168ab24dd8c42013576f84eadfbb
Story: 2003657
Task: 26158
2018-10-26 09:07:04 +00:00
liuyuanyuan dca933317b Add notes about the path of tacker commands
when we install tacker manually in CentOS, the default path of
console scripts such as tacker-db-manage/tacker-server would be

Change-Id: If4035a058f06275427a2fe5f5a6e949310c13939
2018-10-22 15:58:19 +08:00