3795 Commits

Author SHA1 Message Date
Renat Akhmerov
b9f49cc28a Small engine bugfixing/refactoring
Change-Id: Iba8c237dc93cf63ad4877b321851fa52c735163b
2014-05-29 14:31:28 +07:00
Jenkins
972999f81d Merge "Fix H404 multi line docstring should start without a leading new line" 2014-05-29 04:04:15 +00:00
Jenkins
f7d0589844 Merge "Fix H233 Python 3.x incompatible use of print operator" 2014-05-29 04:04:10 +00:00
Jenkins
3f9a073fa8 Merge "Fix pep H301 one import per line" 2014-05-29 04:04:04 +00:00
Jenkins
b8aa2f936e Merge "Fix pep H231 Python 3.x incompatible 'except x,y:' construct" 2014-05-29 04:03:26 +00:00
Jenkins
eae6f77d72 Merge "Fix pep H402 one line docstring needs punctuation" 2014-05-29 04:03:19 +00:00
Jenkins
0aea51072f Merge "Add autogenerated API documentation" 2014-05-29 04:02:57 +00:00
Jenkins
2fa4134129 Merge "Make field 'Namespaces' optional" 2014-05-29 02:28:14 +00:00
Jenkins
62a57a0043 Merge "Fix pep H201 no 'except:' at least use 'except Exception:'" 2014-05-28 17:54:49 +00:00
Jenkins
573e57d51d Merge "Fix pep E226 missing whitespace around arithmetic operator" 2014-05-28 17:54:12 +00:00
Jenkins
8be18c36e6 Merge "Add hacking to the flake8 tests" 2014-05-28 17:54:06 +00:00
Jenkins
6ff64fd0fe Merge "Add support for plugin actions" 2014-05-28 17:52:25 +00:00
Nikolay Mahotkin
877b3b44fd Make field 'Namespaces' optional
Closes-bug: #1322737

Change-Id: I8f67fd7cfb78483a2424776c5c9472ad732ada47
2014-05-28 17:46:06 +00:00
Jenkins
a620efab8e Merge "Adding docstring for HTTPAction class" 2014-05-28 16:33:51 +00:00
Jenkins
d943586608 Merge "Adding more http standard action parameters" 2014-05-28 16:31:56 +00:00
Jenkins
9a6456f01c Merge "Renaming 'events' to 'triggers'" 2014-05-28 16:24:55 +00:00
Angus Salkeld
ebf225553d Add support for plugin actions
implements blueprint mistral-pluggable-task-actions

Change-Id: If12a0c6835edcabd33027555501dea4f473fc1f5
2014-05-28 22:00:11 +10:00
Angus Salkeld
a7bf5cecc7 Add autogenerated API documentation
Change-Id: I859be6d47d58fee13875d02a7839864348829687
2014-05-28 21:28:24 +10:00
Renat Akhmerov
42ea833bc7 Adding docstring for HTTPAction class
Change-Id: I8dd806c3a54ef454dd0b458ce33748db218e61e6
2014-05-28 17:50:12 +07:00
Renat Akhmerov
a3d3fded27 Renaming 'events' to 'triggers'
Change-Id: I659128b83bde89d706b72d53e2b3f987210d69fe
2014-05-28 12:21:54 +07:00
Renat Akhmerov
fdaab398d8 Adding more http standard action parameters
Implements: blueprint mistral-task-timeout
Change-Id: Ife803c5ef3cf5db68da83d4f3e2c499418290bcd
2014-05-28 12:17:03 +07:00
Angus Salkeld
ba21390f48 Fix H404 multi line docstring should start without a leading new line
Change-Id: Id028ec196dd16696b47614fd77c8adde893dbc56
2014-05-28 13:17:16 +10:00
Angus Salkeld
85b78b4a67 Fix H233 Python 3.x incompatible use of print operator
Change-Id: I85efe06a1d815a016ab7735df1778c6f984d9cca
2014-05-28 13:10:45 +10:00
Angus Salkeld
024ad6e071 Fix pep H301 one import per line
Change-Id: Ie763743beb0219a6068f184113980122cb31fc83
2014-05-28 13:07:51 +10:00
Angus Salkeld
9c2757ca08 Fix pep H231 Python 3.x incompatible 'except x,y:' construct
Change-Id: I00effa3cb87bf334c68eb2c3b65ff46d3fb69e4f
2014-05-28 13:06:08 +10:00
Angus Salkeld
da2d313b8c Fix pep H402 one line docstring needs punctuation
Change-Id: I3b3849615bad84a532f9f747f5449c106252051a
2014-05-28 13:04:33 +10:00
Angus Salkeld
fcd91d860a Fix pep H201 no 'except:' at least use 'except Exception:'
Change-Id: Iac649af181f60f800c508c4dac13c292f030b298
2014-05-28 13:02:58 +10:00
Angus Salkeld
f033f1af45 Fix pep E226 missing whitespace around arithmetic operator
Change-Id: I7f23d6589fe4e635ccaecdf6aa78c4092ee50112
2014-05-28 12:58:01 +10:00
Angus Salkeld
a4852977be Add hacking to the flake8 tests
ignore everything so we can fix issues as desired

