separate form config files for test cases

pull/7/head
Ferry Boender 9 years ago
parent 93064be2e7
commit 125bd1cb82
  1. 12
      test/test_formconfig_basic.json
  2. 20
      test/test_formconfig_callback.json
  3. 6
      test/test_formconfig_callback.sh
  4. 13
      test/test_formconfig_hidden.json
  5. 12
      test/test_formconfig_missingscript.json
  6. 12
      test/test_formconfig_noexec.json
  7. 19
      test/test_scriptform_list.json

@ -0,0 +1,12 @@
{
"title": "test",
"forms": [
{
"name": "test",
"title": "title",
"description": "description",
"script": "test.sh",
"fields": []
}
]
}

@ -0,0 +1,20 @@
{
"title": "test",
"forms": [
{
"name": "test_store",
"title": "title",
"description": "description",
"script": "test_formconfig_callback.sh",
"fields": []
},
{
"name": "test_raw",
"title": "title",
"description": "description",
"script": "test_formconfig_callback.sh",
"output": "raw",
"fields": []
}
]
}

@ -0,0 +1,6 @@
#!/bin/sh
echo "stdout"
echo "stderr" >&2
exit 33

@ -0,0 +1,13 @@
{
"title": "test",
"forms": [
{
"name": "test",
"title": "title",
"description": "description",
"script": "test.sh",
"hidden": true,
"fields": []
}
]
}

@ -0,0 +1,12 @@
{
"title": "test",
"forms": [
{
"name": "test",
"title": "title",
"description": "description",
"script": "nonexisting.sh",
"fields": []
}
]
}

@ -0,0 +1,12 @@
{
"title": "test",
"forms": [
{
"name": "test",
"title": "title",
"description": "description",
"script": "test_noexec.sh",
"fields": []
}
]
}

@ -0,0 +1,19 @@
{
"title": "test",
"forms": [
{
"name": "test_list_1",
"title": "title_list_1",
"description": "description",
"script": "test.sh",
"fields": []
},
{
"name": "test_list_2",
"title": "test_list_2",
"description": "description",
"script": "test.sh",
"fields": []
}
]
}
Loading…
Cancel
Save