aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/features/doctor.py
blob: 4d295a674fdf60439ad18709bf2fd2cec1d2e5d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/python
#
# Copyright (c) 2017 All rights reserved
# This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# 0.1: This script boots the VM1 and allocates IP address from Nova
# Later, the VM2 boots then execute cloud-init to ping VM1.
# After successful ping, both the VMs are deleted.
# 0.2: measure test duration and publish results under json format
#
#
import functest.core.feature_base as base


class Doctor(base.FeatureBase):
    def __init__(self):
        super(Doctor, self).__init__(project='doctor',
                                     case='doctor-notification',
                                     repo='dir_repo_doctor')
        self.cmd = 'cd %s/tests && ./run.sh' % self.repo