Update Xtesting to 0.98
[functest.git] / functest / opnfv_tests / features / domino.py
1 #!/usr/bin/python
2 #
3 # Copyright (c) 2015 All rights reserved
4 # This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # 0.1: This script boots the VM1 and allocates IP address from Nova
11 # Later, the VM2 boots then execute cloud-init to ping VM1.
12 # After successful ping, both the VMs are deleted.
13 # 0.2: measure test duration and publish results under json format
14 # 0.3: add report flag to push results when needed
15 # 0.4: refactoring to match Test abstraction class
16
17 import functest.core.feature_base as base
18
19
20 class Domino(base.FeatureBase):
21     def __init__(self):
22         super(Domino, self).__init__(project='domino',
23                                      case='domino-multinode',
24                                      repo='dir_repo_domino')
25         self.cmd = 'cd %s && ./tests/run_multinode.sh' % self.repo