Brian Warner c56a0a4ba9 fix unicode handling in server_id from YAML
YAML, like JSON, is all-unicode. StorageFarmBroker.set_static_servers()
is defined to take an all-unicode dictionary (the "storage:" key from
private/servers.yaml), so the server_id keys it gets will be unicode.
NativeStorageServer is defined to accept server_ids which are bytes (at
least it is now). The tests were only passing bytes into
set_static_servers(), whereas a real launch passed unicode in, causing a
problem when NativeStorageServer tried to base32.a2b() the pubkey and
choked on the unicode it received.

This fixes set_static_servers() to convert the server_id to bytes, and
changes NativeStorageServer to assert that it gets bytes. It also fixes
the test to match real usage more closely.
2016-08-28 02:42:51 -07:00
..
2016-07-19 17:31:41 -07:00
2016-04-12 00:30:50 -07:00
2016-07-21 12:35:59 -07:00
2016-08-11 23:24:11 -07:00
2016-04-12 00:30:50 -07:00
2016-08-27 17:36:55 -07:00
2015-04-28 11:03:12 -07:00
2016-04-12 00:30:50 -07:00
2016-07-21 12:35:59 -07:00
2016-07-21 12:35:59 -07:00
2016-08-28 02:42:47 -07:00
2015-12-28 20:12:29 +00:00