UiPath Documentation
automation-suite
2023.10
false
EKS/AKS 上的 Automation Suite 安装指南
重要 :
新发布内容的本地化可能需要 1-2 周的时间才能完成。

忽略测试自动化 SQL 连接字符串

解决 uipathctl 忽略 Automation Suite 的集群配置中的测试自动化 SQL 连接字符串的问题。

描述​

当您在集群配置文件的orchestrator.testautomation部分下提供 SQL 连接字符串时, uipathctl二进制文件将忽略连接字符串,并使用orchestrator部分下的连接字符串。如以下示例所示,被忽略的连接字符串是sql_connection_str参数的值:

"orchestrator": {
  "testautomation": {
    "enabled": true,
    "sql_connection_str": "Server=tcp:new-sql-server-name,1433;Initial Catalog=new-db;Persist Security Info=False;User Id=test;Password='************';MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;Max Pool Size=100;"
  }
}
"orchestrator": {
  "testautomation": {
    "enabled": true,
    "sql_connection_str": "Server=tcp:new-sql-server-name,1433;Initial Catalog=new-db;Persist Security Info=False;User Id=test;Password='************';MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=True;Connection Timeout=30;Max Pool Size=100;"
  }
}

解决方案​

要解决此问题,请执行以下步骤:

  1. 对您作为sql_connection_str参数的值提供的 SQL 连接字符串执行 Base64 编码:
    echo -n "<sql_connection_str under orchestrator.testautomation in cluster config file>" | base64 -d
    echo -n "<sql_connection_str under orchestrator.testautomation in cluster config file>" | base64 -d
    
  2. 运行以下命令以编辑orchestrator-secrets密码:
    kubectl edit secret orchestrator-secrets -n uipath
    kubectl edit secret orchestrator-secrets -n uipath
    
  3. 在密码中,使用 Base64 编码的连接字符串值更新sqlConnectionStringTA参数的值。
  4. 检查您是否成功更新了连接字符串值:
    kubectl get secret orchestrator-secrets -n uipath -o jsonpath="{.data.sqlConnectionStringTA}" |  base64 --decode
    kubectl get secret orchestrator-secrets -n uipath -o jsonpath="{.data.sqlConnectionStringTA}" |  base64 --decode
    
  5. 在 ArgoCD 应用程序用户界面中,导航到“Orchestrator” >“详细信息” >“参数” >“值” >“内部值” >“更新” 。
  6. 在connectionStrings部分下,使用连接字符串的纯文本值更新TestAutomation参数的值,如以下示例所示:
    connectionStrings:
      TestAutomation: <Plain-text value of sql_connection_str under orchestrator.testautomation in cluster config file>
    connectionStrings:
      TestAutomation: <Plain-text value of sql_connection_str under orchestrator.testautomation in cluster config file>
    
  • 描述​
  • 解决方案​

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新