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

[BUG] MAC address set to uppercase when creating a registering a new #937

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

chahatsagarmain
Copy link

[BUG] MAC address set to uppercase when creating a registering a new

In device registration view, Made changes to the init object and included checked if attribute is mac_address then it should be changed to upper case

Fixes #922

Checklist

  • [* ] I have read the OpenWISP Contributing Guidelines.
  • [* ] I have manually tested the changes proposed in this pull request.
  • I have written new test cases for new code and/or updated existing tests for changes to existing code.
  • I have updated the documentation.

…device openwisp#922

In device registration view, Made changes to the init object and included  checked if attribute is mac_address then it should be changed to upper case

Fixes openwisp#922

Signed-off-by: chahatsagarmain <[email protected]>
Signed-off-by: chahatsagarmain <[email protected]>
Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

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

Thanks @chahatsagarmain, but we need an automated test which replicates the bug (it must fail without the fix) to accept this patch.

openwisp_controller/config/controller/views.py Outdated Show resolved Hide resolved
@chahatsagarmain
Copy link
Author

@nemesifier where can i include the automated test ? can i add a method in /openwisp-controller/tests/test_view.py ?

Signed-off-by: chahatsagarmain <[email protected]>
Copy link
Member

@nemesifier nemesifier left a comment

Choose a reason for hiding this comment

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

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

Successfully merging this pull request may close these issues.

[bug] Mac address is case sensitive
2 participants