createUser Create a user username password apiuser firstname apiuser lastname apiuser email apiuser@gmail.com accounttype 0 id userid account accountvar registerUserKeys Registering the user id userid apikey apikey secretkey secretkey deployVirtualMachine Deploying VM from small diskOffering true zoneid globalzoneid serviceofferingid globalserviceofferingid diskofferingid 5 templateid globaltemplateid account admin domainid 1 displayname namefordisplay group group1 id smallvmid listVolumes virtualmachineid smallvmid type ROOT id smallrootvolumeid listVolumes virtualmachineid smallvmid type datadisk id smalldatavolumeid sleep.sh Sleep for some time s 200 createSnapshot Creating snapshot of ROOT disk of small vm true volumeid smallrootvolumeid id smallrootsnapshot createSnapshot Creating snapshot of Data disk of small vm true volumeid smalldatavolumeid id smalldatasnapshot createTemplate Creating template of ROOT snapshot of small vm true snapshotid smallrootsnapshot name displaytext newtext osTypeId 12 id smalltemplateid deployVirtualMachine Deploy a vm from template created from snapshot of ROOT disk of small vm true zoneid globalzoneid serviceofferingid globalserviceofferingid diskofferingid 5 templateid smalltemplateid account admin domainid 1 displayname smallsnpshtVM group group1 id smallvmid1 createVolume Create a volume from smaller disk snapshot true snapshotid smallrootsnapshot name id smallvolumeid createVolume Create a volume from smaller disk snapshot true snapshotid smalldatasnapshot name id smallvolumeid createSnapshot Creating snapshot of Detached Volume true volumeid smallvolumeid id detachsnapshotid attachVolume Attach small volume to the vm created from small snapshot true id smallvolumeid virtualmachineid smallvmid1 attachVolume Attach small volume to a different VM true id smallvolumeid virtualmachineid smallvmid rebootVirtualMachine Reboot small vm id smallvmid1 stopVirtualMachine stop medium vm id smallvmid1 startVirtualMachine stop medium vm id smallvmid1 deleteSnapshot Deleting a snapshot taken of an attached Volume id smallrootsnapshot deleteSnapshot Deleting a snapshot taken of a detached Volume id detachsnapshotid destroyVirtualMachine Destroy small vm id smallvmid1 createSnapshot Creating snapshot of root disk immediately after destroying VM. true volumeid smallrootvolumeid id smallrootsnapshot sleep.sh Sleep for expunge delayed interval s expunge.delay sleep.sh Sleep for another expunge delayed interval s expunge.delay createSnapshot Creating snapshot of Destroyed root disk after expunge delay Failure Test Case true true volumeid smallrootvolumeid id smallrootsnapshot destroyVirtualMachine Destroy small vm id smallvmid1 listConfiguration Getting value of the expunge.delay configuration parameter name expunge.delay value expunge.delay listConfiguration Getting value of the expunge.delay configuration parameter name expunge.delay value expunge.delay deleteUser Deleting a user id userid