277 Commits

Author SHA1 Message Date
Haiwei Xu
c96b93087b Add test case for shell(part2)
Add test case for shell, also fix some LOG errors.

Change-Id: Ib46c604f710beee39b884170621fd95efac4c041
2015-09-16 11:36:13 +09:00
tengqm
e96641b77f Fix node-update behavior
Previously node-update was not working before we were passing
'profile_id' as 'profile'. This patch fixes it.

Change-Id: Ia14d82a9b7b4226145e651def6fac3dad75eb44a
2015-09-10 04:42:16 -04:00
Haiwei Xu
7d28037fff Add resource_key to event models
Currently event-show can not show most detais of event,
this patch fixes it.

Closes-Bug: #1494094
Change-Id: I3d1cb433a4c74e0593598ca52c859c8e92101096
2015-09-10 11:05:03 +09:00
tengqm
f5161f283e Shell unit test (1)
Unit tests for the shell module.

Change-Id: I77e56afb48fea769dd526916bf3e06222f83a613
2015-09-08 05:59:12 -04:00
tengqm
3eb63c99ed v0.2 branch
An attempt to create a 0.2 branch.

Change-Id: If5fd9d48687bd3244815d45d2435528447ad3c5e
0.2
2015-09-05 10:52:29 -04:00
Jenkins
29033fab65 Merge "Revise support to profile-create/show" v0.2 0.1.0 2015-09-02 02:03:37 +00:00
tengqm
ff8b14a2ca Revise support to profile-create/show
This patch revise the client support to profile operations. It will make
use of the new server side profile apis.

Change-Id: Ief707b32adffa5f0aa090c0b21d87d1c36701482
2015-09-01 01:38:09 -04:00
Jenkins
b5316d1f9b Merge "Add short Id support to event list" 2015-08-30 13:32:12 +00:00
tengqm
e20b7bc015 Add short Id support to event list
This patch adds short ID display support when listing events.

Change-Id: I54028fe869659e4e97d6f20a99ea252a75698534
2015-08-30 08:55:55 -04:00
Jenkins
cddfab6751 Merge "Initial support to triggers" 2015-08-30 05:47:25 +00:00
Jenkins
e819e10f25 Merge "Remove 'type' parameter for policy creation" 2015-08-30 04:50:46 +00:00
tengqm
598f64233a Remove 'type' parameter for policy creation
The type parameter is not necessary now.

Change-Id: I132c4c4b5d1982dc8195fa8d74163a8fdbe24f8a
2015-08-29 23:14:02 -04:00
yanyanhu
be1db31c62 Add resource_key for Action resource
This patch sets resource_key of Action resource to 'action' to adapt
to the change in service side.

Change-Id: If3a6d8b5ce90687e0d80beb73e1f8237524f8dec
2015-08-28 01:09:12 -04:00
tengqm
5479e88c25 Initial support to triggers
This is the initial support to triggers in senlinclient. One of the
important todos is about updating triggers.

Change-Id: Ibeb48932b877125c8ea915bf97c4829c9e7a0853
2015-08-27 03:47:51 -04:00
OpenStack Proposal Bot
c516e6543d Updated from global requirements
Change-Id: Iacd07f650ffe9bbae49c196f40c33df8a86a969c
2015-08-26 14:18:08 +00:00
Haiwei Xu
148690edbe Add deleted_time to webhook_list
When showing the webhooks which are deleted, deleted_time is desired,
add deleted_time to webhook-list

Change-Id: I2fa6164003db80679e123267f1bb85b9fbc49c3f
2015-08-25 15:32:36 +09:00
yanyanhu
805df0e424 Avoid deleting metadata incorrectly when doing profile_update
Currently, profile metadata will be removed incorrectly when user
performs profile_update without specifying metadata option. This
patch fixes this bug.

Change-Id: I92bbfb07d4c820983659b59e100d27db0a6f29e7
Closes-Bug: #1481583
2015-08-20 22:54:58 -04:00
Jenkins
ff42b59a6a Merge "Credential option should not be 'required' when creating webhook" 2015-08-18 23:06:37 +00:00
Jenkins
ecd06f01e8 Merge "Fix TypeError when doing cluster-scale-in" 2015-08-18 23:05:01 +00:00
mathspanda
b838074bbe Fix crendential type problem in webhook operations in client side
Remove dict type in Webhook Model since crendential value in response body
is no longer in dict form.

Change-Id: Ia441483dd20f38b28200ff814bb0963a8548a1f2
Closes-Bug: #1485830
2015-08-18 11:42:03 +08:00
Haiwei Xu
3fe29e2fa7 Credential option should not be 'required' when creating webhook
Change-Id: I4459f410c8bb5c681c66c9dd3f0ba4b3580e57d3
2015-08-18 12:16:48 +09:00
Haiwei Xu
6fdbce89e4 Fix TypeError when doing cluster-scale-in
When trying to scale-in a cluster without configuring
'count' option, TypeError will happen. This is because
'count' is not the key of 'params'.

Closes-Bug: #1485820
Change-Id: I753bf2f9234910271254e6a60110b98a3d9994c7
2015-08-18 10:39:01 +09:00
Jenkins
9cbc6ab2bb Merge "Sync ProfileAction implementation with latest SDK code" 2015-08-14 08:37:04 +00:00
Jenkins
56fda5c56c Merge "Updated from global requirements" 2015-08-14 08:19:25 +00:00
yanyanhu
b38061528d Sync ProfileAction implementation with latest SDK code
Change-Id: Ia84b785833460af4fc569a8b27d23f55f83d2448
2015-08-14 04:12:21 -04:00
OpenStack Proposal Bot
c06646c572 Updated from global requirements
Change-Id: Ie32641cb242e8a1c62abbc569807051947d52546
2015-08-13 20:23:19 +00:00
Navneet Gupta
fef1191dc4 Add unit test cases for sdk module
Add unit test cases for sdk module for class ProfileAction
Still need unit tests for class Resource

