Mocked DEFAULT_PACKAGE_LISTS should be updated
Up to date mock should be here
It differs from what is generated in real-world conditions.
No child items are currently assigned. Use child items to break down this issue into smaller parts.
- foris-controller #118Turris OS 5.1
When this merge request is accepted, this issue will be closed automatically.
Activity
- Filip Hron added Bug label
added Bug label
- Filip Hron mentioned in issue foris-controller-data_collect-module#4 (moved)
mentioned in issue foris-controller-data_collect-module#4 (moved)
- Filip Hron marked this issue as related to foris-controller#118 (closed)
marked this issue as related to foris-controller#118 (closed)
- Filip Hron mentioned in merge request !7 (merged)
mentioned in merge request !7 (merged)
- Author Maintainer
I made merge request, however i would like to try to patch on master if it does not breake anything.. Will reach you on messenger.
- Martin Matějek changed milestone to %foris-controller-sentinel-module: sentinel state indication
changed milestone to %foris-controller-sentinel-module: sentinel state indication
- Martin Matějek added Review label
added Review label
- Martin Matějek assigned to @fhron
assigned to @fhron
- Martin Matějek added Doing label and removed Review label
- Martin Matějek added Review label and removed Doing label
- Author Maintainer
When applied, two tests in
foris-controller/tests/blackbox/test_updater.py
keep failing.def test_update_package_lists_override_defaults(): # <- imagine fixturese here settings = { "package_lists": [ {"name": "datacollect", "options": [{"name": "minipot", "enabled": False}]}, {"name": "datacollect", "options": [{"name": "survey", "enabled": True}]}, ] } defaults = {"datacollect": {"dynfw"}} # ... def test_update_settings_disable_updater_keep_settings(): # <- imagine fixturese here # and so on
There are two options why this is like that
- data generated by me are not correct and test utility to mock the updater cannot handle that
- mocking utility is not correct
I am not able to find the reason.
Steps to reproduce
- checkout fresh master
foris_controller
and updatesetup.py
tests_require
withforis-controller-testtools
branchfix-mock-updater-data
"foris-controller-testtools @ git+https://gitlab.nic.cz/turris/foris-controller/foris-controller-testtools.git@fix-mock-updater-data#egg=foris-controller-testtools",
Run tests
python setup.py pytest --addopts="--backend openwrt --backend mock tests/blackbox/test_updater.py --pdb -x"
Another observation:
- when tests are executed individually another errors occure
- Author Maintainer
Disregard the above, i think i might understood what that test has to test, so i updated the data and it passes now.
- Please register or sign in to reply
- Filip Hron assigned to @mmatejek and unassigned @fhron
- Filip Hron assigned to @fhron and unassigned @mmatejek
- Štěpán Henek closed via merge request !7 (merged)
closed via merge request !7 (merged)
- Filip Hron mentioned in issue foris-controller-sentinel-module#12 (closed)
mentioned in issue foris-controller-sentinel-module#12 (closed)