Commit Graph

3 Commits

Author SHA1 Message Date
Sean McGinnis 545a34c751
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: I6a4524c3e0458747646995615535e85cde2e155f
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 11:54:27 -05:00
ali 504243bcef Add 'interface' field to Workflow resource
* Workflow resource(returned by workflow-get APIs) has a new JSON field
 called 'interface', it contains the inputs and the outputs.

  -Both input and output are lists.
  -The output list contains the output param names.
  -The input list contains the inputs, if the input has a default value,
   the entry in the list will be a JSON object, with the name of the
   input and the default value, otherwise its the input param name.

   For example:
     {"input": [ "input_with_no_default_value",
   { "string_input": "some_string" },
   {"json_input": {
     "defaultKey": "defaultValue"
    }}],
     "output":["output1","output2"]}

Change-Id: Id9be6c1d9bbe4a4c965530364833e71f8b7cacc6
Implements: blueprint mistral-workflow-outputs-in-wf-apis
Signed-off-by: ali <ali.abdelal@nokia.com>
2020-01-16 14:13:34 +00:00
Pierre Gaxatte 522f388709 Add a policy to control the right to publish resources
This change intends to add the following policies:
- actions:publicize
- workflows:publicize

A refactor of the policy tests is included to increase the coverage.

Change-Id: I8bd637f7de63f02c63f3c304cb6f5198fc0c5f42
Closes-Bug: 1779293
2018-07-05 11:46:52 +02:00