CongressClient expects all datasource driver has dict object in
config field. It raises an error when a datasource doesn't have
any config.
This patch allows config fields to be None object.
Change-Id: I73354f1073f3f814854652eaeaa4b3bbe4bfcf7d
This commit displays driver field while listing datasources and
hides the type field as it is None always
Change-Id: I9b8550f3fb97fecee14f74a6447d908550cfdfc4
This commit is to update the help messages to support datasource
related data can be queried using both datasource name or ID
Change-Id: I93eb5063f02cf114715ba876b081f32818872187
Closes-Bug:#1552212
This commit reuses the code from oslo libraries for better
maintainability of code.
Change-Id: I75594b47f62f284b0027d6035cd2338838000a36
Closes-Bug:#1497180
depending on any oslo-incubator code from another project is
dangerous. keystoneclient makes its exceptions public and it's
not recommended to use any code from
keystoneclient.openstack.common.apiclient since it's maintained
by oslo-incubator.
Change-Id: Ief63705f8ff1325bdd91491b47221d00cd767181
Replace assertEqual(None, *) with assertIsNone in tests to have
more clear messages in case of failure.
Change-Id: I429c8ab3eb4e79a7556ea6f966dd7aa32ee9b86d
Closes-bug: #1280522
This patch removes `MANIFEST.in` file as pbr generates a sensible
manifest from git files and some standard files and it removes
the need for an explicit `MANIFEST.in` file.
Change-Id: If35986a72aff015b25c9f4eccc0ab3a3e6997551
As of mitaka, the infra team and oslo team are dropping py26 and
py33 support. Since we rely on oslo for a lot of our work, and
depend on infra for our CI, we should drop py26 and py33 support
too.
Change-Id: I470d626f7641323a7ce9faf00ea2923312e596af
Closes-Bug: #1519510
Closes-Bug: #1526170
Delete python bytecode before every test run.
Because python creates pyc files during tox runs, certain
changes in the tree, like deletes of files, or switching
branches, can create spurious errors.
Change-Id: I21ef6bf79fe5af41d3714e1d990898b267ae1fab
Closes-Bug: #1368661
When we create policy with long abbreviation that more than
5 chars, like: "test_abbr", API exception is raised from
Congress server side. Add some help infomation to remind users
inputing "abbreviation" arguments with right format.
Change-Id: I48cab945286aacc12c1474c5074f6febb941e723
Related-Bug: #1497881
When we execute command 'congress datasource list', the output content
of 'config' column is string with unicode prefix, that make users
confusion, we should output the string format rather than unicode.
Change-Id: I26f46fb8eef3a89908ec388e2046218480ab560d
Closes-Bug: #1508320
This commit updates tox.ini to support py27 and py34 versions
which are gate tested and also fixes the issue of
'db type could not determined' thrown while running tox.
Change-Id: I77cb87c6f7ba6eaa609e40e83eb9bdab3b8b0283
As congress supports executing actions, we need a way to query
available actions that a datasource driver can execute.
Change-Id: I09469815ba8a071112acc7190175048d7f8b774c
Implements-blueprint: add-action-listing
Replace DEFAULT_COMPUTE_API_VERSION with
DEFAULT_POLICY_API_VERSION, and using format
string to replace string link.
Change-Id: I469007d1ce1946f045c449dce8ceea3225c0b890
The Congress API should be able to list
current supported API versions. This patch
implement the feature in congress client side.
Change-Id: I9d089411640161ea5220a32f078f8c4eb87be1b7
Implements: blueprint api-version
From the Python documentation, we have:
Because this function is meant for use by the Python interpreter and
not for general use it is better to use importlib.import_module() to
programmatically import a module.
This change implements exactly what the Python documentation, and
recognized best practices, recommend.
Also, move import_class utility function before its used in
get_client_class. Even though there are no behaviour differences
because of the order of definition of functions within the same Python
module, it helps users when reading the code.
Change-Id: I85e769e3ac108575a97351780bf0f5b3ef59cfb2
Signed-off-by: Cleber Rosa <cleber.gnu@gmail.com>