Matt Clay
a3b7863098
validate-modules - Remove `__future__` limits ( #79800 )
...
* validate-modules - Remove `__future__` limits
Limits on specific `__future__` imports are handled by other sanity tests.
* Add integration test for module/plugin imports.
3 years ago
Matt Clay
eae02bf5b8
Fix link in compile sanity test docs.
3 years ago
Matt Clay
932a32153a
Update docs for the `compile` sanity test. ( #79562 )
3 years ago
Matt Clay
cda16cc5e9
ansible-test - Improve container management. ( #78550 )
...
See changelogs/fragments/ansible-test-container-management.yml for details.
3 years ago
Sandra McCann
a954918b60
consolidate duplicated test files ( #79380 )
3 years ago
Mazen Ramadan
fbd98cd824
Docs: Replace Latin terms in the dev_guide #78997 ( #79005 )
3 years ago
Blaster4385
f7c01bc866
Docs: Provide descriptive labels for http references ( #78959 )
3 years ago
Luigi Giugliano
9afb37eda6
#78965 Adding the code-block to prevent the translation ( #78979 )
...
* Adding the code-block to prevent the translation
3 years ago
Muhammad Rafly Andrianza
0f688f07af
update the out-of-date ansible-test sanity ignores ( #78342 )
3 years ago
Matt Clay
3d5637beec
Initial mypy sanity test support for core.
4 years ago
Sandra McCann
af7c9deb4e
add crosslinks for changelog fragments ( #77022 )
4 years ago
Jordan Borean
7dd22b8b4b
Update Windows host requirements ( #76582 )
4 years ago
Matt Clay
bb63c97c16
ansible-test - Update import test and sanity requirements. ( #76308 )
...
* Add script to freeze sanity requirements.
* Declare sanity test requirements and freeze
* Use pinned requirements for import.plugin test.
* Expand scope of import test for ansible-core.
* Add ignores for galaxy import errors.
* Update test-constraints sanity test.
4 years ago
Samuel Gaist
19fce0527a
docs - Use code-block to format code examples in Developer Guide ( #75849 )
...
Fixes #75663
4 years ago
Matt Clay
4ea8d9a782
ansible-test - split controller/target testing ( #75605 )
4 years ago
Aine Riordan
17122edfc5
Docs: Fix section header notation in Developer Guide ( #75721 )
4 years ago
Erik Zettel
c2fa71c4e8
Fix various typos in documentation ( #75662 )
...
* docs/docsite/rst/dev_guide/developing_modules_general_aci.rst: fix typos
* docs/docsite/rst/dev_guide/testing/sanity/no-get-exception.rst: fix typos
* docs/docsite/rst/dev_guide/testing_units_modules.rst: fix typos
* docs/docsite/rst/network/dev_guide/developing_resource_modules_network.rst: fix typos
* docs/docsite/rst/porting_guides/porting_guide_2.0.rst: fix typos
* docs/docsite/rst/porting_guides/porting_guide_2.10.rst: fix typos
* docs/docsite/rst/porting_guides/porting_guide_2.4.rst: fix typos
* docs/docsite/rst/porting_guides/porting_guide_3.rst: fix typos
* docs/docsite/rst/porting_guides/porting_guide_4.rst: fix typos
* docs/docsite/rst/reference_appendices/glossary.rst: fix typos
* docs/docsite/rst/reference_appendices/release_and_maintenance.rst: fix typos
* docs/docsite/rst/scenario_guides/vmware_rest_scenarios/collect_information.rst: fix typos
* docs/docsite/rst/scenario_guides/vmware_rest_scenarios/vm_tool_information.rst: fix typos
* docs/docsite/rst/scenario_guides/vmware_scenarios/vmware_inventory_vm_attributes.rst: fix typos
* docs/docsite/rst/user_guide/playbooks_debugger.rst: fix typos
* docs/docsite/rst/user_guide/playbooks_filters.rst: fix typos
* docs/docsite/rst/user_guide/windows_performance.rst: fix typos
* docs/docsite/rst/scenario_guides/vmware_scenarios/vmware_inventory_vm_attributes.rst: fix typos
4 years ago
Matt Clay
99a79e1969
ansible-test - Move code from _data to _util. ( #75495 )
...
* Update paths to match relocated files.
* Update ansible-test symlink paths.
* Update path classification.
* Update MANIFEST.in
* Update sanity test context paths.
* Update sanity ignores.
* Update shebang sanity test.
* Update configure-remoting-ps1 sanity test.
* Update BOTMETA.yml to reflect new paths.
* Update paths in collection loader comments.
* Update Makefile for ansible-test.
* Update docs.
* Add changelog fragment.
4 years ago
Alicia Cozine
3c3e30a610
Docs: Add Matrix as a chat option ( #75406 )
4 years ago
Mark Mercado
1906d75907
Adding DigitalOcean cloud support to ansible-test ( #74222 )
5 years ago
schurzi
5e5bfa8116
remove deprecated ansible.module_utils._text from documentation ( #73211 )
...
According to comment in ansible.module_utils._text it is deprecated and
should not be used. This is now reflected in the documentation.
5 years ago
Alicia Cozine
b57444af14
Rebased pr73824 ( #73934 )
...
Co-authored-by: Eugene <k.evgen61@gmail.com>
Co-authored-by: Alicia Cozine <acozine@users.noreply.github.com>
5 years ago
Felix Fontein
3cc693b92c
Import test: improve docs, add more tests ( #73600 )
5 years ago
Felix Fontein
1f3a90270b
Import sanity test for plugins ( #72497 )
5 years ago
John R Barker
37785255f2
validate ansible-base's and collections runtime.yml ( #69742 )
...
* Validate ansible-base & collection's runtime.yml
Add new test `runtime-metadata`
* Schema validation of file
* Error if a a legacy meta/routing.yml exist in a collection
* removal_date OR removal_version
* Add tombstone validation.
* Allow both ISO 8601 date strings and datetime.date objects (from YAML dates).
* Address review comments.
* Add metadata to test collection.
* Add requirements file.
Co-authored-by: Felix Fontein <felix@fontein.de>
Co-authored-by: Matt Clay <matt@mystile.com>
6 years ago
Felix Fontein
a114da80ee
Use antsibull-changelog instead of packaged changelog generator ( #69313 )
...
Replace the ansible-base changelog linting and generation tool with antsibull-changelog and make it available for linting collections. Previously changelog linting was limited to ansible-base.
6 years ago
Matt Davis
ed9de94ad9
remove azure extras and extras_require support ( #67822 )
...
* remove azure extras and extras_require support
* Since Azure will be collectionized, the requirements will float more frequently than Ansible releases; the Azure collection needs to host the requirements now.
* Removed the dynamic extras support as well, since Azure was the only thing using it. If we need it again, it's easy to pull back from history.
* Mark azure-requirements as orhpaned.
This keeps the docs around so that existing links from old test runs remain valid.
Co-authored-by: Matt Clay <matt@mystile.com>
6 years ago
Andrew Klychkov
907c98ebcd
/docs/docsite/rst/dev_guide: fix typos ( #67643 )
6 years ago
Marko Kohtala
c423b1f213
dev_guide: Correct path to ansible-test requirements files ( #66626 )
...
The requirements path was old due to file relocation in
commit d651bda123 .
6 years ago
Evgeni Golov
740ec90688
sanity ignores for a collection need to go to tests/sanity/ ( #62182 )
...
collections use tests/ not test/ as the folder for tests
6 years ago
Toshio Kuratomi
f58899eef7
Update release name for 2.10
...
Add a list of previously used release names to make it easy to tell what
release names are no longer usable.
Add a test that new release names have been added to the used list.
Fixes #61616
6 years ago
Matt Clay
5a50fb35df
Add sanity test for obsolete files.
...
This will help prevent accidental merging of content to recently obsoleted directories when adding new files.
It may also help contributors who have modified obsolete files understand where their changes should now be made.
6 years ago
Matt Clay
df59f06d6a
Additional ansible-test path fixes. ( #60300 )
...
* Add missing ansible-test injector symlink.
* More ansible-test path fixes.
* Expand bin-symlinks docs.
6 years ago
Matt Clay
39b3fc0926
Update ansible-test layout and payload handling.
6 years ago
Matt Clay
18867847f4
Split up "code smell" sanity tests. ( #60174 )
...
* Relocate ansible-only sanity tests.
* Get "code smell" sanity tests from multiple dirs.
- `test/lib/ansible_test/_data/sanity/code-smell/` - General purpose tests used for both Ansible and Ansible Collections.
- `test/sanity/code-smell/` - Tests specific to Ansible, will not be used for Ansible Collections.
6 years ago
Matt Clay
d651bda123
Relocate ansible-test code. ( #60147 )
...
* Initial move of `test/runner/` content.
`test/runner/lib/` -> `test/lib/ansible_test/_internal/`
`test/runner/` -> `test/lib/ansible_test/_internal/data/`
* Initial move of `test/sanity/` content.
`test/sanity/` -> `test/lib/ansible_test/_internal/data/sanity/` (except `test/sanity/ignore.txt`)
* Initial move of `test/units/pytest/` content.
`test/units/pytest/` -> `test/lib/ansible_test/_internal/data/pytest/`
* Follow-up move of `test/runner/unit/` content.
`test/lib/ansible_test/_internal/data/unit/` -> `test/lib/ansible_test/tests/unit/`
* Initial move of `ansible.cfg` content.
`test/units/ansible.cfg` -> `test/lib/ansible_test/_internal/data/units/ansible.cfg`
`test/env/ansible.cfg` -> `test/lib/ansible_test/_internal/data/env/ansible.cfg`
* Follow-up move of `data` directory.
`test/lib/ansible_test/_internal/data/` -> `test/lib/ansible_test/_data/`
* Update import statements.
* Add missing __init__.py for unit tests.
* Fix path references and miscellaneous issues.
6 years ago
Matt Clay
71e607dceb
Update docs references for ansible-test. ( #60109 )
...
* Remove outdated info from azure-requirements docs.
* Correct validate-modules usage.
6 years ago
Matt Clay
b4494fa547
Remove redundant "Sanity Tests »" from page title.
...
The docs now have multi-level breadcrumbs so including "Sanity Tests »" in the title on a sanity test page is redundant.
6 years ago
Matt Clay
5ed469f6b7
Fix sanity docs page titles.
...
The titles are used to generate the index of sanity tests, so they should match the name of the test.
6 years ago
Matt Clay
db7e9aa051
Use consolidated ignore.txt in ansible-test. ( #59618 )
6 years ago
Matt Martz
95f4282c42
Verify package data in setup.py installs all files ( #59537 )
...
* Add sanity test to ensure all non-py files are installed
* Fix mode and regex
* Fix role skel inventory package_data
* Add docs
* Update package_data for inventory files
* Address pylint concerns
* Another tweak to package_data
* Address review feedback
* Change index to 1
* add to ansible-only.txt
6 years ago
Toshio Kuratomi
146a7f8ff6
Split the metaclass == type and from future boilerplate code.
...
The metaclass boilerplate is safe to apply en masse. The future import
boilerplate needs code to be inspected to be sure that there aren't any
py2isms that need to be fixed. Split these two checks so that we can
fix them independently
Be explicit about which files are grandfathered so we can fix them up one by one
7 years ago
Alicia Cozine
3fc0694ffc
removes last :doc: links in the dev guide ( #58417 )
7 years ago
Matt Clay
f9b56a5b56
Add sanity test to check for unwanted files.
7 years ago
Matt Martz
9f83139dcb
Don't register tests as filters ( #55332 )
...
* Don't register tests as filters. Fixes #55319
* Remove tests for deprecated functionality
* Remove no-tests-as-filters sanity tests
* Remove docs too
* Revert "Remove docs too"
This reverts commit 7daf457a74 .
* Make no-tests-as-filters doc an orphan
7 years ago
Matt Clay
39bbadb2fd
Replace no-underscore-variable test with pylint. ( #54140 )
...
* Replace no-underscore-variable test with pylint.
* Update orphan handling for sanity test docs.
* Update command for listing tests.
7 years ago
Jordan Borean
7360db5956
doc - skip/windows for integration tests ( #53010 )
7 years ago
Toshio Kuratomi
dfd8b659c0
Have update-bundled check for updates to all bundled code
...
Add a test for whether we have bundled code inside of ansible that needs to be updated
7 years ago
Matt Clay
560e922440
Add more ansible-test aliases to test docs. ( #50921 )
7 years ago
Matt Martz
9773a1f289
Add a Singleton metaclass, use it with Display ( #48935 )
...
* Add a Singleton class, use it with Display
* update six import
* Move remaining failes to display singleton
* Fix rebase issues
* Singleton improvements
* Add code-smell for 'from __main__ import display'. ci_complete
* s/self/cls/g
* Add docs for no-main-display
* Address linting issues
* Add changelog fragment. ci_complete
* Implement reentrant lock for class instantiation in Singleton
* Add Display singleton porting guide
7 years ago