Change-Id: I6328e6346bbc2e615d1824aeb223e76cb5c8adf0
Partial-Bug: #1484496
2015-08-13 15:12:21 -05:00
Jenkins
97de24bd30 Merge "Unit test for cliargs module" 2015-08-12 11:49:19 +00:00
tengqm
b8aefbbe7f Unit test for client module
This patch adds unit test for the client module.

Change-Id: Id6d03800bb082a48f1586fa75185c9ddb696a49b
2015-08-11 23:24:19 -04:00
tengqm
a448eaf3d8 Unit test for cliargs module
This patch adds unit test cases for the cliargs module.

Change-Id: Ia45f15abd5c5da5d1ecbbbecf7f775cf5ededb83
2015-08-11 23:12:58 -04:00
OpenStack Proposal Bot
3416d679a6 Updated from global requirements
Change-Id: I8aa0219aa88398e6690a5deef067d87671f2d181
2015-08-10 01:11:39 +00:00
Jenkins
0e0a5aabf2 Merge "Remove private copy of clustering_service" 2015-08-08 07:31:38 +00:00
tengqm
750b628244 Remove private copy of clustering_service
The old clustering_service module was maintained when openstack SDK
doesn't support senlin. This module is no longer needed.

Change-Id: Ib913619d6f4ea8edbe2fb7722e04dce3c1c07dbb
2015-08-05 21:19:05 -04:00
Jenkins
232d48b012 Merge "Preparation for senlinclient test cases" 2015-08-05 10:50:51 +00:00
tengqm
dc8879b0b9 Fix filters param passing
This is about a big mistake in passing filters for listing resources.

Change-Id: I81529fe05582133a04674c3e3787bcae95e752d8
Closes-Bug: #1481643
2015-08-05 04:44:02 -04:00
tengqm
16077d57d1 Preparation for senlinclient test cases
This patch creates the directories for senlinclient unit tests.

Change-Id: I2ba86984a5ba378c488395bd8f08e6a397395de3
2015-08-04 23:00:16 -04:00
Jenkins
03ad3eab28 Merge "Updated from global requirements" 2015-08-04 23:30:58 +00:00
Jenkins
e8eaeb99d5 Merge "Revise parse_exception in the client side" 2015-08-04 23:30:27 +00:00
Haiwei Xu
1706db22ce Revise parse_exception in the client side
Use jsonutils when the response is JSON format,
if not parse it by hand.

Change-Id: I2318b970b443888faa34431c284e3f85b7d4d266
2015-08-04 14:56:08 +09:00
OpenStack Proposal Bot
4633ebbd77 Updated from global requirements
Change-Id: If39ee83bf50c4643ce484f14a76d716bb3e14665
2015-08-04 00:50:19 +00:00
yanyanhu
0f5dc297b7 Use correct default domain name in senlinrc
The name of default domain is 'Default' rather than 'default'. This
patch fixed this issue in senlinrc file.

Change-Id: Ifab38112211f585382a277109776c87f0dcdffde
2015-08-02 22:21:12 -04:00
Jenkins
27c244d5b4 Merge "Fix cluster-resize operation param checking" 2015-08-03 02:11:04 +00:00
tengqm
2b7616c09c Fix cluster-resize operation param checking
There are cases where adjustment_type or number is not assigned. The
param checking will fail when neither one has got an value. This patch
fixes this error by setting the default values to None.

Change-Id: I24411324b53fe8b61bd108f2eb3f54687255727f
2015-07-29 05:15:56 -04:00
OpenStack Proposal Bot
3ae140e572 Updated from global requirements
Change-Id: I5af259d5fe5ecd360f8fbb4e2adfaaa5b3ff698d
2015-07-29 03:51:55 +00:00
tengqm
ec2c542b7c Fix resource listing error
This patch fixes the cluster-policy-list operation error where
'path_args' was not treated in a dedicated parameter.

Change-Id: I3a259b58585d9900e8db9ace141d85369f854bad
2015-07-25 10:49:22 -04:00
Jenkins
3cdb7fc0fe Merge "Fix profile name update error" 2015-07-24 06:28:28 +00:00
Jenkins
edee167e8f Merge "Use PATCH method to update resources" 2015-07-24 06:28:25 +00:00
Haiwei Xu
21a664fd28 Fix profile name update error
When the profile's name is changed, senlin still
uses the old name to output the profile's details.
This patch fixes this bug.

Change-Id: I8490522546641dc82106a3b6efae0951a56b2733
Closes-Bug: #1477075
2015-07-22 19:31:05 +09:00
Haiwei Xu
63b054e39f Use PATCH method to update resources
Senlin api uses PATCH to update resources, client side
should keep consistency with server side.

Change-Id: I724f0cb6b8fd2d6cdb6104f1cf3a7cb933d26442
Partial-Bug: #1472557
2015-07-22 17:34:52 +09:00
OpenStack Proposal Bot
699af6736a Updated from global requirements
Change-Id: I003b191d6ddfd85fed85313ceb6de47adb25a005
2015-07-22 05:01:10 +00:00