aboutsummaryrefslogtreecommitdiffstats
path: root/tests/oom-platform-cert-service/certservice/libraries
diff options
context:
space:
mode:
authorRemigiusz Janeczek <remigiusz.janeczek@nokia.com>2021-07-18 19:28:30 +0200
committerRemigiusz Janeczek <remigiusz.janeczek@nokia.com>2021-07-19 10:15:21 +0200
commit2e07e35b23e1e3f3d2373def701b110cba92295d (patch)
tree9a56495077263020a5ea10a1028b6eea9aa40914 /tests/oom-platform-cert-service/certservice/libraries
parent2a8ea348f7e0b17aa2c92e298ccac382bf772362 (diff)
Add certificate update cases to Cert Service CSITs
Issue-ID: OOM-2752 Signed-off-by: Remigiusz Janeczek <remigiusz.janeczek@nokia.com> Change-Id: I90b39011eb959d50a0e060586bcd316f747d4456
Diffstat (limited to 'tests/oom-platform-cert-service/certservice/libraries')
-rw-r--r--tests/oom-platform-cert-service/certservice/libraries/ResponseParser.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/oom-platform-cert-service/certservice/libraries/ResponseParser.py b/tests/oom-platform-cert-service/certservice/libraries/ResponseParser.py
new file mode 100644
index 00000000..d4de5f28
--- /dev/null
+++ b/tests/oom-platform-cert-service/certservice/libraries/ResponseParser.py
@@ -0,0 +1,3 @@
+def parse_response(response):
+ certChain = response["certificateChain"]
+ return "".join(certChain).encode("base64").replace("\n", "").strip()