def test_unstructured_index_schema_all_distance_metrics(self):
        """A test for the unstructured Vespa schema generation with each of the distance metrics."""
        index_name = "test_unstructured_schema_distance_metric"

        for distance_metric in DistanceMetric:
            with (self.subTest(f"Unstructured index with distance metric: {distance_metric.value}")):
                test_marqo_index_request = self.unstructured_marqo_index_request(
                    name=index_name,
                    model=Model(name="ViT-B/32"),
                    hnsw_config=HnswConfig(ef_construction=512, m=16),
                    distance_metric=distance_metric
                )

                test_unstructured_schema_object = UnstructuredVespaSchema(test_marqo_index_request)

                generated_schema, _ = test_unstructured_schema_object.generate_schema()

                expected_schema = self._read_schema_from_file(
                    f'test_schemas/unstructured_vespa_index_schema_distance_metric_{distance_metric.value}.sd')

                self.assertEqual(
                    self._remove_whitespace_in_schema(expected_schema),
                    self._remove_whitespace_in_schema(generated_schema)
                )
A test for the unstructured Vespa schema generation with each of the distance metrics.
tests/integ_tests/core/unstructured_vespa_index/test_unstructured_vespa_schema.py