summaryrefslogtreecommitdiffstats
path: root/install/static/test/data/service_remove_host.sh
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2010-09-24 19:50:29 -0400
committerAdam Young <ayoung@redhat.com>2010-09-24 19:50:29 -0400
commit346615d4a0029fb3f59344a98963b7fea8356b8c (patch)
treef038a31261d2560d703daee0f2f190049ebfac23 /install/static/test/data/service_remove_host.sh
parent59d46abcd5fe9b5e83d4ae962a3afe8bf6bd8e87 (diff)
downloadfreeipa-346615d4a0029fb3f59344a98963b7fea8356b8c.tar.gz
freeipa-346615d4a0029fb3f59344a98963b7fea8356b8c.tar.xz
freeipa-346615d4a0029fb3f59344a98963b7fea8356b8c.zip
Test framework for Web UI.
Test framework for Web UI has been created using qUnit. The test files are located in install/static/test. The main page is index.html which contains links to all test suites (xxx_tests.html). The test cases are stored in xxx_tests.js. All test suites can be executed at once using all_tests.html. The test data is stored in data folder. This patch includes test suites for ipa.js and entity.js. Some variables and functions in ipa.js have been modified to accomodate testing (e.g. JSON URL, error handler, synchronous operation). The sampledata has been moved to test/data. The develop.js and webui.js also have been modified accordingly.
Diffstat (limited to 'install/static/test/data/service_remove_host.sh')
-rw-r--r--install/static/test/data/service_remove_host.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/install/static/test/data/service_remove_host.sh b/install/static/test/data/service_remove_host.sh
new file mode 100644
index 000000000..15234f4d0
--- /dev/null
+++ b/install/static/test/data/service_remove_host.sh
@@ -0,0 +1,18 @@
+{
+ "error": null,
+ "id": 0,
+ "result": {
+ "completed": 1,
+ "failed": {
+ "managedby": {
+ "host": []
+ }
+ },
+ "result": {
+ "dn": "krbprincipalname=test/dev.example.com@dev.example.com,cn=services,cn=accounts,dc=dev,dc=example,dc=com",
+ "krbprincipalname": [
+ "test/dev.example.com@DEV.EXAMPLE.COM"
+ ]
+ }
+ }
+}