summaryrefslogtreecommitdiffstats
path: root/install/ui/test/ipa_tests.js
diff options
context:
space:
mode:
authorPetr Vobornik <pvoborni@redhat.com>2014-03-10 17:05:51 +0100
committerPetr Vobornik <pvoborni@redhat.com>2014-03-27 14:54:08 +0100
commit06a7a1b3cb277284448dd8344940395f0b29cd70 (patch)
tree2204bfebe49d3a2224fd4d5828c4980956ea4a26 /install/ui/test/ipa_tests.js
parentd5cf0b273ad511d6cb99fbcb900eff528fe172df (diff)
downloadfreeipa-06a7a1b3cb277284448dd8344940395f0b29cd70.tar.gz
freeipa-06a7a1b3cb277284448dd8344940395f0b29cd70.tar.xz
freeipa-06a7a1b3cb277284448dd8344940395f0b29cd70.zip
webui: replace IPA.command usage with rpc.command
Replace all IPA.command, IPA.batch_command and IPA.concurrent_command usages by equivalents from rpc module. Reviewed-By: Adam Misnyovszki <amisnyov@redhat.com>
Diffstat (limited to 'install/ui/test/ipa_tests.js')
-rw-r--r--install/ui/test/ipa_tests.js18
1 files changed, 12 insertions, 6 deletions
diff --git a/install/ui/test/ipa_tests.js b/install/ui/test/ipa_tests.js
index 8ac782ef8..52110c481 100644
--- a/install/ui/test/ipa_tests.js
+++ b/install/ui/test/ipa_tests.js
@@ -18,8 +18,14 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-define(['freeipa/ipa', 'freeipa/jquery', 'freeipa/dialog', 'freeipa/widget',
- 'freeipa/details'], function(IPA, $) {
+define([
+ 'freeipa/ipa',
+ 'freeipa/jquery',
+ 'freeipa/rpc',
+ 'freeipa/dialog',
+ 'freeipa/widget',
+ 'freeipa/details'],
+ function(IPA, $, rpc) {
return function() {
module('ipa');
@@ -88,7 +94,7 @@ test("Testing IPA.get_member_attribute().", function() {
"IPA.get_member_attribute(null, \"group\")");
});
-test("Testing successful IPA.command().", function() {
+test("Testing successful rpc.command().", function() {
var method = 'method';
var args = ['arg1', 'arg2', 'arg3'];
@@ -138,7 +144,7 @@ test("Testing successful IPA.command().", function() {
request.success(xhr, text_status, error_thrown);
};
- IPA.command({
+ rpc.command({
entity: object,
method: method,
args: args,
@@ -164,7 +170,7 @@ test("Testing successful IPA.command().", function() {
$.ajax = orig;
});
-test("Testing unsuccessful IPA.command().", function() {
+test("Testing unsuccessful rpc.command().", function() {
var method = 'method';
var args = ['arg1', 'arg2', 'arg3'];
@@ -209,7 +215,7 @@ test("Testing unsuccessful IPA.command().", function() {
request.error(xhr, text_status, error_thrown);
};
- IPA.command({
+ rpc.command({
entity: object,
method: method,
args: args,