rhoconnect 3.3.1.beta2 → 3.3.1.beta3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -1
- data/Gemfile.lock +5 -5
- data/doc/push-backend-setup.txt +8 -9
- data/doc/rest-api.txt +340 -317
- data/examples/simple/Gemfile.lock +101 -0
- data/examples/simple/dump.rdb +0 -0
- data/lib/rhoconnect/api/system/save_adapter.rb +1 -1
- data/lib/rhoconnect/version.rb +1 -1
- data/lib/rhoconnect/web-console/controllers/admins.js +1 -2
- data/lib/rhoconnect/web-console/models/client.js +3 -0
- data/lib/rhoconnect/web-console/models/doc.js +4 -2
- data/lib/rhoconnect/web-console/models/user.js +4 -0
- data/lib/rhoconnect/web-console/templates/index.erb +1 -4
- data/lib/rhoconnect/web-console/views/api_token.js +16 -16
- data/lib/rhoconnect/web-console/views/doc.js +5 -5
- data/lib/rhoconnect/web-console/views/edit_user.js +46 -46
- data/lib/rhoconnect/web-console/views/home.js +2 -17
- data/lib/rhoconnect/web-console/views/new_ping.js +12 -7
- data/lib/rhoconnect/web-console/views/new_user.js +1 -1
- data/lib/rhoconnect/web-console/views/server_doc.js +6 -4
- data/lib/rhoconnect/web-console/views/settings.js +53 -53
- data/lib/rhoconnect/web-console/views/show_device.js +1 -1
- data/lib/rhoconnect/web-console/views/show_user.js +2 -2
- data/lib/rhoconnect/web-console/views/source_docs.js +6 -5
- data/rhoconnect.gemspec +1 -1
- data/spec/javascripts/admins_routes_spec.js +0 -7
- data/spec/javascripts/doc_view_spec.js +0 -7
- data/spec/javascripts/edit_user_view_spec.js +44 -44
- data/spec/javascripts/home_view_spec.js +0 -7
- metadata +625 -636
data/rhoconnect.gemspec
CHANGED
@@ -39,7 +39,7 @@ Gem::Specification.new do |s|
|
|
39
39
|
|
40
40
|
s.add_dependency('bundler', '~> 1.0')
|
41
41
|
s.add_dependency("sinatra", '~> 1.3')
|
42
|
-
s.add_dependency('rake', '~> 0.9.2')
|
42
|
+
s.add_dependency('rake', '~> 0.9.2.2')
|
43
43
|
s.add_dependency('json', '~> 1.6.0')
|
44
44
|
s.add_dependency('rubyzip', '~> 0.9.4')
|
45
45
|
s.add_dependency('uuidtools', '>= 2.1.1')
|
@@ -110,13 +110,6 @@ describe("Admins routes", function() {
|
|
110
110
|
expect(this.routeSpy).toHaveBeenCalledOnce();
|
111
111
|
expect(this.routeSpy).toHaveBeenCalledWith("1","2");
|
112
112
|
});
|
113
|
-
|
114
|
-
it("fires the change_admin route", function() {
|
115
|
-
this.router.bind('route:change_admin', this.routeSpy);
|
116
|
-
this.router.navigate("change_admin", true);
|
117
|
-
expect(this.routeSpy).toHaveBeenCalledOnce();
|
118
|
-
expect(this.routeSpy).toHaveBeenCalledWith();
|
119
|
-
});
|
120
113
|
|
121
114
|
});
|
122
115
|
|
@@ -26,11 +26,4 @@ describe("DocView", function(){
|
|
26
26
|
expect(this.docRenderSpy).toHaveBeenCalledOnce();
|
27
27
|
});
|
28
28
|
|
29
|
-
it("should have correct html rendered ",function(){
|
30
|
-
var title = this.docView.el.innerHTML.search('testkey');
|
31
|
-
expect(title).toBeGreaterThan(0);
|
32
|
-
|
33
|
-
var change_btn = this.docView.el.innerHTML.search('Upload string');
|
34
|
-
expect(change_btn).toBeGreaterThan(0);
|
35
|
-
})
|
36
29
|
});
|
@@ -1,44 +1,44 @@
|
|
1
|
-
describe("EditUserView", function(){
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
});
|
1
|
+
// describe("EditUserView", function(){
|
2
|
+
//
|
3
|
+
// beforeEach(function(){
|
4
|
+
// var session = new Session();
|
5
|
+
// session.setAuthenticated('true');
|
6
|
+
// session.setApiKey('testtoken');
|
7
|
+
// this.editUserView = new App.Views.EditUser();
|
8
|
+
// });
|
9
|
+
//
|
10
|
+
// afterEach(function(){
|
11
|
+
// var session = new Session();
|
12
|
+
// session.setAuthenticated('false');
|
13
|
+
// session.setApiKey(null);
|
14
|
+
// });
|
15
|
+
//
|
16
|
+
// it("should have render initial html",function(){
|
17
|
+
// this.UserRenderSpy = sinon.spy(this.editUserView,'render');
|
18
|
+
//
|
19
|
+
// this.editUserView.render();
|
20
|
+
// expect(this.UserRenderSpy).toHaveBeenCalledOnce();
|
21
|
+
// });
|
22
|
+
//
|
23
|
+
// it("should call edit",function(){
|
24
|
+
// this.editUserRenderSpy = sinon.spy(this.editUserView,'edit');
|
25
|
+
// sinon.stub(jQuery,'ajax').yieldsTo("success");
|
26
|
+
// function myevent(){
|
27
|
+
// this.preventDefault=function(){return true;}
|
28
|
+
// }
|
29
|
+
// e = new myevent();
|
30
|
+
//
|
31
|
+
// this.editUserView.edit(e);
|
32
|
+
// expect(this.editUserRenderSpy).toHaveBeenCalledOnce();
|
33
|
+
// jQuery.ajax.restore();
|
34
|
+
// });
|
35
|
+
//
|
36
|
+
// it("should have correct html rendered ",function(){
|
37
|
+
// var title = this.editUserView.el.innerHTML.search('Change Admin Password');
|
38
|
+
// expect(title).toBeGreaterThan(0);
|
39
|
+
//
|
40
|
+
// var password = this.editUserView.el.innerHTML.search('Password');
|
41
|
+
// expect(password).toBeGreaterThan(0);
|
42
|
+
//
|
43
|
+
// })
|
44
|
+
// });
|
@@ -34,11 +34,4 @@ describe("Home", function(){
|
|
34
34
|
expect(this.indexRenderSpy).toHaveBeenCalledOnce();
|
35
35
|
});
|
36
36
|
|
37
|
-
it("should have correct html rendered ",function(){
|
38
|
-
var change_btn = this.homeView.el.innerHTML.search('App partition sources');
|
39
|
-
expect(change_btn).toBeGreaterThan(0);
|
40
|
-
|
41
|
-
var reset = this.homeView.el.innerHTML.search('Sync Server URL');
|
42
|
-
expect(reset).toBeGreaterThan(0);
|
43
|
-
})
|
44
37
|
});
|