-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmobileid-tests.sh
More file actions
executable file
·40 lines (36 loc) · 1.57 KB
/
Copy pathmobileid-tests.sh
File metadata and controls
executable file
·40 lines (36 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/sh
# mobileid-tests.sh
#
# Generic test script against Swisscom Mobile ID service
# Dependencies: mobileid-sign.sh
#
# License: Licensed under the Apache License, Version 2.0 or later; see LICENSE.md
# Author: Swisscom (Schweiz) AG
#
# set current working path to the path of the script
cd "$(dirname "$0")"
# Fault codes with specific MSISDN’s
echo "> Fault codes with specific MSISDN’s"
./mobileid-sign.sh -v +41000092101 "WRONG_PARAM" en
./mobileid-sign.sh -v +41000092102 "MISSING_PARAM" en
./mobileid-sign.sh -v +41000092103 "WRONG_DATA_LENGTH" en
./mobileid-sign.sh -v +41000092104 "UNAUTHORIZED_ACCESS" en
./mobileid-sign.sh -v +41000092105 "UNKNOWN_CLIENT" en
./mobileid-sign.sh -v +41000092107 "INAPPROPRIATE_DATA" en
./mobileid-sign.sh -v +41000092108 "INCOMPATIBLE_INTERFACE" en
./mobileid-sign.sh -v +41000092109 "UNSUPPORTED_PROFILE" en
./mobileid-sign.sh -v +41000092208 "EXPIRED_TRANSACTION" en
./mobileid-sign.sh -v +41000092209 "OTA_ERROR" en
./mobileid-sign.sh -v +41000092401 "USER_CANCEL" en
./mobileid-sign.sh -v +41000092402 "PIN_NR_BLOCKED" en
./mobileid-sign.sh -v +41000092403 "CARD_BLOCKED" en
./mobileid-sign.sh -v +41000092404 "NO_KEY_FOUND" en
./mobileid-sign.sh -v +41000092406 "PB_SIGNATURE_PROCESS" en
./mobileid-sign.sh -v +41000092422 "NO_CERT_FOUND" en
./mobileid-sign.sh -v +41000092900 "INTERNAL_ERROR" en
# Unknown fault codes
echo "> Specific MSISDN's with inexistent fault code"
./mobileid-sign.sh -v +41000092700 "FAULT_CODE_DOES_NOT_EXIST" en
# Test of Heartbeat
echo "> Specific MSISDN for Heratbeat"
./mobileid-sign.sh -v +41000000000 "HEARTBEAT" en