Distribution fixes 24/143124/3
authorFiete Ostkamp <fiete.ostkamp@telekom.de>
Sun, 8 Feb 2026 09:15:29 +0000 (10:15 +0100)
committerFiete Ostkamp <fiete.ostkamp@telekom.de>
Sun, 8 Feb 2026 09:57:04 +0000 (10:57 +0100)
commitabe5a64feff3fa36a55bfed39c412f7e02c279f7
tree87505ffd3d7ce937bd97d9459dd7f17304bb1177
parent7b81da666387932a265b3bf38dd449449d8dcdb9
Distribution fixes

- readd the recently removed [0] service.distribute() call in `YamlTemplateServiceOnboardStep.execute`
- avoid `AttributeError` that occurs when attempting to iterate over
  `self.service.latest_distribution.distribution_status_list` and `.distribution_status_list` is `None`
- add tests for YamlTemplateServiceOnboardStep to test the distribution
- add flake8 + black precommit hook (linter also used in the pipeline)

[0] https://gerrit.onap.org/r/c/testsuite/pythonsdk-tests/+/140736

Issue-ID: INT-2346
Change-Id: I6627c0a5c8cd4e7b8f7f2a50e2797b9a8a4728ec
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
.flake8 [new file with mode: 0644]
.pre-commit-config.yaml [new file with mode: 0644]
requirements.txt
src/onaptests/steps/onboard/service.py
tests/test_service_onboard.py [new file with mode: 0644]