From 7602a54309adbe5c5346ee6befecc2e596976504 Mon Sep 17 00:00:00 2001 From: mbeierl Date: Tue, 11 Jul 2017 15:12:35 -0400 Subject: Change all paths Changes the paths of all source code so that it exists under the dockerfile location for each container. This way we can use COPY instead of git clone, as well as use the existing JJB. Change-Id: I883b2957d89659c164fff0a1ebc4d677c534796d JIRA: STORPERF-188 Signed-off-by: mbeierl --- tests/fio_tests/fio_invoker_test.py | 88 ------------------------------------- 1 file changed, 88 deletions(-) delete mode 100644 tests/fio_tests/fio_invoker_test.py (limited to 'tests/fio_tests/fio_invoker_test.py') diff --git a/tests/fio_tests/fio_invoker_test.py b/tests/fio_tests/fio_invoker_test.py deleted file mode 100644 index 4672651..0000000 --- a/tests/fio_tests/fio_invoker_test.py +++ /dev/null @@ -1,88 +0,0 @@ -############################################################################## -# Copyright (c) 2017 Dell EMC and others. -# -# 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 -############################################################################## - -from StringIO import StringIO -import json -import unittest - -from storperf.fio.fio_invoker import FIOInvoker - - -class Test(unittest.TestCase): - - simple_dictionary = {'Key': 'Value'} - - def exceptional_event(self, callback_id, metric): - self.exception_called = True - raise Exception - - def event(self, callback_id, metric): - self.metric = metric - - def setUp(self): - self.exception_called = False - self.metric = None - self.fio_invoker = FIOInvoker() - - def testStdoutValidJSON(self): - self.fio_invoker.register(self.event) - string = json.dumps(self.simple_dictionary, indent=4, sort_keys=True) - - output = StringIO(string + "\n") - self.fio_invoker.stdout_handler(output) - - self.assertEqual(self.simple_dictionary, self.metric) - - def testStdoutValidJSONWithFIOOutput(self): - self.fio_invoker.register(self.event) - string = json.dumps(self.simple_dictionary, indent=4, sort_keys=True) - terminating = "fio: terminating on signal 2\n" - output = StringIO(terminating + string + "\n") - self.fio_invoker.stdout_handler(output) - - self.assertEqual(self.simple_dictionary, self.metric) - - def testStdoutNoJSON(self): - self.fio_invoker.register(self.event) - string = "{'key': 'value'}" - - output = StringIO(string + "\n") - self.fio_invoker.stdout_handler(output) - - self.assertEqual(None, self.metric) - - def testStdoutInvalidJSON(self): - self.fio_invoker.register(self.event) - string = "{'key':\n}" - - output = StringIO(string + "\n") - self.fio_invoker.stdout_handler(output) - - self.assertEqual(None, self.metric) - - def testStdoutAfterTerminated(self): - self.fio_invoker.register(self.event) - string = json.dumps(self.simple_dictionary, indent=4, sort_keys=True) - - self.fio_invoker.terminated = True - output = StringIO(string + "\n") - self.fio_invoker.stdout_handler(output) - - self.assertEqual(None, self.metric) - - def testStdoutCallbackException(self): - self.fio_invoker.register(self.exceptional_event) - self.fio_invoker.register(self.event) - string = json.dumps(self.simple_dictionary, indent=4, sort_keys=True) - - output = StringIO(string + "\n") - self.fio_invoker.stdout_handler(output) - - self.assertEqual(self.simple_dictionary, self.metric) - self.assertEqual(self.exception_called, True) -- cgit 1.2.3-korg