-
Notifications
You must be signed in to change notification settings - Fork 5
/
testMasker.sh
executable file
·27 lines (27 loc) · 1.01 KB
/
testMasker.sh
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
#! /bin/bash
if [ -z $1 ]; then
echo ''
echo 'Pass the protocol and hostname and port where masker is running (e.g., ./testMsaker.sh "https://localhost:9980")'
echo ''
echo 'Try again'
echo ''
else
curl -k --location --request POST $1'/MaskWebServices/v1/masker/doMasking' --header 'Content-type: application/json' --header 'Authorization: Basic d2FhdXhzdmNzOldAdHMwbiE=' --data '{
"request": {
"tenantID":"companyB",
"maskNumbers": true,
"templates": [
],
"unmasked": [
"Bill has two emails: [email protected] and [email protected]",
"this has a name: Nathaniel Mills",
"this has a number: 123",
"456 started with a number",
"Nat started with a name",
"Connecticut started with a geographic reference",
"https:\/\/ibm.webex.com\/join\/wnm3 started with a url",
"This has an unrecognizable word (hereitis) <- there"
]
}
}' | jq .
fi