Change-Id: I73bcd617040726a0fea5e73910a366adcdb6e03f
2014-05-28 12:57:10 +10:00
Angus Salkeld
1ceb4b1e8a Add/Fix all error handling mechanism on REST API
* Refactor error handling
 * add tests for correct error codes

Closes bug: #1320136
Co-Authored-By: Angus Salkeld <angus.salkeld@rackspace.com>
Change-Id: Ia33e19cab4879164acb7c8268c9c657f4196df45
2014-05-28 12:39:03 +10:00
Jenkins
1e821db34b Merge "Cleanup exceptions and add http code" 2014-05-28 02:29:01 +00:00
Jenkins
c2803984ed Merge "Throw NotFoundException when object not found" 2014-05-28 02:28:46 +00:00
Sergey Murashov
d0fe92f90f Fix url in "get workbook definition" test
Change-Id: Ic3fe0f7b88437ea85da5c8c659d6dd35bd046abc
Closes-bug: #1323585
2014-05-27 14:44:53 +04:00
Angus Salkeld
5e9ffd5c47 Cleanup exceptions and add http code
- Remove redundant constructors
- always use "code" as an http_status
- fix the default message strings so you can pass nothing into the
  exception constructor and it will work.
- add some basic tests

Partial-bug: #1320136
Co-Authored-By: Nikolay Mahotkin <nmakhotkin@mirantis.com>

Change-Id: I9e21c6d5d39f1203324a37a39e5fd6069062b733
2014-05-27 09:31:53 +00:00
Nikolay Mahotkin
1efbf6e9e3 Throwing an error when workbook validation fails
Partially closes bug: #1322421

Change-Id: I86b730d7b98a0f684881d53da340596f3c9ce7fe
2014-05-23 17:02:18 +04:00
Nikolay Mahotkin
1d5a915145 Throw NotFoundException when object not found
* Done for workbooks and executions
 * Return 404 code on request to API if
   object does not exist

Change-Id: I057a8385b08af7375cd037d6a62a4efdcc4f8fa1
2014-05-22 15:02:54 +04:00
Jenkins
c989fd75e8 Merge "Task.publish now is processed as arbitrary structure" 2014-05-20 15:17:24 +00:00
Jenkins
30dd6e04f7 Merge "Fix creating trust on workbook creation" 2014-05-20 15:07:04 +00:00
Jenkins
772d4f7c06 Merge "Fix 500 status code on DELETE request" 2014-05-16 18:28:21 +00:00
Nikolay Mahotkin
b2d2dc554f Fix creating trust on workbook creation
* We used the wrong project name for creating the trust. 
   Now we are using project name from config

Closes bug: #1318603

Change-Id: I51d1da115b0e0e9551d0174c821ed2886f5a79d8
2014-05-16 07:38:29 +00:00
Winson Chan
2b1a2ea7d9 Allow launch script to start any combination of servers
Currently, the launch options are only all, api, engine, and
executor. We want to allow launch options to start any combination
of servers such as api and engine or engine and executor. The
launch script is modified to the --server command line option to
accept a comma delimited list.

Change-Id: I4ce31f5fabd4de3b2f8f0e4c5ef661ed4ec7e5b2
Implements: blueprint mistral-launch-options
2014-05-15 07:59:28 -07:00
Jenkins
ecec340b52 Merge "Fix issue with tempest tests" 2014-05-15 09:26:55 +00:00
Jenkins
1d67fd609b Merge "Add test on arbitrary output dict in action" 2014-05-14 08:38:51 +00:00
Jenkins
214ae36e75 Merge "Fix demo.yaml example in tempest tests" 2014-05-14 08:38:13 +00:00
Nikolay Mahotkin
a8ae8e336e Fix 500 status code on DELETE request
Closes bug: #1318620

Change-Id: I0a5876111dfbe8f1284f28b3b9bf914779c1f560
2014-05-12 16:11:32 +04:00
Sergey Murashov
0847ca4766 Fix issue with tempest tests
Change-Id: I20cce5910c4b166531267ce4014dfadbb83cc31c
2014-05-12 11:09:41 +04:00
Nikolay Mahotkin
e600f63237 Task.publish now is processed as arbitrary structure
Change-Id: I74cf7ea7f19356461d3d55af7541b8a4ced4eeae
2014-05-08 16:17:35 +04:00
Nikolay Mahotkin
deca14c5e8 Fix demo.yaml example in tempest tests
Change-Id: Icce921290976f80c70487b770ecd7811a3e4ba18
2014-05-07 17:32:28 +04:00
Nikolay Mahotkin
116488a60a Add test on arbitrary output dict in action
Change-Id: I3cf0453638014fc53bd3005e434c6160f75d0cb0
2014-05-07 14:09:47 +04:00
Sergey Kolekonov
1984b3ea54 Fix mistral tests
- corrected the path to tests
- removed check_api.sh script because it's not needed anymore
- made scripts executable

Change-Id: I2c6364e8ad4355b8b8565904d58773e8412bdf6d
2014-05-06 12:36:22 +04:00