add tests

This commit is contained in:
Paul Trowbridge 2018-06-26 00:13:48 -04:00
parent bf4a867ddb
commit 645639203b
3 changed files with 26 additions and 0 deletions

1
test/dcard_regex/curl Normal file
View File

@ -0,0 +1 @@
curl -H "Content-Type: application/json" -X POST -d@./regex.json http://localhost/regex

View File

@ -0,0 +1,24 @@
[
{
"regex": {
"function": "extract",
"description": "pull first 20 characters from description for mapping",
"where": [
{}
],
"defn": [
{
"regex": ".{1,20}",
"map": "y",
"field": "f20",
"flag": "",
"key": "{Description}",
"retain": "y"
}
]
},
"sequence": 2,
"name": "First 20",
"srce": "dcard"
}
]

1
test/dcard_source/curl Normal file
View File

@ -0,0 +1 @@
curl -H "Content-Type: application/json" -X POST -d@./srce.json http://localhost/srce_set