Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio
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
Stefane Fermigier
jio
Commits
2d988363
Commit
2d988363
authored
Oct 26, 2016
by
Vincent Bechu
Committed by
Cédric Le Ninivin
Oct 28, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replicatestorage: add signature_storage option
/reviewed-on
nexedi/jio!35
parent
1ecc04a5
Changes
2
Hide 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 @
2d988363
...
...
@@ -53,7 +53,7 @@
this
.
_signature_sub_storage
=
jIO
.
createJIO
({
type
:
"
document
"
,
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
;
...
...
test/jio.storage/replicatestorage.tests.js
View file @
2d988363
...
...
@@ -24,6 +24,11 @@
}
jIO
.
addStorage
(
'
replicatestorage500
'
,
Storage500
);
function
Storage2713
()
{
return
this
;
}
jIO
.
addStorage
(
'
signaturestorage2713
'
,
Storage2713
);
/////////////////////////////////////////////////////////////////
// replicateStorage.constructor
/////////////////////////////////////////////////////////////////
...
...
@@ -79,6 +84,9 @@
remote_sub_storage
:
{
type
:
"
replicatestorage500
"
},
signature_storage
:
{
type
:
"
signaturestorage2713
"
},
query
:
{
query
:
'
portal_type: "Foo"
'
,
limit
:
[
0
,
1234567890
]},
use_remote_post
:
true
,
conflict_handling
:
3
,
...
...
@@ -103,6 +111,8 @@
equal
(
jio
.
__storage
.
_check_remote_deletion
,
false
);
equal
(
jio
.
__storage
.
_check_remote_modification
,
false
);
equal
(
jio
.
__storage
.
_signature_sub_storage
.
__storage
.
_sub_storage
.
__type
,
"
signaturestorage2713
"
);
equal
(
jio
.
__storage
.
_signature_hash
,
"
_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