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

add migration for django 4, fix serializer validation #258

Merged
merged 6 commits into from
Aug 7, 2024

Conversation

gsnider2195
Copy link
Contributor

No description provided.

@gsnider2195 gsnider2195 changed the title fix migrations for django 4, fix serializer add migration for django 4, fix serializer Aug 6, 2024
@gsnider2195 gsnider2195 self-assigned this Aug 6, 2024
@gsnider2195 gsnider2195 added the emergent Unplanned work that is brought into a sprint after it's started. label Aug 6, 2024
nautobot_firewall_models/tests/test_api.py Outdated Show resolved Hide resolved
with disable_warnings("django.request"):
data = {"start_address": "1.0.0.1", "end_address": "1.0.0.8", "vrf": vrfs[1].pk}
response = self.client.post(url, data, format="json", **self.header)
self.assertHttpStatus(response, status.HTTP_201_CREATED)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.assertHttpStatus(response, status.HTTP_201_CREATED)
self.assertHttpStatus(response, rf_status.HTTP_201_CREATED)

with disable_warnings("django.request"):
data = {"start_address": "1.0.0.1", "end_address": "1.0.0.8", "vrf": vrfs[0].pk}
response = self.client.post(url, data, format="json", **self.header)
self.assertHttpStatus(response, status.HTTP_400_BAD_REQUEST)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.assertHttpStatus(response, status.HTTP_400_BAD_REQUEST)
self.assertHttpStatus(response, rf_status.HTTP_400_BAD_REQUEST)

nautobot_firewall_models/tests/test_api.py Outdated Show resolved Hide resolved
nautobot_firewall_models/tests/test_api.py Outdated Show resolved Hide resolved
@gsnider2195 gsnider2195 changed the title add migration for django 4, fix serializer add migration for django 4, fix serializer validation Aug 7, 2024
@gsnider2195 gsnider2195 merged commit d7bd624 into develop Aug 7, 2024
15 checks passed
@gsnider2195 gsnider2195 deleted the u/gas-django4-migration-and-serializer-fix branch August 7, 2024 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emergent Unplanned work that is brought into a sprint after it's started.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants