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

[openwrt] Missing zonename attribute #61

Closed
nemesifier opened this issue Feb 17, 2017 · 8 comments
Closed

[openwrt] Missing zonename attribute #61

nemesifier opened this issue Feb 17, 2017 · 8 comments
Assignees

Comments

@nemesifier
Copy link
Member

The OpenWrt backend does not generate the zonename attribute.

@ritwickdsouza
Copy link
Contributor

ritwickdsouza commented Mar 7, 2017

What is zonename ? Is it different from timezone? Could you give a sample code for generating the bug.

@nemesifier
Copy link
Member Author

nemesifier commented Mar 8, 2017

@ritwickdsouza look in the OpenWRT docs: https://wiki.openwrt.org/doc/uci/system; to replicate the bug write a test in which you assert for the presence of the zonename attribute. The value should be generated from timezone.

@ritwickdsouza
Copy link
Contributor

So whenever timezone attribute is defined. Both timezone and zonename must be rendered. Right ?

@nemesifier
Copy link
Member Author

Yes

@ritwickdsouza
Copy link
Contributor

Could you help point out where exactly the output generated and places where changes needs to be made ? I'm having some trouble understanding the codebase.

@nemesifier
Copy link
Member Author

I suggest you to write a failing test first (Test Driven Development), you have to add it to this file:
https://github.com/openwisp/netjsonconfig/blob/master/tests/openwrt/test_system.py

See the documentation regarding how to run tests.

@nemesifier
Copy link
Member Author

Fixed by #65

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

No branches or pull requests

2 participants