summaryrefslogtreecommitdiffstats
path: root/install/ui/test/aci_tests.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-06-18 18:59:44 +0200
committerPetr Vobornik <pvoborni@redhat.com>2014-06-27 14:18:35 +0200
commit59f66a156be393dba92ab6ca999cdc39c6787c36 (patch)
treeff09870927ede7f66edf4d2d3c988e755cb79e2d /install/ui/test/aci_tests.js
parente6a373e930ae483bc2eb384da0bba5f2b4b8f6c2 (diff)
downloadfreeipa-59f66a156be393dba92ab6ca999cdc39c6787c36.tar.gz
freeipa-59f66a156be393dba92ab6ca999cdc39c6787c36.tar.xz
freeipa-59f66a156be393dba92ab6ca999cdc39c6787c36.zip
webui: fix detection of RPC command
old detection did not work with the static version used for test and demonstration purposes. https://fedorahosted.org/freeipa/ticket/4357 Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
Diffstat (limited to 'install/ui/test/aci_tests.js')
-rw-r--r--install/ui/test/aci_tests.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/install/ui/test/aci_tests.js b/install/ui/test/aci_tests.js
index e82dd86df..1cfc2fb4f 100644
--- a/install/ui/test/aci_tests.js
+++ b/install/ui/test/aci_tests.js
@@ -229,10 +229,10 @@ var get_visible_rows = function(section) {
test("Testing type target.", function() {
- var data = {};
- data.result = {};
- data.result.result = {
- type: 'hostgroup'
+ var data = {
+ id: null,
+ error: null,
+ result: { result: { type: 'hostgroup'} }
};
target_facet.load(data);
@@ -266,10 +266,10 @@ test("Testing type target.", function() {
test("Testing general target.", function() {
- var data = {};
- data.result = {};
- data.result.result = {
- extratargetfilter: 'somevalue'
+ var data = {
+ id: null,
+ error: null,
+ result: { result: { extratargetfilter: 'hostgroup'} }
};
target_facet.load(data);