Split up and improve speed of keygen tests
Split up and improve speed of keygen tests

test_generate_keypair is nova's slowest unit test, partly because it's
doing 3 separate things, and partly because we're generating
unnecessarily large keys which can suffer from entropy problems.

This patch splits up the 3 cases and asks for a 1024-bit key instead of
4096.

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