3 # Copyright (c) 2017 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
8 # http://www.apache.org/licenses/LICENSE-2.0
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
16 import functest.core.feature as base
19 class Doctor(base.Feature):
20 def __init__(self, case_name='doctor-notification'):
21 super(Doctor, self).__init__(project='doctor',
23 repo='dir_repo_doctor')
24 self.cmd = 'cd %s/tests && ./run.sh' % self.repo