Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio-main
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hardik Juneja
jio-main
Commits
94b0bcb1
Commit
94b0bcb1
authored
Oct 26, 2016
by
Vincent Bechu
Committed by
Hardik Juneja
Nov 30, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replicatestorage: add signature_storage option
/reviewed-on
nexedi/jio!35
parent
514ca23a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
src/jio.storage/replicatestorage.js
src/jio.storage/replicatestorage.js
+1
-1
test/jio.storage/replicatestorage.tests.js
test/jio.storage/replicatestorage.tests.js
+10
-0
No files found.
src/jio.storage/replicatestorage.js
View file @
94b0bcb1
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
this
.
_signature_sub_storage
=
jIO
.
createJIO
({
this
.
_signature_sub_storage
=
jIO
.
createJIO
({
type
:
"
document
"
,
type
:
"
document
"
,
document_id
:
this
.
_signature_hash
,
document_id
:
this
.
_signature_hash
,
sub_storage
:
spec
.
local_sub_storage
sub_storage
:
spec
.
signature_storage
||
spec
.
local_sub_storage
});
});
this
.
_use_remote_post
=
spec
.
use_remote_post
||
false
;
this
.
_use_remote_post
=
spec
.
use_remote_post
||
false
;
...
...
test/jio.storage/replicatestorage.tests.js
View file @
94b0bcb1
...
@@ -24,6 +24,11 @@
...
@@ -24,6 +24,11 @@
}
}
jIO
.
addStorage
(
'
replicatestorage500
'
,
Storage500
);
jIO
.
addStorage
(
'
replicatestorage500
'
,
Storage500
);
function
Storage2713
()
{
return
this
;
}
jIO
.
addStorage
(
'
signaturestorage2713
'
,
Storage2713
);
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
// replicateStorage.constructor
// replicateStorage.constructor
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
...
@@ -79,6 +84,9 @@
...
@@ -79,6 +84,9 @@
remote_sub_storage
:
{
remote_sub_storage
:
{
type
:
"
replicatestorage500
"
type
:
"
replicatestorage500
"
},
},
signature_storage
:
{
type
:
"
signaturestorage2713
"
},
query
:
{
query
:
'
portal_type: "Foo"
'
,
limit
:
[
0
,
1234567890
]},
query
:
{
query
:
'
portal_type: "Foo"
'
,
limit
:
[
0
,
1234567890
]},
use_remote_post
:
true
,
use_remote_post
:
true
,
conflict_handling
:
3
,
conflict_handling
:
3
,
...
@@ -103,6 +111,8 @@
...
@@ -103,6 +111,8 @@
equal
(
jio
.
__storage
.
_check_remote_deletion
,
false
);
equal
(
jio
.
__storage
.
_check_remote_deletion
,
false
);
equal
(
jio
.
__storage
.
_check_remote_modification
,
false
);
equal
(
jio
.
__storage
.
_check_remote_modification
,
false
);
equal
(
jio
.
__storage
.
_signature_sub_storage
.
__storage
.
_sub_storage
.
__type
,
"
signaturestorage2713
"
);
equal
(
jio
.
__storage
.
_signature_hash
,
equal
(
jio
.
__storage
.
_signature_hash
,
"
_replicate_11881e431308c0ec8c0e6430be98db380e1b92f8
"
);
"
_replicate_11881e431308c0ec8c0e6430be98db380e1b92f8
"
);
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment