From 0b8f8829418a9b985bc538be68c43e46dbcc2595 Mon Sep 17 00:00:00 2001 From: Mayur Singal <39544459+ulixius9@users.noreply.github.com> Date: Thu, 6 Mar 2025 10:21:15 +0530 Subject: [PATCH] MINOR: Fix test connection on updating bot jwt (#20093) --- .../service/util/OpenMetadataConnectionBuilder.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/util/OpenMetadataConnectionBuilder.java b/openmetadata-service/src/main/java/org/openmetadata/service/util/OpenMetadataConnectionBuilder.java index f59b5ef2c79..fc8089e09dd 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/util/OpenMetadataConnectionBuilder.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/util/OpenMetadataConnectionBuilder.java @@ -170,6 +170,9 @@ public class OpenMetadataConnectionBuilder { } public OpenMetadataConnection build() { + // Initialize the bot user while building to update any + // changes done on the bot like updating jwt token + initializeBotUser(Entity.INGESTION_BOT_NAME); return new OpenMetadataConnection() .withAuthProvider(authProvider) .withHostPort(openMetadataURL)