Skip to content
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

Fix 500 error due to None data in DAB response #15562

Merged
merged 2 commits into from
Oct 2, 2024

Conversation

AlanCoding
Copy link
Member

SUMMARY

We had a report from server errors from the service-index/validate-local-account/ endpoint, but I was really grasping for a reproducer. The mechanic was specific to interaction of DAB views with AWX generic views. Because of this, I really wanted some form of coverage for the scenario.

It took me a little bit but I finally got this test with I feel fairly satisfied with. Yes, it is mostly a lazy copy of the existing test from DAB, but since AWX is configured differently from test_app in defaults, some differences remain.

This test lets me feel a little bit better about how the server error is fixed. And it's a good thing, because otherwise I would have assumed response.data is a dictionary, and it wasn't!

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

Copy link

sonarcloud bot commented Oct 1, 2024

@AlanCoding AlanCoding merged commit 97ececa into ansible:devel Oct 2, 2024
21 of 25 checks passed
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.

3 participants