awx/licenses
Rodrigo Toshiaki Horie 335a4bbbc6
AAP-45927 Add drf-spectacular (#16154)
* 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>
2025-11-10 12:35:22 -03:00
..
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2024-09-04 14:46:22 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2024-02-15 11:58:17 -05:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2024-05-31 13:55:17 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2022-11-04 11:43:41 -04:00
2025-10-15 15:55:21 +00:00

The components listed herein have been integrated into Red Hat, Inc.'s
distribution of Ansible Automation Platform.  Red Hat, Inc.  supports the
platform's use of and interactions with these components for both
development and production purposes, subject to applicable terms and
conditions.  Unless otherwise agreed to in writing, the use of Ansible
Automation Platform is subject to the Red Hat End User License Agreement
located at
https://www.redhat.com/en/about/red-hat-end-user-license-agreements and Red
Hat Enterprise Agreement located at
https://www.redhat.com/en/about/licenses-us.