From 7ed9805a7cb9d201defb48d2d4d629e73fd974d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Remseth?= Date: Tue, 1 Oct 2019 12:25:57 +0200 Subject: [PATCH] Adding a stray file that was lying around, but a very useful script it has been, so I'm adding it to the repo --- .gitignore | 1 + .../test-smdp-plus-emulator.sh | 54 +++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100755 sim-administration/sm-dp-plus-emulator/test-smdp-plus-emulator.sh diff --git a/.gitignore b/.gitignore index 329844cb1..1f09c6d5a 100644 --- a/.gitignore +++ b/.gitignore @@ -44,3 +44,4 @@ metrics_descriptor.pb # Python virtual env venv +prime-service-account.json diff --git a/sim-administration/sm-dp-plus-emulator/test-smdp-plus-emulator.sh b/sim-administration/sm-dp-plus-emulator/test-smdp-plus-emulator.sh new file mode 100755 index 000000000..8b7a8d52c --- /dev/null +++ b/sim-administration/sm-dp-plus-emulator/test-smdp-plus-emulator.sh @@ -0,0 +1,54 @@ +#!/bin/bash -x + +## +## Utility script that can be used to see if the sm-dp+ emulator +## is behaving halfway decently. Obviously we should also have +## unit tests, integration tests etc., but this script has proven to +## be handy while developing the emulator, so I'm including it for +## completeness/posterity. +## + +#ES2PLUS_ENDPOINT="http://0.0.0.0:18080" +ES2PLUS_ENDPOINT="http://127.0.0.1:8080" +FUNCTION_REQUESTER_IDENTIFIER=Dunderhonning +ICCID="8901000000000000001" +FUNCTION_REQUESTER_EMULATOR="Dunderhonning" +GET_PROFILE_STATUS_PATH="/gsma/rsp2/es2plus/getProfileStatus" +GET_PROFILE_STATUS_PAYLOAD=$(cat <