[simulation mode] implement mock context manager

Registered by Ekaterina Chernova

Context manager is responsible for providing a valid context with
   corresponding attributes and functions for the current object.
   Modified context manager will be used for mock implementation. It will be
   inherited from the original one and will be called ``MockContextManager``.
   It will store instructions which objects or classes are needed to be
   replaced with mocks and return context with mock definition instead of the
   original function. For that purpose several dictionaries should be used:
   one for mapping objects with mocks and other one for class mapping.

Blueprint information

Status:
Started
Approver:
Serg Melikyan
Priority:
Medium
Drafter:
Ekaterina Chernova
Direction:
Needs approval
Assignee:
Ekaterina Chernova
Definition:
New
Series goal:
Accepted for mitaka
Implementation:
Started
Milestone target:
milestone icon mitaka-3
Started by
Ekaterina Chernova

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/mock-context-manager,n,z

Addressed by: https://review.openstack.org/252951
    Add OneOf smart type

Addressed by: https://review.openstack.org/239681
    Add MockContextManager

Addressed by: https://review.openstack.org/252990
    [mocking-machinery] Add inject YAQL functions

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.