aboutsummaryrefslogtreecommitdiffstats
path: root/tests/oom-platform-cert-service/certservice/libraries
diff options
context:
space:
mode:
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()