Deprecate tests used as filters (#32361)

* Warn on tests used as filters

* Update docs, add aliases for tests that fit more gramatically with test syntax

* Fix rst formatting

* Add successful filter, alias of success

* Remove renamed_deprecation, it was overkill

* Make directory alias for is_dir

* Update tests to use proper jinja test syntax

* Update additional documentation, living outside of YAML files, to reflect proper jinja test syntax

* Add conversion script, porting guide updates, and changelog updates

* Update newly added uses of tests as filters

* No underscore variable

* Convert recent tests as filter changes to win_stat

* Fix some changes related to rebasing a few integration tests

* Make tests_as_filters_warning explicitly accept the name of the test, instead of inferring the name

* Add test for tests_as_filters_warning

* Update tests as filters in newly added/modified tests

* Address recent changes to several integration tests

* Address recent changes in cs_vpc
This commit is contained in:
Matt Martz 2017-11-27 16:58:08 -06:00 committed by ansibot
commit 4fe08441be
349 changed files with 4086 additions and 3844 deletions

View file

@ -59,44 +59,44 @@
# Check if platform is fretta
- set_fact: fretta={% for row in nxos_inventory_output.stdout_lines[0]['TABLE_inv']['ROW_inv'] if 'FM-R' in row['productid'] %}"true"{% endfor %}
when: platform | match("N9K")
when: platform is match("N9K")
# Set platform to N9K-F for fretta
- set_fact: platform="N9K-F"
when: (platform | match("N9K")) and (fretta | search("true"))
when: ( platform is match("N9K")) and ( fretta is search("true"))
# Check if platform is titanium
- set_fact: titanium="false"
- set_fact: titanium={% for row in nxos_inventory_output.stdout_lines[0]['TABLE_inv']['ROW_inv'] if 'NX-OSv' in row['desc']%}"true"{% endfor %}
when: platform | match("N7K")
when: platform is match("N7K")
# Set platform to N35 for N3k-35xx
- set_fact: platform="N35"
when: (chassis_type | search("C35"))
when: ( chassis_type is search("C35"))
# Set platform to N35NG for N3k-35xx running image version
# 7.0(3)I7 or later. NG(Next Gen)
- set_fact: platform="N35NG"
when: (chassis_type | search("C35")) and image_version | search("7.0\(3\)I7")
when: ( chassis_type is search("C35")) and image_version is search("7.0\(3\)I7")
# Create matrix of simple keys based on platform
# and image version for use within test playbooks.
- set_fact: imagetag=""
- set_fact: imagetag="I2"
when: image_version | search("7.0\(3\)I2")
when: image_version is search("7.0\(3\)I2")
- set_fact: imagetag="I3"
when: image_version | search("7.0\(3\)I3")
when: image_version is search("7.0\(3\)I3")
- set_fact: imagetag="I4"
when: image_version | search("7.0\(3\)I4")
when: image_version is search("7.0\(3\)I4")
- set_fact: imagetag="I5"
when: image_version | search("7.0\(3\)I5")
when: image_version is search("7.0\(3\)I5")
- set_fact: imagetag="I6"
when: image_version | search("7.0\(3\)I6")
when: image_version is search("7.0\(3\)I6")
- set_fact: imagetag="I7"
when: image_version | search("7.0\(3\)I7")
when: image_version is search("7.0\(3\)I7")
- set_fact: imagetag="F1"
when: image_version | search("7.0\(3\)F1")
when: image_version is search("7.0\(3\)F1")
- set_fact: imagetag="F2"
when: image_version | search("7.0\(3\)F2")
when: image_version is search("7.0\(3\)F2")
- set_fact: imagetag="F3"
when: image_version | search("7.0\(3\)F3")
when: image_version is search("7.0\(3\)F3")