Add shadow table empty verification
Add shadow table empty verification

The ArchiveDatabase tests only test that expected content is moved
into shadow tables. They don't check that unexpected content in
unrelated tables *is not moved*. Like... instance_types. The lack of
this test allowed a regression to get in that could corrupt your
entire database.

This adds an _assert_shadow_tables_empty_except function that should
be called at the end of archiving db tests that asserts that there is
not content in any of the shadow_tables except the ones we expect.

Closes-Bug: #1431571

Change-Id: I49431c5413cc700c46d28ee47a9ed678987f17ff

Stavitsky/nova,dims/nova,bgxavier/nova,petrutlucian94/nova,shail2810/nova,openstack/nova,klmitch/nova,JianyuWang/nova,gooddata/openstack-nova,rahulunair/nova,zaina/nova,watonyweng/nova,Juniper/nova,phenoxim/nova,CCI-MOC/nova,alexandrucoman/vbox-nova-driver,raildo/nova,mahak/nova,CEG-FYP-OpenStack/scheduler,iuliat/nova,akash1808/nova_test_latest,isyippee/nova,hanlind/nova,rahulunair/nova,bgxavier/nova,bigswitch/nova,yosshy/nova,fnordahl/nova,blueboxgroup/nova,rajalokan/nova,barnsnake351/nova,tudorvio/nova,klmitch/nova,openstack/nova,rajalokan/nova,thomasem/nova,cernops/nova,noironetworks/nova,joker946/nova,zzicewind/nova,felixma/nova,rajalokan/nova,whitepages/nova,thomasem/nova,isyippee/nova,alaski/nova,zzicewind/nova,Juniper/nova,cyx1231st/nova,BeyondTheClouds/nova,MountainWei/nova,LoHChina/nova,tangfeixiong/nova,Francis-Liu/animated-broccoli,adelina-t/nova,eonpatapon/nova,double12gzh/nova,MountainWei/nova,CloudServer/nova,j-carpentier/nova,hanlind/nova,yatinkumbhare/openstack-nova,edulramirez/nova,kimjaejoong/nova,nikesh-mahalka/nova,shail2810/nova,eonpatapon/nova,jeffrey4l/nova,cloudbase/nova,mmnelemane/nova,devendermishrajio/nova_test_latest,BeyondTheClouds/nova,jianghuaw/nova,yatinkumbhare/openstack-nova,gooddata/openstack-nova,CloudServer/nova,devendermishrajio/nova,vmturbo/nova,tealover/nova,kimjaejoong/nova,rajalokan/nova,Tehsmash/nova,CEG-FYP-OpenStack/scheduler,TwinkleChawla/nova,watonyweng/nova,Francis-Liu/animated-broccoli,adelina-t/nova,scripnichenko/nova,cloudbase/nova,belmiromoreira/nova,phenoxim/nova,LoHChina/nova,akash1808/nova_test_latest,cyx1231st/nova,fnordahl/nova,dims/nova,JioCloud/nova_test_latest,JianyuWang/nova,klmitch/nova,alexandrucoman/vbox-nova-driver,jeffrey4l/nova,mikalstill/nova,gooddata/openstack-nova,klmitch/nova,sebrandon1/nova,apporc/nova,JioCloud/nova,tangfeixiong/nova,petrutlucian94/nova,Tehsmash/nova,whitepages/nova,varunarya10/nova_test_latest,tudorvio/nova,alvarolopez/nova,mmnelemane/nova,dawnpower/nova,sebrandon1/nova,zaina/nova,vmturbo/nova,devendermishrajio/nova,gooddata/openstack-nova,ruslanloman/nova,NeCTAR-RC/nova,ted-gould/nova,jianghuaw/nova,varunarya10/nova_test_latest,jianghuaw/nova,JioCloud/nova_test_latest,openstack/nova,dawnpower/nova,jianghuaw/nova,akash1808/nova,ruslanloman/nova,alvarolopez/nova,tealover/nova,belmiromoreira/nova,cloudbase/nova,vmturbo/nova,JioCloud/nova,Yusuke1987/openstack_template,joker946/nova,noironetworks/nova,Yusuke1987/openstack_template,yosshy/nova,mikalstill/nova,CCI-MOC/nova,zhimin711/nova,Juniper/nova,takeshineshiro/nova,nikesh-mahalka/nova,hanlind/nova,ted-gould/nova,felixma/nova,cernops/nova,takeshineshiro/nova,blueboxgroup/nova,devendermishrajio/nova_test_latest,BeyondTheClouds/nova,bigswitch/nova,cernops/nova,vmturbo/nova,mikalstill/nova,j-carpentier/nova,scripnichenko/nova,mahak/nova,zhimin711/nova,iuliat/nova,TwinkleChawla/nova,mandeepdhami/nova,akash1808/nova,edulramirez/nova,alaski/nova,NeCTAR-RC/nova,barnsnake351/nova,mandeepdhami/nova,rahulunair/nova,double12gzh/nova,Juniper/nova,apporc/nova,Stavitsky/nova,sebrandon1/nova,mahak/nova,raildo/nova