Skip to content

Commit

Permalink
Fix tests todo (#1623)
Browse files Browse the repository at this point in the history
* fix(tests): removed elastic search testcontainer hack.

* fix(tooling): added a new line at the end of generated java files header to make generated files more consistent in formatting
  • Loading branch information
valdar authored May 8, 2024
1 parent fcbfb2a commit 72117f6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 65 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import org.apache.camel.kafkaconnector.elasticsearch.clients.ElasticSearchClient;
import org.apache.camel.kafkaconnector.elasticsearch.common.ElasticSearchCommon;
import org.apache.camel.kafkaconnector.elasticsearch.common.ElasticSearchIndexMessageProducer;
import org.apache.camel.kafkaconnector.elasticsearch.common.ElasticSearchLocalContainerServiceHack;
import org.apache.camel.test.infra.elasticsearch.services.ElasticSearchLocalContainerService;
import org.apache.camel.test.infra.elasticsearch.services.ElasticSearchService;
import org.apache.camel.test.infra.elasticsearch.services.RemoteElasticSearchService;
import org.junit.jupiter.api.BeforeEach;
Expand All @@ -56,8 +56,7 @@ public ElasticSearchService get() {
ElasticsearchContainer container =
new ElasticsearchContainer("docker.elastic.co/elasticsearch/elasticsearch:8.5.2");
container.addEnv("xpack.security.enabled", "true");
//XXX: revert back to the normal lasticSearchLocalContainerService when https://issues.apache.org/jira/browse/CAMEL-19834 is fixed
return new ElasticSearchLocalContainerServiceHack(container);
return new ElasticSearchLocalContainerService(container);
}
}
).addRemoteMapping(RemoteElasticSearchService::new).build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

import static org.junit.jupiter.api.Assertions.assertEquals;

//@Disabled("Database connection fails with connection refused.")
public class CamelSourceSQLITCase extends CamelSourceTestSupport {
private static final String DATABASE_NAME = "camel";
private static final String USERNAME = "ckc";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
* 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.
*/
*/

0 comments on commit 72117f6

Please sign in to comment.