-
Committer:
Tarmac
-
Author(s):
Dimiter Naydenov
-
Date:
2013-02-08 17:35:15 UTC
-
mfrom:
(69.1.5 nova-filter-refactoring)
-
Revision ID:
tarmac-20130208173515-1olxekdz64n5fw1v
[r=dimitern] nova: Refactor filters
Now nova client and test double use separate filter types for better
isolation and simple code: nova.Filter (by the client), having only
Set() as it's write-only; and novaservice.filter (by the double), being
a thin wrapper over map[string]string.
As discussed, this relays the intent better and makes code cleaner.
Also removed a now redundant test to compare Add() and Set() on nova.Filter
and updated all tests as needed.