ramu11 commented on code in PR #9291:
URL: https://github.com/apache/camel-quarkus/pull/9291#discussion_r4217326458


##########
integration-test-groups/aws2/aws2-translate/src/test/java/org/apache/camel/quarkus/component/aws2/translate/it/Aws2TranslateTestEnvCustomizer.java:
##########
@@ -0,0 +1,33 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.quarkus.component.aws2.translate.it;
+
+import org.apache.camel.quarkus.test.support.aws2.Aws2TestEnvContext;
+import org.apache.camel.quarkus.test.support.aws2.Aws2TestEnvCustomizer;
+import org.apache.camel.quarkus.test.support.aws2.Service;
+
+public class Aws2TranslateTestEnvCustomizer implements Aws2TestEnvCustomizer {
+
+    @Override
+    public Service[] awsServices() {
+        throw new UnsupportedOperationException("Determine the supported AWS2 
Service value for Translate");
+    }

Review Comment:
   The test method was commented/left empty because Translate was not mocked by 
the Floci version currently used by the project.
   
   I've now updated it based on the Floci 2.2.0 support:
   
   Added the TRANSLATE service to the Service enum.
   
   Updated Aws2TranslateTestEnvCustomizer to return Service.TRANSLATE.
   
   Registered the customizer under 
META-INF/services/org.apache.camel.quarkus.test.support.aws2.Aws2TestEnvCustomizer.
   
   Added the /translate REST assertion to verify the mocked response (Ciao).
   
   The test is temporarily disabled because the project is still using Floci 
1.6.0, which doesn't provide the Translate mock. Once Floci is upgraded to 2.x, 
the test can be enabled.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to