mirror of
https://github.com/ansible/awx.git
synced 2026-05-13 20:37:39 -02:30
Update smart inventory acceptance
This commit is contained in:
@@ -99,14 +99,18 @@ hosts with a name containing "nyc".
|
|||||||
|
|
||||||
### Acceptance Critera
|
### Acceptance Critera
|
||||||
When verifying acceptance we should ensure the following statements are true:
|
When verifying acceptance we should ensure the following statements are true:
|
||||||
|
``
|
||||||
|
|
||||||
* `Inventory` has a new field named `kind` that defaults to empty and
|
* `Inventory` has a new field named `kind` that defaults to empty and
|
||||||
can only be set to `smart`.
|
can only be set to `smart`.
|
||||||
* `Inventory` has a new field named `host_filter` to empty and can only be
|
* `Inventory` has a new field named `host_filter` to empty and can only be
|
||||||
set to a valid _SmartFilter_ string.
|
set to a valid _SmartFilter_ string.
|
||||||
* `Inventory` with a `host_filter` set and a `kind` of `smart` will have
|
* `Inventory` with a `host_filter` set and a `kind` of `smart`:
|
||||||
a `hosts` list reflecting the results of searching `/api/v2/hosts` with the same
|
* `hosts` list reflecting the results of searching `/api/v2/hosts` with the same
|
||||||
search that is set in the `host_filter`.
|
search that is set in the `host_filter`.
|
||||||
|
* Not allow creation of Hosts
|
||||||
|
* Not allow creation of Groups
|
||||||
|
* Not allow creation of Inventory Sources
|
||||||
|
|
||||||
### API Concerns
|
### API Concerns
|
||||||
There are no breaking or backwards incompatible changes for this feature.
|
There are no breaking or backwards incompatible changes for this feature.
|
||||||
|
|||||||
Reference in New Issue
Block a user