blob: d7c062cb1c36ffa56d6af3542066432cccd824af [file] [log] [blame]
Dennis Dmitriev3ec2e532018-06-08 04:33:34 +03001#!/usr/bin/env python
2
3import os
4import sys
5
6sys.path.append(os.getcwd())
7try:
8 from tcp_tests.helpers import ext
9 from tcp_tests.fixtures import config_fixtures
10 from tcp_tests.managers import envmanager_devops
11except ImportError:
12 print("ImportError: Run the application from the tcp-qa directory or "
13 "set the PYTHONPATH environment variable to directory which contains"
14 " ./tcp_tests")
15 sys.exit(1)
16
17
18def main():
19 """Create fuel-devops environment from template"""
20 config = config_fixtures.config()
21 env = envmanager_devops.EnvironmentManager(config=config)
22 if not env.has_snapshot(ext.SNAPSHOT.hardware):
23 env.create_snapshot(ext.SNAPSHOT.hardware)
24
25
26if __name__ == '__main__':
27 sys.exit(main())