fixing 2 cli activation key tests
Blocked tests with Bz id
Merge pull request #1191 from sghai/block-template-test

Blocked template tests with Bz id
Merge pull request #1189 from alda519/cli_fix_actkey

fixing 2 cli activation key tests
Update LifecycleEnvironment field.

`entities.LifecycleEnvironment` has a `prior` foreignkey that points to
another instance of a `entities.LifecycleEnvironment`, which in turn is
renamed to `prior_id` before any actions can be performed. However, the
`Katello` API expects that this attribute will remain unchanged, so this
PR makes sure that `prior` will remain this named to avoid issues.
Merge pull request #1192 from omaciel/lifecycle-prior

Update LifecycleEnvironment field.
update/delete role tests via api
Merge pull request #1194 from sghai/roles-api2

update/delete role tests via api
Revert changes to smoke test suite.

Just recently I updated the smoke test suite to go from
'Default_Organization' and 'Default_Location' to 'Default Organization'
and 'Default Location' respectively (note the absence of the
underscore). Well, turns out that only upstream `Katello` code applies
to this change but not downstream code. So sadly, this PR reverts these
changes and we will handle the upstream tests differently.
Merge pull request #1196 from omaciel/back-to-zero

Revert changes to smoke test suite.
Add tests targeting BZ 1105773

The test fails, indicating that the bug still needs more work.
Merge pull request #1195 from Ichimonji10/bz-1105773

Add tests targeting BZ 1105773
Do not use the `fields` build() and create() arg

Remove all usages of the `field` argument. For example, this:

    SomeEntity().create(fields={'field': value})

Is now written as this:

    SomeEntity(field=value).create()

The `fields` argument to `build()` and `create()` should not be used, as it is
highly error-prone.
Merge pull request #1198 from Ichimonji10/dont-use-fields

Do not use the `fields` build() and create() arg
Remove arg from Factory.{attributes,build,create}

Remove the `fields` argument from methods `Factory.attributes`, `Factory.build`
and `Factory.create`. These three methods largely duplicated the functionality
provided by entities. This is bad in an of itself, because it meant that the
API-related code was not orthogonal:

    SomeEntity(field=value).create()
    SomeEntity().create(fields={'field': value})

However, the arg is also worth dropping because it makes the user vulnerable to
trivial errors. For example, consider these two statements:

    Organization(not_a_field=value).create()
    Organization().create(fields={'not_a_field': value})

Only one of them will raise an error, though both are clearly wrong.
Merge pull request #1199 from Ichimonji10/remove-fields

Remove arg from Factory.{attributes,build,create}
Fix LifecycleEnvironment.{build,create}

> When a new lifecycle environment is created, it must either:
>
> * Reference some other lifecycle environment via the "prior" field.
> * Have a name of "Library". Note that within a given organization, there
>   can only be a single lifecycle environment with a name of "Library".

Override method `LifecycleEnvironment.build`, thus allowing one to easily create
new lifecycle environments. Incidentally, this also prevents a recursive death
spiral from occurring when `build` or `create` are called.

Update `tests/foreman/api/test_multiple_paths.py` to take advantage of this
change.
Merge pull request #1200 from Ichimonji10/lifecycle-environment

Fix LifecycleEnvironment.{build,create}
Augmenting existing API smoke test suite.
Overide of `entities.Repository` path method.

Overiding the `path` method for `entities.Repository` so that one can
start the synchronization process. The response returned from a `sync`
job is a task `id` which then could be used to check its status.