This test has been added to detect a typo in user properties,
like in D2115 "ssh-keys" instead of "ssh_keys".
Details
Details
Tested with D2215 bogus and fixed versions.
Diff Detail
Diff Detail
- Repository
- rOPS Nasqueron Operations
- Lint
Lint Errors Severity Location Code Message Error _tests/pillar/core/test_users.py:29 E501 flake8 E501 Error _tests/pillar/core/test_users.py:32 E501 flake8 E501 Error _tests/pillar/core/test_users.py:34 E501 flake8 E501 - Unit
No Test Coverage - Branch
- test-pillar-users
- Build Status
Buildable 3310 Build 3559: arc lint + arc unit
Event Timeline
Comment Actions
$ python -m unittest discover pillar/core F ====================================================================== FAIL: test_users_properties (test_users.Testinstance) ---------------------------------------------------------------------- Traceback (most recent call last): File "/opt/salt/nasqueron-operations/_tests/pillar/core/test_users.py", line 36, in test_users_properties self.assertTrue(is_valid, "\n" + "\n".join(errors)) AssertionError: False is not true : Missing properties for alinap: {'ssh_keys'} Invalid properties for alinap: {'ssh-keys'} ---------------------------------------------------------------------- Ran 1 test in 0.277s FAILED (failures=1) $ python -m unittest discover pillar/core . ---------------------------------------------------------------------- Ran 1 test in 0.275s