Move JSON filter unit tests into own file

Separates JSON filter unit tests from test_host_filters.py and refactors
the test methods to remove some cruft.

Change-Id: I31b9b409f4bbc17074067f42ea9da1418d963086
Separate filter unit tests for agg extra specs

This patch separates the unit tests for the aggregate instance extra
specs filters out from test_host_filters.py. In the process, it converts
the unit tests to NoDBTestCase and mocks out any database calls.

Change-Id: I7b9f186052825667b585674491d0ddf6b566f8de
Moves trusted filter unit tests into own file

Breaks out trusted filter unit tests into their own file. In the
process, we remove all DB accesses from the unit tests and uncruft the
unit tests with mock.

Change-Id: Ic895b06a9f6a224f153f12ca5ab54dc8be931f13
Reduce the complexity of _get_guest_config()

Running flake8 to check for cyclomatic complexity showed that the
libvirt driver's _get_guest_config() method was the worst offender,
with a complexity of 67. This commit simply refactors this method,
splitting off nested cases into their own methods, and reduces the
complextity to 40. No functional changes are included.

Change-Id: Ic27e091f922118edb48b233fb31c702d9528bb75
Port floating_ip_dns extention to v2.1

This patch ports floating_ip_dns extention from v2 to v2.1,
and have v2 unit test cases shared between v2.1 and v2.
Partially implements blueprint v2-on-v3-api

Change-Id: Ia1316697c141fde2b431ba79aebae5986687a4fa
Remove `domain` from floating-ip-dns-create-or-update-req body

`domain` is passed in the url req id, so it is unuseful in the
request body, remove it and v3 api-samples.

Change-Id: If8bdfb7fc928daaf01c9612c97c6b391d3139505
typo in the policy.json "rule_admin_api"

policy.json has "rule_admin_api" string instead of
the "rule:admin_api" which causes ValueError.

The typo recently introduced by
 4bb34182fe28c89686c8a23ddcfc8e9128d289b5.

Change-Id: I232adfca033e9365927cf2abd62d391337fae429
Closes-Bug: #1385225
Merge "Move JSON filter unit tests into own file"
Merge "Separate filter unit tests for agg extra specs"
Merge "Reduce the complexity of _get_guest_config()"
Merge "Moves trusted filter unit tests into own file"
Merge "typo in the policy.json "rule_admin_api""
Merge "Port floating_ip_dns extention to v2.1"
Merge "Remove `domain` from floating-ip-dns-create-or-update-req body"