DevOps: Create script to reproduce environment for using VMware vCenter and NSX
Create a script env_assist.py for revert environment (including VMware vCenter and NSX nodes) before system test. It must works in such manners:
1. there is /etc/env_
{"env_Ubuntu_
"env_Ubuntu_
2. script provide the decorator with_env, which take a environment as a parameter and revert it around tests. Tests must be defined with it:
@with_env
def test(env):
...
...
and launched with environment-
env = getenv()
test(env)
3. name of the environment could be passed by environment variable from jobs or as command line argument or any another way if we use this script as pythonic library.
Blueprint information
- Status:
- Complete
- Approver:
- Andrey Danin
- Priority:
- Not
- Drafter:
- Igor Gajsin
- Direction:
- Needs approval
- Assignee:
- Igor Gajsin
- Definition:
- Obsolete
- Series goal:
- Proposed for future
- Implementation:
- Deferred
- Milestone target:
- None
- Started by
- Completed by
- Andrey Danin