ARIA-174 Refactor instantiation phase 189/head
authormax-orlov <maxim@gigaspaces.com>
Thu, 13 Jul 2017 13:49:15 +0000 (16:49 +0300)
committermax-orlov <maxim@gigaspaces.com>
Wed, 9 Aug 2017 12:52:08 +0000 (15:52 +0300)
commitdf2b916e624719e5f77e29c1e893c55f88e15862
treeb6bf84dc5cd3117ba225c5ee7f99e1b88cfd8471
parenta43bc6b1706398dd79eabb2f49b6dafcadc8dfde
ARIA-174 Refactor instantiation phase

The main issue this PR addressed was the consolidation
of instantiation mechanism into a single package - `topology`.

The code itself got additional refactoring:
1. `dump` no longer prints onto the console but rather returns a string representation to be printed.
2. The service related consumers use the new `topology` package.

These additional issues were fixed as part of this PR:
* Req-Cap mechanism is now trying to satisfy requirements for a specific capability type.
* Issue with resuming workflows - accessing a non existing attribute.
39 files changed:
aria/cli/commands/executions.py
aria/cli/commands/service_templates.py
aria/cli/commands/services.py
aria/core.py
aria/modeling/functions.py
aria/modeling/mixins.py
aria/modeling/service_common.py
aria/modeling/service_instance.py
aria/modeling/service_template.py
aria/modeling/utils.py
aria/orchestrator/execution_plugin/instantiation.py
aria/orchestrator/topology/__init__.py [new file with mode: 0644]
aria/orchestrator/topology/common.py [new file with mode: 0644]
aria/orchestrator/topology/instance_handler.py [new file with mode: 0644]
aria/orchestrator/topology/template_handler.py [new file with mode: 0644]
aria/orchestrator/topology/topology.py [new file with mode: 0644]
aria/orchestrator/topology/utils.py [new file with mode: 0644]
aria/orchestrator/workflow_runner.py
aria/orchestrator/workflows/api/task.py
aria/parser/consumption/__init__.py
aria/parser/consumption/consumer.py
aria/parser/consumption/context.py
aria/parser/consumption/modeling.py
aria/parser/consumption/style.py [deleted file]
aria/parser/modeling/context.py
aria/parser/presentation/fields.py
aria/parser/presentation/presentation.py
aria/parser/reading/__init__.py
aria/parser/reading/locator.py
aria/parser/validation/context.py
aria/parser/validation/issue.py
aria/utils/__init__.py
aria/utils/console.py
extensions/aria_extension_tosca/simple_v1_0/misc.py
extensions/aria_extension_tosca/simple_v1_0/modeling/__init__.py
tests/parser/service_templates.py
tests/parser/test_reqs_caps.py [new file with mode: 0644]
tests/resources/service-templates/tosca-simple-1.0/reqs_caps/reqs_caps1.yaml [new file with mode: 0644]
tests/storage/__init__.py