Exemplo n.º 1
0
    def setUpClass(cls):
        """Set up the request test.

        Allocates an OpenStack connection and creates an instance for
        the tests.
        """

        # Now, we need to make an instance
        cls.server = stress.mk_instance(None)
Exemplo n.º 2
0
    def _do_test(self):
        """Attempt to create an instance."""

        # Append the returned instance to instances so we can clean up
        # later on
        try:
            self.instances.append(stress.mk_instance(None))
            self.total += 1
        except Exception, e:
            # Print out the exception but otherwise ignore it
            print >>sys.stderr, "Exception %s" % e