Reflect announcement changes from ticket:3119

This commit is contained in:
Jean-Paul Calderone 2019-06-28 14:22:28 -04:00
parent f3218e6f62
commit 6e3cd2d91c

View File

@ -222,9 +222,11 @@ storage.plugins = tahoe-lafs-dummy-v1
server_id = b"v0-abcdef"
ann = {
u"service-name": u"storage",
# notice how the announcement is for a different storage plugin
# than the one that is enabled.
u"name": u"tahoe-lafs-dummy-v2",
u"storage-options": [{
# notice how the announcement is for a different storage plugin
# than the one that is enabled.
u"name": u"tahoe-lafs-dummy-v2",
}],
}
self.publish(server_id, ann)
storage = self.get_storage(server_id, self.node)
@ -238,7 +240,10 @@ storage.plugins = tahoe-lafs-dummy-v1
server_id = b"v0-abcdef"
ann = {
u"service-name": u"storage",
u"name": u"tahoe-lafs-dummy-v1",
u"storage-options": [{
# and this announcement is for a plugin with a matching name
u"name": u"tahoe-lafs-dummy-v1",
}],
}
self.publish(server_id, ann)
storage = self.get_storage(server_id, self.node)