Test case data.

pull/7/head
Ferry Boender 10 years ago
parent 9935afbed9
commit 0fd145c1fc
  1. 27
      test/test_formdefinition_validate.json
  2. 27
      test/test_webapp.json

@ -1,6 +1,19 @@
{ {
"title": "test", "title": "test",
"forms": [ "forms": [
{
"name": "test_required",
"title": "title",
"description": "description",
"script": "test.sh",
"fields": [
{
"name": "string",
"type": "string",
"required": true
}
]
},
{ {
"name": "test_val_string", "name": "test_val_string",
"title": "title", "title": "title",
@ -42,6 +55,20 @@
"max": 2.3 "max": 2.3
} }
] ]
},
{
"name": "test_val_date",
"title": "title",
"description": "description",
"script": "test.sh",
"fields": [
{
"name": "val_date",
"type": "date",
"min": "2015-03-02",
"max": "2015-03-05"
}
]
} }
] ]
} }

@ -1,6 +1,19 @@
{ {
"title": "Webapp test", "title": "Webapp test",
"users": {
"admin": "8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918",
"user": "04f8996da763b7a969b1028ee3007569eaf3a635486ddab211d512c85b9df8fb"
},
"forms": [ "forms": [
{
"name": "admin_only",
"title": "Admin only",
"description": "Restricted form",
"script": "test.sh",
"hidden": "true",
"fields": [],
"allowed_users": ["admin"]
},
{ {
"name": "hidden", "name": "hidden",
"title": "Hidden form", "title": "Hidden form",
@ -23,6 +36,20 @@
} }
] ]
}, },
{
"name": "output_raw",
"title": "Output raw",
"description": "Output raw",
"script": "test.sh",
"output": "raw",
"fields": [
{
"name": "string",
"title": "This string should be raw in the output",
"type": "string"
}
]
},
{ {
"name": "validate", "name": "validate",
"title": "Validated form", "title": "Validated form",

Loading…
Cancel
Save