mirror of
https://github.com/ansible/awx.git
synced 2026-01-07 14:02:07 -03:30
* AAP-45927 Add drf-spectacular - Remove drf-yasg - Add drf-spectacular * move SPECTACULAR_SETTINGS from development_defaults.py to defaults.py * move SPECTACULAR_SETTINGS from development_defaults.py to defaults.py * Fix swagger tests: enable schema endpoints in all modes Schema endpoints were restricted to development mode, causing test_swagger_generation.py to fail. Made schema URLs available in all modes and fixed deprecated Django warning filters in pytest.ini. * remove swagger from Makefile * remove swagger from Makefile * change docker-compose-build-swagger to docker-compose-build-schema * remove MODE * remove unused import * Update genschema to use drf-spectacular with awx-link dependency - Add awx-link as dependency for genschema targets to ensure package metadata exists - Remove --validate --fail-on-warn flags (schema needs improvements first) - Add genschema-yaml target for YAML output - Add schema.yaml to .gitignore * Fix detect-schema-change to not fail on schema differences Add '-' prefix to diff command so Make ignores its exit status. diff returns exit code 1 when files differ, which is expected behavior for schema change detection, not an error. * Truncate schema diff summary to stay under GitHub's 1MB limit Limit schema diff output in job summary to first 1000 lines to avoid exceeding GitHub's 1MB step summary size limit. Add message indicating when diff is truncated and direct users to job logs or artifacts for full output. * readd MODE * add drf-spectacular to requirements.in and the requirements.txt generated from the script * Add drf-spectacular BSD license file Required for test_python_licenses test to pass now that drf-spectacular is in requirements.txt. * add licenses * Add comprehensive unit tests for CustomAutoSchema Adds 15 unit tests for awx/api/schema.py to improve SonarCloud test coverage. Tests cover all code paths in CustomAutoSchema including: - get_tags() method with various scenarios (swagger_topic, serializer Meta.model, view.model, exception handling, fallbacks, warnings) - is_deprecated() method with different view configurations - Edge cases and priority ordering All tests passing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * remove unused imports --------- Co-authored-by: Claude <noreply@anthropic.com>
163 lines
2.2 KiB
Plaintext
163 lines
2.2 KiB
Plaintext
# Ignore generated schema
|
|
swagger.json
|
|
schema.json
|
|
schema.yaml
|
|
reference-schema.json
|
|
|
|
# Tags
|
|
.tags
|
|
.tags1
|
|
|
|
# User level pre-commit hooks
|
|
pre-commit-user
|
|
|
|
# Tower
|
|
awx-dev
|
|
awx/settings/local_*.py*
|
|
awx/*.sqlite3
|
|
awx/*.sqlite3_*
|
|
awx/job_status
|
|
awx/projects
|
|
awx/job_output
|
|
awx/public/media
|
|
awx/public/static
|
|
awx/main/fixtures
|
|
awx/*.log
|
|
tower/tower_warnings.log
|
|
celerybeat-schedule
|
|
rsyslog.pid
|
|
tools/docker-compose/ansible/awx_dump.sql
|
|
tools/docker-compose/Dockerfile
|
|
tools/docker-compose/_build
|
|
tools/docker-compose/_sources
|
|
tools/docker-compose/overrides/
|
|
tools/docker-compose-minikube/_sources
|
|
|
|
!tools/docker-compose/editable_dependencies
|
|
tools/docker-compose/editable_dependencies/*
|
|
!tools/docker-compose/editable_dependencies/README.md
|
|
!tools/docker-compose/editable_dependencies/install.sh
|
|
|
|
# Tower setup playbook testing
|
|
setup/test/roles/postgresql
|
|
**/provision_docker
|
|
|
|
# Python & setuptools
|
|
__pycache__
|
|
/build
|
|
/deb-build
|
|
/reprepro
|
|
/rpm-build
|
|
/tar-build
|
|
/setup-bundle-build
|
|
/dist
|
|
/*.egg-info
|
|
*.py[c,o]
|
|
/.eggs
|
|
|
|
# JavaScript
|
|
/Gruntfile.js
|
|
/Brocfile.js
|
|
/bower.json
|
|
/testem.yml
|
|
**/coverage
|
|
/.istanbul.yml
|
|
**/node_modules/**
|
|
/tmp
|
|
**/npm-debug.log*
|
|
|
|
# Testing
|
|
.cache
|
|
.coverage
|
|
.tox
|
|
coverage.xml
|
|
htmlcov
|
|
pep8.txt
|
|
scratch
|
|
testem.log
|
|
awx/awx_test.sqlite3-journal
|
|
.pytest_cache/
|
|
|
|
# Mac OS X
|
|
*.DS_Store
|
|
|
|
# VSCode
|
|
.vscode/
|
|
|
|
# Editors
|
|
*.sw[poj]
|
|
*~
|
|
|
|
# Vagrant
|
|
/Vagrantfile
|
|
tools/vagrant/local.yml
|
|
.vagrant*
|
|
|
|
# Virtualbox
|
|
ansible-tower-*-ova
|
|
ansible-tower-*.box
|
|
|
|
# Setup
|
|
setup.log
|
|
backup.log
|
|
restore.log
|
|
setup/tower_setup_conf.yml
|
|
setup/setup.log
|
|
setup/inventory
|
|
tower-backup-*
|
|
|
|
# Ansible
|
|
**/*.retry
|
|
|
|
# Other
|
|
.tower_cycle
|
|
env/*
|
|
nohup.out
|
|
reports
|
|
*.bak
|
|
*.bak[0-9]
|
|
*.dot
|
|
*.log
|
|
*.log.[0-9]
|
|
*.results
|
|
local/
|
|
*.mo
|
|
requirements/vendor
|
|
.i18n_built
|
|
.idea/*
|
|
*credentials*.y*ml*
|
|
|
|
# AWX python libs populated by requirements.txt
|
|
awx/lib/.deps_built
|
|
awx/lib/site-packages
|
|
venv/*
|
|
use_dev_supervisor.txt
|
|
|
|
|
|
# Ansible module tests
|
|
/awx_collection_test_venv/
|
|
/awx_collection/*.tar.gz
|
|
/sanity/
|
|
/awx_collection_build/
|
|
|
|
.idea/*
|
|
*.unison.tmp
|
|
*.#
|
|
/_build/
|
|
/_build_kube_dev/
|
|
/Dockerfile
|
|
/Dockerfile.dev
|
|
/Dockerfile.kube-dev
|
|
|
|
awx/ui/src
|
|
awx/ui/build
|
|
awx/ui/.ui-built
|
|
awx/ui_next
|
|
|
|
# Docs build stuff
|
|
docs/docsite/build/
|
|
_readthedocs/
|
|
|
|
# Pyenv
|
|
.python-version
|