Commit 8abcfa83 authored by Romain Courteaud's avatar Romain Courteaud

ReplicateStorage: fix attachment tests

allAttachments was supposed to return no result in some tests.
parent 13d437bc
...@@ -21,10 +21,10 @@ ...@@ -21,10 +21,10 @@
this._sub_storage = jIO.createJIO(spec.sub_storage); this._sub_storage = jIO.createJIO(spec.sub_storage);
return this; return this;
} }
jIO.addStorage('signaturestorageallattachments', StorageEmptyAllAttachments); jIO.addStorage('signaturestorageemptyallattachments',
StorageEmptyAllAttachments);
StorageEmptyAllAttachments.prototype.allAttachments = function () { StorageEmptyAllAttachments.prototype.allAttachments = function () {
return this._sub_storage.allAttachments.apply(this._sub_storage, return {};
arguments);
}; };
StorageEmptyAllAttachments.prototype.getAttachment = function () { StorageEmptyAllAttachments.prototype.getAttachment = function () {
return this._sub_storage.getAttachment.apply(this._sub_storage, return this._sub_storage.getAttachment.apply(this._sub_storage,
...@@ -652,7 +652,7 @@ ...@@ -652,7 +652,7 @@
local_sub_storage: { local_sub_storage: {
type: "uuid", type: "uuid",
sub_storage: { sub_storage: {
type: "signaturestorageallattachments", type: "signaturestorageemptyallattachments",
sub_storage: { sub_storage: {
type: "memory" type: "memory"
} }
...@@ -663,6 +663,15 @@ ...@@ -663,6 +663,15 @@
sub_storage: { sub_storage: {
type: "memory" type: "memory"
} }
},
signature_sub_storage: {
type: "uuid",
sub_storage: {
type: "query",
sub_storage: {
type: "memory"
}
}
} }
}); });
...@@ -738,7 +747,7 @@ ...@@ -738,7 +747,7 @@
remote_sub_storage: { remote_sub_storage: {
type: "uuid", type: "uuid",
sub_storage: { sub_storage: {
type: "signaturestorageallattachments", type: "signaturestorageemptyallattachments",
sub_storage: { sub_storage: {
type: "memory" type: "memory"
} }
...@@ -888,7 +897,7 @@ ...@@ -888,7 +897,7 @@
local_sub_storage: { local_sub_storage: {
type: "uuid", type: "uuid",
sub_storage: { sub_storage: {
type: "signaturestorageallattachments", type: "signaturestorageemptyallattachments",
sub_storage: { sub_storage: {
type: "memory" type: "memory"
} }
...@@ -899,6 +908,15 @@ ...@@ -899,6 +908,15 @@
sub_storage: { sub_storage: {
type: "memory" type: "memory"
} }
},
signature_sub_storage: {
type: "uuid",
sub_storage: {
type: "query",
sub_storage: {
type: "memory"
}
}
} }
}); });
...@@ -974,7 +992,7 @@ ...@@ -974,7 +992,7 @@
remote_sub_storage: { remote_sub_storage: {
type: "uuid", type: "uuid",
sub_storage: { sub_storage: {
type: "signaturestorageallattachments", type: "signaturestorageemptyallattachments",
sub_storage: { sub_storage: {
type: "memory" type: "memory"
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment