Merge "netperf_node test case improvement."
[yardstick.git] / yardstick / cmd / commands / env.py
1 ##############################################################################
2 # Copyright (c) 2016 Huawei Technologies Co.,Ltd and others.
3 #
4 # All rights reserved. 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 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9 from yardstick.common.httpClient import HttpClient
10
11
12 class EnvCommand(object):
13
14     def do_influxdb(self, args):
15         url = 'http://localhost:5000/yardstick/env/action'
16         data = {'action': 'createInfluxDBContainer'}
17         HttpClient().post(url, data)