diff options
author | Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> | 2020-08-04 14:29:10 +0200 |
---|---|---|
committer | Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> | 2020-08-12 10:59:08 +0200 |
commit | 131d4dda822b637e816ef225d8a4c9981ccf56a7 (patch) | |
tree | a4ea4f3b350276b1da45033618f7ff7b74481a00 /tests/dcaegen2/testcases/resources/CertsLibrary.py | |
parent | bbd96bd93c8d3c773aee53a69c44b3ac9cc3696d (diff) |
Refactor DMaaP simulator and add tests.
Issue-ID: DCAEGEN2-1771
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com>
Change-Id: I65772f9cdaf546171941253abdf3977b41a3e50e
Diffstat (limited to 'tests/dcaegen2/testcases/resources/CertsLibrary.py')
-rw-r--r-- | tests/dcaegen2/testcases/resources/CertsLibrary.py | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/tests/dcaegen2/testcases/resources/CertsLibrary.py b/tests/dcaegen2/testcases/resources/CertsLibrary.py deleted file mode 100644 index b8189422..00000000 --- a/tests/dcaegen2/testcases/resources/CertsLibrary.py +++ /dev/null @@ -1,42 +0,0 @@ - -import os -import subprocess -import time - -from robot.api import logger - - -class CertsLibrary(object): - - def __init__(self): - pass - - - - @staticmethod - def generate_certs(): - ws = os.environ['WORKSPACE'] - script2run = ws + "/tests/dcaegen2/testcases/resources/gen-certs.sh" - logger.info("Running script: " + script2run) - logger.console("Running script: " + script2run) - subprocess.call([script2run, ws]) - time.sleep(5) - return - - @staticmethod - def remove_certs(): - ws = os.environ['WORKSPACE'] - script2run = ws + "/tests/dcaegen2/testcases/resources/rm-certs.sh" - logger.info("Running script: " + script2run) - logger.console("Running script: " + script2run) - subprocess.call([script2run, ws]) - time.sleep(5) - return - - - - - - - - |