Browse Source

Mute HuggingFaceEmbeddingsModelTests testThrowsURISyntaxException_ForInvalidUrl in FIPS (#104515)

Mute for #104513
Albert Zaharovits 1 year ago
parent
commit
2423e17514

+ 1 - 0
x-pack/plugin/inference/src/test/java/org/elasticsearch/xpack/inference/services/huggingface/embeddings/HuggingFaceEmbeddingsModelTests.java

@@ -19,6 +19,7 @@ import static org.hamcrest.Matchers.is;
 public class HuggingFaceEmbeddingsModelTests extends ESTestCase {
 
     public void testThrowsURISyntaxException_ForInvalidUrl() {
+        assumeFalse("https://github.com/elastic/elasticsearch/issues/104513", inFipsJvm());
         var thrownException = expectThrows(IllegalArgumentException.class, () -> createModel("^^", "secret"));
         assertThat(thrownException.getMessage(), is("unable to parse url [^^]"));
     }