Esempio n. 1
0
    def recreate(self):
        """Drop and create Rally database.

        This will delete all existing data.
        """
        db.schema_cleanup()
        db.schema_create()
        envutils.clear_env()
Esempio n. 2
0
    def recreate(self, api):
        """Drop and create Rally database.

        This will delete all existing data.
        """
        print("Recreating database: ", end="")
        self.show(api, True)
        db.schema.schema_cleanup()
        print("Database deleted successfully")
        db.schema.schema_create()
        print("Database created successfully")
        envutils.clear_env()
Esempio n. 3
0
    def recreate(self, api):
        """Drop and create Rally database.

        This will delete all existing data.
        """
        print("Recreating database: ", end="")
        self.show(api, True)
        db.schema.schema_cleanup()
        print("Database deleted successfully")
        db.schema.schema_create()
        print("Database created successfully")
        envutils.clear_env()
Esempio n. 4
0
 def recreate(self):
     db.db_drop()
     db.db_create()
     envutils.clear_env()
 def test_clear_env(self, mock_update_env_file, mock_path_exists):
     envutils.clear_env()
     self.assertEqual(os.environ, {})
Esempio n. 6
0
 def test_clear_env(self, mock_update_env_file, mock_path_exists):
     envutils.clear_env()
     self.assertEqual(os.environ, {})
Esempio n. 7
0
 def test_clear_env(self, mock_file, mock_file_status):
     envutils.clear_env()
     self.assertEqual(os.environ, {})
Esempio n. 8
0
 def recreate(self):
     """Drop and create Rally database."""
     db.db_drop()
     db.db_create()
     envutils.clear_env()