The three tox unit tests that are failing are tests that invoke the device_images API and attempt to write to that folder.
The easiest way to reproduce this problem is to make an in-accessible (000 permissions) /tmp/device_images folder, and then run tox for sysinv for the tests that fail (tests.api.test_device_image)
cd $MY_REPO/stx/config/sysinv/sysinv/sysinv/
tox -e py27 -- tests.api.test_device_image
These are the three tests that fail:
tests.api.test_device_image.TestPostDeviceImage.test_create_revoke_key_image
tests.api.test_device_image.TestPostDeviceImage.test_create_root_key_image
tests.api.test_device_image.TestPostDeviceImage.test_create_functional_image
The three tox unit tests that are failing are tests that invoke the device_images API and attempt to write to that folder.
The easiest way to reproduce this problem is to make an in-accessible (000 permissions) /tmp/device_images folder, and then run tox for sysinv for the tests that fail (tests. api.test_ device_ image)
mkdir /tmp/device_images
chmod 000 /tmp/device_images
cd $MY_REPO/ stx/config/ sysinv/ sysinv/ sysinv/ test_device_ image
tox -e py27 -- tests.api.
These are the three tests that fail: api.test_ device_ image.TestPostD eviceImage. test_create_ revoke_ key_image api.test_ device_ image.TestPostD eviceImage. test_create_ root_key_ image api.test_ device_ image.TestPostD eviceImage. test_create_ functional_ image
tests.
tests.
tests.