Building Grafana automation

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-05-07 16:58:25 -07:00
parent 47a9d7a741
commit 79fb905fd7
7 changed files with 117 additions and 26 deletions

View File

@@ -134,6 +134,7 @@ class DataplaneTest(cvtest):
raw_lines=[],
raw_lines_file="",
sets=[],
graphgroups=None
):
super().__init__(lfclient_host=lf_host, lfclient_port=lf_port)
@@ -157,6 +158,7 @@ class DataplaneTest(cvtest):
self.raw_lines = raw_lines
self.raw_lines_file = raw_lines_file
self.sets = sets
self.graphgroups = graphgroups
def setup(self):
# Nothing to do at this time.
@@ -201,7 +203,7 @@ class DataplaneTest(cvtest):
self.create_and_run_test(self.load_old_cfg, self.test_name, self.instance_name,
self.config_name, self.sets,
self.pull_report, self.lf_host, self.lf_user, self.lf_password,
cv_cmds)
cv_cmds, graphgroupsfile=self.graphgroups)
self.rm_text_blob(self.config_name, blob_test) # To delete old config with same name
@@ -244,6 +246,7 @@ def main():
help="Specify requested upload speed. Percentage of theoretical is also supported. Default: 0")
parser.add_argument("--duration", default="",
help="Specify duration of each traffic run")
parser.add_argument("--graphgroups", help="File to save graphgroups to", default=None)
args = parser.parse_args()
@@ -267,7 +270,8 @@ def main():
disables = args.disable,
raw_lines = args.raw_line,
raw_lines_file = args.raw_lines_file,
sets = args.set
sets = args.set,
graphgroups = args.graphgroups
)
CV_Test.setup()
CV_Test.run()