tripleo-common/tripleo_common/tests/image
Kevin Carter 0be1be779a Ensure we're raising proper exceptions
This change ensures our use of the `process.execute` method from
"oslo_concurrency" always checks the return codes of a given command.
While the library is assumed to do this already, this change
enforces our expected behavior.

We're also changing our use of futures to return when there's
an exception. The build_all method was blocking until all
jobs were completed. Blocking on pipeline completion results
in us masking exceptions that may be raised duing the job
execution. To ensure we're capturing errors in our build
process the wait function now return on the first exception;
More on the futures constants can be seen here:[0]. The
return values will now be evaluated to ensure all jobs
completed successfully.

Unit tests have been added to ensure we're not breaking the
build all method and that it raise appropriate exceptions
when errors are encountered.

[0] - https://docs.python.org/3/library/concurrent.futures.html#module-functions

Related-Bug: #1836265
Change-Id: Ia05140142fa59e5b252cd92801244e4fc02f4bbc
Signed-off-by: Kevin Carter <kecarter@redhat.com>
2019-07-15 08:41:16 -05:00
..
builder Ensure we're raising proper exceptions 2019-07-15 08:41:16 -05:00
__init__.py Build image files from definitions in yaml 2016-03-18 11:43:32 -04:00
fakes.py Break out function get_undercloud_registry 2018-04-05 21:03:57 +00:00
test_base.py Replaces yaml.load() with yaml.safe_load() 2017-03-10 01:16:49 +00:00
test_build.py Set imageext for IPA ramdisk 2017-01-17 00:18:18 +00:00
test_image_builder.py Open log in utf-8 to prevent UnicodeEncodeError 2017-02-16 17:16:25 +00:00
test_image_export.py Transfer all images in a manifest list 2019-06-04 11:34:35 +12:00
test_image_uploader.py Merge "Handle registries with incorrect certs correctly" 2019-07-08 21:40:16 +00:00
test_kolla_builder.py Add new images for ceph dashboard composable service. 2019-06-28 18:47:49 +02:00