Various sites providing storage for experiments in high energy particle physics and photon science deploy dCache as flexible and modern large scale storage system. As such, dCache is a complex and elaborated software framework, which needs a test driven development in order to ensure a smooth and bug-free release cycle. So far, tests for dCache are performed on dedicated hosts emulating the usual HEP environment. Since the tests are only run as part of the release cycle, the load of the machines is on average quite small. In order to use the computing resources more efficiently, the dCache testing infrastructure is ported to the DESY OpenStack installation. Using the flexible resource allocation provided by OpenStack the test-machines are spawned on demand and configured by puppet similarly to regular worker nodes. After finishing these tests, the machines are deleted freeing the computing resources for other users.