fix(ug_util): prioritize user-data.users over the default user config#6860
fix(ug_util): prioritize user-data.users over the default user config#6860mostafaCamel wants to merge 3 commits into
Conversation
|
The first commit I pushed is failing as expected as I only added the unit test The expected failure TOTAL 33026 6291 12224 1597 79%
=========================== short test summary info ============================
FAILED tests/unittests/distros/test_user_data_normalize.py::TestUGNormalize::test_users_dict_override_default_attribute - assert True is False
= 1 failed, 5641 passed, 5 skipped, 13 xfailed, 2 xpassed, 84 warnings in 118.45s (0:01:58) =
py3: exit 1 (129.32 seconds) /home/runner/work/cloud-init/cloud-init> .tox/py3/bin/python -m pytest -vv --cov=cloudinit --cov-branch --color=yes pid=2384
py3: FAIL code 1 (135.99=setup[6.67]+cmd[129.32] seconds)
evaluation failed :( (136.04 seconds)
Error: Process completed with exit code 1. |
|
After pushing the code fix, all the unit tests now pass |
holmanb
left a comment
There was a problem hiding this comment.
Please add an integration test.
|
Note to myself about the integration tests (will work on it the weekend):
|
… default user config Signed-off-by: Mostafa Abdelwahab <mostafa.abdelwahab@canonical.com>
Signed-off-by: Mostafa Abdelwahab <mostafa.abdelwahab@canonical.com>
74bc21d to
151d862
Compare
|
Pushed a new commit with the integration tests:
The integration test succeeded locally I ran again the integration test locally qith questing to amtch the CI and the local test still succeeds |
|
I confirmed that the debian package generated in the CI task (link in the comment above) contains my change
So normally this should lead to the code being ingested in the CI tests given that the |
|
Pushed a commit with some additional prints. Confirmed that I am running the debain package |
Proposed Commit Message
Additional Context
Test Steps
Unit tests
tox -e py3 -- tests/unittests/distros/test_user_data_normalize.py::TestUGNormalizeIntegration tests
~/.config/pycloudlib.tomlfile and put[lxd]in this fileCLOUD_INIT_OS_IMAGE='noble' CLOUD_INIT_PLATFORM=lxd_container tox -e integration-tests -- tests/integration_tests/modules/test_users_groups.py tests/integration_tests/modules/test_set_password.pyMerge type