[FLINK-35325][transform] Skip insufficient_quota error when running test case using ad model. (#3849)

pull/3708/merge
Kunni 3 weeks ago committed by GitHub
parent 7b01d9ca40
commit 1fb68a8d62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -40,6 +40,7 @@ import org.apache.flink.shaded.guava31.com.google.common.collect.ImmutableMap;
import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.extension.RegisterExtension; import org.junit.jupiter.api.extension.RegisterExtension;
import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.Arguments;
@ -839,6 +840,7 @@ public class FlinkPipelineUdfITCase {
@ParameterizedTest @ParameterizedTest
@MethodSource("testParams") @MethodSource("testParams")
@Disabled("For manual test as there is a limit for quota.")
void testTransformWithModel(ValuesDataSink.SinkApi sinkApi) throws Exception { void testTransformWithModel(ValuesDataSink.SinkApi sinkApi) throws Exception {
FlinkPipelineComposer composer = FlinkPipelineComposer.ofMiniCluster(); FlinkPipelineComposer composer = FlinkPipelineComposer.ofMiniCluster();

@ -21,11 +21,13 @@ import org.apache.flink.cdc.common.configuration.Configuration;
import org.apache.flink.cdc.common.udf.UserDefinedFunctionContext; import org.apache.flink.cdc.common.udf.UserDefinedFunctionContext;
import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
/** A test for {@link OpenAIChatModel}. */ /** A test for {@link OpenAIChatModel}. */
public class TestOpenAIChatModel { public class TestOpenAIChatModel {
@Test @Test
@Disabled("For manual test as there is a limit for quota.")
public void testEval() { public void testEval() {
OpenAIChatModel openAIChatModel = new OpenAIChatModel(); OpenAIChatModel openAIChatModel = new OpenAIChatModel();
Configuration configuration = new Configuration(); Configuration configuration = new Configuration();

@ -22,12 +22,14 @@ import org.apache.flink.cdc.common.data.ArrayData;
import org.apache.flink.cdc.common.udf.UserDefinedFunctionContext; import org.apache.flink.cdc.common.udf.UserDefinedFunctionContext;
import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test; import org.junit.jupiter.api.Test;
/** A test for {@link OpenAIEmbeddingModel}. */ /** A test for {@link OpenAIEmbeddingModel}. */
public class TestOpenAIEmbeddingModel { public class TestOpenAIEmbeddingModel {
@Test @Test
@Disabled("For manual test as there is a limit for quota.")
public void testEval() { public void testEval() {
OpenAIEmbeddingModel openAIEmbeddingModel = new OpenAIEmbeddingModel(); OpenAIEmbeddingModel openAIEmbeddingModel = new OpenAIEmbeddingModel();
Configuration configuration = new Configuration(); Configuration configuration = new Configuration();

Loading…
Cancel
Save