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 @@
this._sub_storage = jIO.createJIO(spec.sub_storage);
return this;
}
jIO.addStorage('signaturestorageallattachments', StorageEmptyAllAttachments);
jIO.addStorage('signaturestorageemptyallattachments',
StorageEmptyAllAttachments);
StorageEmptyAllAttachments.prototype.allAttachments = function () {
return this._sub_storage.allAttachments.apply(this._sub_storage,
arguments);
return {};
};
StorageEmptyAllAttachments.prototype.getAttachment = function () {
return this._sub_storage.getAttachment.apply(this._sub_storage,
......@@ -652,7 +652,7 @@
local_sub_storage: {
type: "uuid",
sub_storage: {
type: "signaturestorageallattachments",
type: "signaturestorageemptyallattachments",
sub_storage: {
type: "memory"
}
......@@ -663,6 +663,15 @@
sub_storage: {
type: "memory"
}
},
signature_sub_storage: {
type: "uuid",
sub_storage: {
type: "query",
sub_storage: {
type: "memory"
}
}
}
});
......@@ -738,7 +747,7 @@
remote_sub_storage: {
type: "uuid",
sub_storage: {
type: "signaturestorageallattachments",
type: "signaturestorageemptyallattachments",
sub_storage: {
type: "memory"
}
......@@ -888,7 +897,7 @@
local_sub_storage: {
type: "uuid",
sub_storage: {
type: "signaturestorageallattachments",
type: "signaturestorageemptyallattachments",
sub_storage: {
type: "memory"
}
......@@ -899,6 +908,15 @@
sub_storage: {
type: "memory"
}
},
signature_sub_storage: {
type: "uuid",
sub_storage: {
type: "query",
sub_storage: {
type: "memory"
}
}
}
});
......@@ -974,7 +992,7 @@
remote_sub_storage: {
type: "uuid",
sub_storage: {
type: "signaturestorageallattachments",
type: "signaturestorageemptyallattachments",
sub_storage: {
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