
In addition to adding test cases for creating the inventory backup, this patch modifies the `get_inventory` function to make the cleanup action optional. This was done to facilitate the tests, since they required that clean up not happen in order to verify the relevant scenarios. Change-Id: I3ec317bc9dc7d950dec726789c16b5434981c796