python-osism
Documentation
- SONiC ConfigDB validation — how
osism sonic validateis built, what it does not check, and the caveat that the vendored YANG models are a different SONiC flavour to the devices.
Running unit tests
Install development dependencies and run the full unit test suite:
pipenv install --dev
pipenv run pytest
Run a single test module:
pipenv run pytest tests/unit/test_smoke.py
Running integration tests
The integration tests in tests/integration/ exercise the Celery/Redis task
core (broker, queue routing, worker, result backend, Redis streams and locks)
end-to-end. They require a reachable Redis and start a Celery worker from the
same virtualenv; they are skipped automatically when Redis is not running.
docker run -d -p 6379:6379 redis:7-alpine
REDIS_HOST=localhost REDIS_DB=15 pipenv run pytest tests/integration
Warning: The suite mutates live state on the configured Redis. Most keys are per-run (UUID-based), but some are fixed global names on the selected
REDIS_DB: the task-lock test reads, writes and removesosism:task_lock, and the vault test removesansible_vault_password— which a real deployment cannot recover, since no other copy of it exists on the system. Always point the suite at a disposable Redis (such as the throwaway container above).To make that hard to get wrong, the suite refuses to run against
REDIS_DB=0, the database a deployment uses. SetREDIS_DBto a spare database as shown above, orOSISM_ALLOW_DEFAULT_REDIS_DB=1if the Redis itself is disposable.REDIS_DBmoves the direct client, the Celery broker and the result backend together.
Metadata
Release files for osism 0.20260909.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| osism-0.20260909.0.tar.gz | 942.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| osism-0.20260909.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.2 MB
Release files / osism-0.20260909.0.tar.gz
| Download URL | osism-0.20260909.0.tar.gz |
|---|---|
| Size | 942.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9c03b5ec66e81e642fc86249e034f421f6a3b60506e67d4e854a12196bf562d
|
|
BLAKE2b-256 checksum How to use checksums |
061b62922e354642dded7f7c3335a715f756a9dbfe9d0f22d95f25642937b598
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / osism-0.20260909.0-py3-none-any.whl
| Download URL | osism-0.20260909.0-py3-none-any.whl |
|---|---|
| Size | 298.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7fcc70262f55fa64f94e6b3c16daf2b39f786198573ae61ff7706d81ce27dc95
|
|
BLAKE2b-256 checksum How to use checksums |
d8c3b23ae67744bc3eca0452d6109f3abd1e14129ab46c1b3282abe8c0156e46
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|