Skip to content

Add tests using mocked API requests #15968

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: AAP-17690
Choose a base branch
from

Conversation

AlanCoding
Copy link
Member

SUMMARY

Still failing. Unclear if it's a test issue or a server issue. I think the setup should be reasonable.

FAILED awx/main/tests/functional/api/test_inventory.py::TestInventoryAllVariables::test_update_then_user_change - AssertionError: assert {'foo': 'foo_source', 'bar': 'bar_source'} == {'foo': 'foo_user'}
  
  Differing items:
  {'foo': 'foo_source'} != {'foo': 'foo_user'}
  Left contains 1 more item:
  {'bar': 'bar_source'}
  
  Full diff:
    {
  +     'bar': 'bar_source',
  -     'foo': 'foo_user',
  ?                  ^ -
  +     'foo': 'foo_source',
  ?                 ++ ^^
    }

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API

Add tests using mocked API requests
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Copy link

codecov bot commented Apr 30, 2025

Codecov Report

Attention: Patch coverage is 28.57143% with 20 lines in your changes missing coverage. Please review.

Project coverage is 40.73%. Comparing base (a186fa6) to head (5c2376a).

✅ All tests successful. No failed tests found.

❌ Your patch check has failed because the patch coverage (28.57%) is below the target coverage (100.00%). You can increase the patch coverage or adjust the target coverage.
❌ Your project check has failed because the head coverage (33.06%) is below the target coverage (95.00%). You can increase the head coverage or adjust the target coverage.

❗ There is a different number of reports uploaded between BASE (a186fa6) and HEAD (5c2376a). Click for more details.

HEAD has 9 uploads less than BASE
Flag BASE (a186fa6) HEAD (5c2376a)
CI-GHA 8 5
pytest 5 2
OS-Linux 8 5
🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant