diff options
author | Aleksandra Maciaga <aleksandra.maciaga@nokia.com> | 2019-11-20 12:14:44 +0100 |
---|---|---|
committer | Aleksandra Maciaga <aleksandra.maciaga@nokia.com> | 2020-01-02 11:14:29 +0100 |
commit | a73f9a5c673acc711aed2e7eef7fcb984b7a96bc (patch) | |
tree | ee4414a2e33de8ee043763ca6ae5a3238972d72e /tests/dcaegen2/testcases/resources/CertsLibrary.py | |
parent | 99022c8b866b18a8d08b8f1247dc63a4e81c834b (diff) |
Add scripts generating temporary certificates for VES CSIT tests
Issue-ID: DCAEGEN2-2000
Signed-off-by: Aleksandra Maciaga <aleksandra.maciaga@nokia.com>
Change-Id: I2b33c6716d349c60450a4acad3d87e5fc92b27fc
Diffstat (limited to 'tests/dcaegen2/testcases/resources/CertsLibrary.py')
-rw-r--r-- | tests/dcaegen2/testcases/resources/CertsLibrary.py | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/dcaegen2/testcases/resources/CertsLibrary.py b/tests/dcaegen2/testcases/resources/CertsLibrary.py new file mode 100644 index 00000000..b8189422 --- /dev/null +++ b/tests/dcaegen2/testcases/resources/CertsLibrary.py @@ -0,0 +1,42 @@ + +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 + + + + + + + + |