Skip to content

Commit 1df3bb8

Browse files
syan-tibcosyan-tibco
andauthored
2025 week 49 update 2 (#106)
Co-authored-by: syan-tibco <shuhuan.yan@tibco.com>
1 parent 980e214 commit 1df3bb8

File tree

11 files changed

+175
-48
lines changed

11 files changed

+175
-48
lines changed

charts/provisioner-config-local/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ apiVersion: v2
88
name: provisioner-config-local
99
description: Platform Provisioner local config
1010
type: application
11-
version: "1.13.3"
11+
version: "1.13.9"
1212
appVersion: "2.0.1"
1313
home: https://github.com/TIBCOSoftware/tp-helm-charts
1414
maintainers:

charts/provisioner-config-local/config/pp-maintain-tp-automation-o11y.yaml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ description: |
2020
* Register a DP
2121
* Config o11y service for a given DP
2222
groups:
23-
- title: "Chart Repository Configuration"
23+
- title: "Automation Repository Configuration"
2424
index: 1
2525
description: |
26-
## Chart repository configuration
26+
## Automation repository configuration
2727
* The GitHub token for DP to access private helm chart repo
2828
* Matching CP version with automation version
2929
@@ -64,13 +64,38 @@ groups:
6464
---
6565
options:
6666
# groupIndex: 1 Chart Repository Configuration
67+
- name: "Automation GitHub repo name"
68+
groupIndex: 1
69+
type: string
70+
guiType: input
71+
reference: "meta.guiEnv.GUI_TP_AUTO_GITHUB_REPO_NAME"
72+
required: false
73+
description: |
74+
The automation GitHub location. Change to private repo if needed.
75+
- name: "Automation GitHub repo path"
76+
groupIndex: 1
77+
type: string
78+
guiType: input
79+
reference: "meta.guiEnv.GUI_TP_AUTO_GITHUB_REPO_PATH"
80+
required: false
81+
description: |
82+
The automation source code GitHub path.
83+
- name: "Automation GitHub repo branch"
84+
groupIndex: 1
85+
type: string
86+
guiType: input
87+
reference: "meta.guiEnv.GUI_TP_AUTO_GITHUB_REPO_BRANCH"
88+
required: false
89+
description: |
90+
The automation source code GitHub branch.
6791
- name: "GitHub token"
6892
groupIndex: 1
6993
type: password
7094
guiType: input
7195
reference: "meta.guiEnv.GUI_GITHUB_TOKEN"
7296
description: |
7397
The GitHub token for DP to access private helm chart repo. If you deploy unreleased CP/DP; this GitHub token is a must.
98+
7499
# groupIndex: 3 Activation Server
75100
- name: "Activation server IP"
76101
groupIndex: 3
@@ -186,13 +211,7 @@ options:
186211
reference: "meta.guiEnv.GUI_TP_AUTO_ENABLE_EMS"
187212
description: |
188213
Set to true to deploy EMS
189-
- name: "Deploy Pulsar"
190-
groupIndex: 6
191-
type: boolean
192-
guiType: checkbox
193-
reference: "meta.guiEnv.GUI_TP_AUTO_ENABLE_PULSAR"
194-
description: |
195-
Set to true to deploy Pulsar
214+
196215
# groupIndex: 7 DNS and Port Forward
197216
- name: "TP port forward"
198217
groupIndex: 7

charts/provisioner-config-local/recipes/tp-base-on-prem-https.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ meta:
6969

7070
# CP automation
7171
GUI_TP_AUTOMATION_DOCKER_IMAGE_REPO: "ghcr.io/tibcosoftware/platform-provisioner/platform-provisioner"
72-
GUI_TP_AUTOMATION_DOCKER_IMAGE_TAG: 1.6.9-auto-on-prem-jammy
72+
GUI_TP_AUTOMATION_DOCKER_IMAGE_TAG: 1.6.10-auto-on-prem-jammy
7373

7474
# flow control
7575
GUI_TP_INSTALL_PROVISIONER_UI: false

charts/provisioner-config-local/recipes/tp-base-on-prem.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ meta:
6767

6868
# CP automation
6969
GUI_TP_AUTOMATION_DOCKER_IMAGE_REPO: "ghcr.io/tibcosoftware/platform-provisioner/platform-provisioner"
70-
GUI_TP_AUTOMATION_DOCKER_IMAGE_TAG: 1.6.9-auto-on-prem-jammy
70+
GUI_TP_AUTOMATION_DOCKER_IMAGE_TAG: 1.6.10-auto-on-prem-jammy
7171

7272
# flow control
7373
GUI_TP_INSTALL_PROVISIONER_UI: false

charts/provisioner-config-local/recipes/tp-deploy-bw5dm.yaml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@ meta:
44
guiEnv:
55
note: "deploy-bw5dm"
66

7-
# github
8-
GUI_BW5_CHART_REPO: "https://raw.githubusercontent.com/tibco/cicinfra-integration/gh-pages/"
9-
GUI_BW5_CHART_REPO_USER_NAME: "bw-dev"
7+
# chart repo
8+
GUI_BW5_CHART_REPO: "https://csgprdusw2reposaas.jfrog.io/artifactory/api/helm/tibco-platform-helm-dev-github"
9+
GUI_BW5_CHART_REPO_USER_NAME: "tibco-platform-devops-read"
1010
GUI_BW5_CHART_REPO_TOKEN: ""
1111

12+
# container registry
13+
GUI_BW5_CONTAINER_REGISTRY: "csgprdusw2reposaas.jfrog.io"
14+
GUI_BW5_CONTAINER_REGISTRY_REPOSITORY: "tibco-platform-docker-dev"
15+
GUI_BW5_CONTAINER_REGISTRY_USERNAME: ""
16+
GUI_BW5_CONTAINER_REGISTRY_PASSWORD: ""
17+
1218
# env
1319
GUI_TP_CLUSTER_NAME: "on-prem"
1420
GUI_TP_ACTIVATION_SERVER_IP: ""
@@ -44,10 +50,16 @@ meta:
4450
PIPELINE_CHECK_DOCKER_STATUS: false
4551

4652
# github
47-
TP_CHART_REPO: ${GUI_BW5_CHART_REPO:-https://raw.githubusercontent.com/tibco/cicinfra-integration/gh-pages/}
53+
TP_CHART_REPO: ${GUI_BW5_CHART_REPO:-"https://csgprdusw2reposaas.jfrog.io/artifactory/api/helm/tibco-platform-helm-dev-github"}
4854
TP_CHART_REPO_USER_NAME: ${GUI_BW5_CHART_REPO_USER_NAME}
4955
TP_CHART_REPO_TOKEN: ${GUI_BW5_CHART_REPO_TOKEN}
5056

57+
# container registry
58+
TP_CONTAINER_REGISTRY: ${GUI_BW5_CONTAINER_REGISTRY:-"csgprduswrepoedge.jfrog.io"}
59+
TP_CONTAINER_REGISTRY_REPOSITORY: ${GUI_BW5_CONTAINER_REGISTRY_REPOSITORY:-"tibco-platform-docker-dev"}
60+
TP_CONTAINER_REGISTRY_USERNAME: "${GUI_BW5_CONTAINER_REGISTRY_USERNAME}"
61+
TP_CONTAINER_REGISTRY_PASSWORD: "${GUI_BW5_CONTAINER_REGISTRY_PASSWORD}"
62+
5163
TP_CLUSTER_NAME: ${GUI_TP_CLUSTER_NAME:-"on-prem"}
5264

5365
# BW5DM
@@ -80,7 +92,7 @@ meta:
8092
tools:
8193
yq: "4.40"
8294
helmCharts:
83-
- name: bw5dm-chart
95+
- name: bw5-test
8496
condition: true
8597
version: ${BW5_CHART_VERSION}
8698
namespace: ${TP_BWDM_NAMESPACE}
@@ -93,13 +105,17 @@ helmCharts:
93105
values:
94106
keepPrevious: true
95107
content: |
96-
githubToken: ${TP_CHART_REPO_TOKEN}
108+
global:
109+
containerRegistry: "${TP_CONTAINER_REGISTRY}"
110+
containerRegistryUsername: "${TP_CONTAINER_REGISTRY_USERNAME}"
111+
containerRegistryPassword: "${TP_CONTAINER_REGISTRY_PASSWORD}"
97112
secret:
98113
enabled: true
99114
ems-server:
100115
enabled: ${TP_DEPLOY_EMS_SERVER}
101116
deployment:
102117
image:
118+
repository: "${TP_CONTAINER_REGISTRY}/${TP_CONTAINER_REGISTRY_REPOSITORY}/bw5-test"
103119
tag: "${TP_BMDP_IMAGE_TAG_EMS}"
104120
env:
105121
- name: TIBEMS_LICENSE
@@ -108,6 +124,7 @@ helmCharts:
108124
enabled: ${TP_DEPLOY_EMSDM}
109125
deployment:
110126
image:
127+
repository: "${TP_CONTAINER_REGISTRY}/${TP_CONTAINER_REGISTRY_REPOSITORY}/bw5-test"
111128
tag: "${TP_BMDP_IMAGE_TAG_BW5EMSDM}"
112129
env:
113130
- name: OTEL_TRACES_ENDPOINT
@@ -133,6 +150,7 @@ helmCharts:
133150
enabled: ${TP_DEPLOY_RVDM}
134151
deployment:
135152
image:
153+
repository: "${TP_CONTAINER_REGISTRY}/${TP_CONTAINER_REGISTRY_REPOSITORY}/bw5-test"
136154
tag: "${TP_BMDP_IMAGE_TAG_BW5RVDM}"
137155
env:
138156
- name: OTEL_TRACES_ENDPOINT
@@ -151,11 +169,13 @@ helmCharts:
151169
enabled: ${TP_DEPLOY_HAWKCONSOLE}
152170
deployment:
153171
image:
172+
repository: "${TP_CONTAINER_REGISTRY}/${TP_CONTAINER_REGISTRY_REPOSITORY}/bw5-test"
154173
tag: "${TP_BMDP_IMAGE_TAG_HAWKCONSOLE}"
155174
bw6dm:
156175
enabled: ${TP_DEPLOY_BW6DM}
157176
deployment:
158177
image:
178+
repository: "${TP_CONTAINER_REGISTRY}/${TP_CONTAINER_REGISTRY_REPOSITORY}/bw5-test"
159179
tag: "${TP_BMDP_IMAGE_TAG_BW6DM}"
160180
cluster:
161181
names:

docs/recipes/automation/on-prem/update-recipe-tokens.sh

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,11 @@ function set_github_token() {
4949
echo "Update GitHub token for ${_recipe_file_name}..."
5050
yq eval -i '(.meta.guiEnv.GUI_GITHUB_TOKEN = env(GITHUB_TOKEN))' ${_recipe_file_name}
5151
fi
52-
5352
local _recipe_file_name="07-tp-bw5-stack.yaml"
5453
if [[ -f "${CURRENT_PATH}/${_recipe_file_name}" ]]; then
5554
echo "Update GitHub token for ${_recipe_file_name}..."
5655
yq eval -i '(.meta.guiEnv.GUI_BW5_CHART_REPO_TOKEN = env(GITHUB_TOKEN))' ${_recipe_file_name}
5756
fi
58-
5957
fi
6058
}
6159

@@ -69,7 +67,7 @@ function set_jfrog_token() {
6967
fi
7068

7169
if [ -z "$GUI_CP_CONTAINER_REGISTRY" ]; then
72-
read -rp "Enter JFrog Container Registry (Press Enter to skip): " GUI_CP_CONTAINER_REGISTRY
70+
read -rp "Enter JFrog Container Registry for CP (Press Enter to skip): " GUI_CP_CONTAINER_REGISTRY
7371
fi
7472
if [ -n "$GUI_CP_CONTAINER_REGISTRY" ]; then
7573
echo "Update jFrog token for ${_recipe_file_name}..."
@@ -78,7 +76,7 @@ function set_jfrog_token() {
7876
fi
7977

8078
if [ -z "$GUI_CP_CONTAINER_REGISTRY_REPOSITORY" ]; then
81-
read -rp "Enter JFrog Container Registry Repository (Press Enter to skip): " GUI_CP_CONTAINER_REGISTRY_REPOSITORY
79+
read -rp "Enter JFrog Container Registry Repository for CP (Press Enter to skip): " GUI_CP_CONTAINER_REGISTRY_REPOSITORY
8280
fi
8381
if [ -n "$GUI_CP_CONTAINER_REGISTRY_REPOSITORY" ]; then
8482
echo "Update jFrog token for ${_recipe_file_name}..."
@@ -87,7 +85,7 @@ function set_jfrog_token() {
8785
fi
8886

8987
if [ -z "$GUI_CP_CONTAINER_REGISTRY_USERNAME" ]; then
90-
read -rp "Enter JFrog Container Registry Username (Press Enter to skip): " GUI_CP_CONTAINER_REGISTRY_USERNAME
88+
read -rp "Enter JFrog Container Registry Username for CP (Press Enter to skip): " GUI_CP_CONTAINER_REGISTRY_USERNAME
9189
fi
9290
if [ -n "$GUI_CP_CONTAINER_REGISTRY_USERNAME" ]; then
9391
echo "Update jFrog token for ${_recipe_file_name}..."
@@ -96,13 +94,56 @@ function set_jfrog_token() {
9694
fi
9795

9896
if [ -z "$GUI_CP_CONTAINER_REGISTRY_PASSWORD" ]; then
99-
read -rp "Enter JFrog Container Registry Password (Press Enter to skip): " GUI_CP_CONTAINER_REGISTRY_PASSWORD
97+
read -rp "Enter JFrog Container Registry Password for CP (Press Enter to skip): " GUI_CP_CONTAINER_REGISTRY_PASSWORD
10098
fi
10199
if [ -n "$GUI_CP_CONTAINER_REGISTRY_PASSWORD" ]; then
102100
echo "Update jFrog token for ${_recipe_file_name}..."
103101
export GUI_CP_CONTAINER_REGISTRY_PASSWORD
104102
yq eval -i '(.meta.guiEnv.GUI_CP_CONTAINER_REGISTRY_PASSWORD = env(GUI_CP_CONTAINER_REGISTRY_PASSWORD))' "$_recipe_file_name"
105103
fi
104+
105+
# update JFrog tokens for 07-tp-bw5-stack.yaml again to cover all fields
106+
local _recipe_file_name="07-tp-bw5-stack.yaml"
107+
if [[ ! -f "${CURRENT_PATH}/${_recipe_file_name}" ]]; then
108+
echo "Recipe file ${_recipe_file_name} not found."
109+
return 0
110+
fi
111+
112+
if [ -z "$GUI_CP_CONTAINER_REGISTRY" ]; then
113+
read -rp "Enter JFrog Container Registry for BW5 (Press Enter to skip): " GUI_CP_CONTAINER_REGISTRY
114+
fi
115+
if [ -n "$GUI_CP_CONTAINER_REGISTRY" ]; then
116+
echo "Update jFrog token for ${_recipe_file_name}..."
117+
export GUI_CP_CONTAINER_REGISTRY
118+
yq eval -i '(.meta.guiEnv.GUI_BW5_CONTAINER_REGISTRY = env(GUI_CP_CONTAINER_REGISTRY))' "$_recipe_file_name"
119+
fi
120+
121+
if [ -z "$GUI_CP_CONTAINER_REGISTRY_REPOSITORY" ]; then
122+
read -rp "Enter JFrog Container Registry Repository for BW5 (Press Enter to skip): " GUI_CP_CONTAINER_REGISTRY_REPOSITORY
123+
fi
124+
if [ -n "$GUI_CP_CONTAINER_REGISTRY_REPOSITORY" ]; then
125+
echo "Update jFrog token for ${_recipe_file_name}..."
126+
export GUI_CP_CONTAINER_REGISTRY_REPOSITORY
127+
yq eval -i '(.meta.guiEnv.GUI_BW5_CONTAINER_REGISTRY_REPOSITORY = env(GUI_CP_CONTAINER_REGISTRY_REPOSITORY))' "$_recipe_file_name"
128+
fi
129+
130+
if [ -z "$GUI_CP_CONTAINER_REGISTRY_USERNAME" ]; then
131+
read -rp "Enter JFrog Container Registry Username for BW5 (Press Enter to skip): " GUI_CP_CONTAINER_REGISTRY_USERNAME
132+
fi
133+
if [ -n "$GUI_CP_CONTAINER_REGISTRY_USERNAME" ]; then
134+
echo "Update jFrog token for ${_recipe_file_name}..."
135+
export GUI_CP_CONTAINER_REGISTRY_USERNAME
136+
yq eval -i '(.meta.guiEnv.GUI_BW5_CONTAINER_REGISTRY_USERNAME = env(GUI_CP_CONTAINER_REGISTRY_USERNAME))' "$_recipe_file_name"
137+
fi
138+
139+
if [ -z "$GUI_CP_CONTAINER_REGISTRY_PASSWORD" ]; then
140+
read -rp "Enter JFrog Container Registry Password for BW5 (Press Enter to skip): " GUI_CP_CONTAINER_REGISTRY_PASSWORD
141+
fi
142+
if [ -n "$GUI_CP_CONTAINER_REGISTRY_PASSWORD" ]; then
143+
echo "Update jFrog token for ${_recipe_file_name}..."
144+
export GUI_CP_CONTAINER_REGISTRY_PASSWORD
145+
yq eval -i '(.meta.guiEnv.GUI_BW5_CONTAINER_REGISTRY_PASSWORD = env(GUI_CP_CONTAINER_REGISTRY_PASSWORD))' "$_recipe_file_name"
146+
fi
106147
}
107148

108149
# set_ssl_cert sets the SSL certificate for TP

docs/recipes/automation/tp-setup/bootstrap/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
## [12/02/2025 09:28]
1+
## [12/02/2025 22:35]
22
### Fixed
33
- The automation support for 1.13 release
44
- Fix issue after activation URL UI changed
5+
- Fix issue after BMDP BW5 domain UI changed
56

67
## [11/18/2025 13:06]
78
### Fixed

docs/recipes/automation/tp-setup/bootstrap/page_object/po_bmdp_config.py

Lines changed: 41 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,34 @@ def check_bmdp_app_status_by_app_name(self, product_name, domain_name, app_name)
110110
self.page.wait_for_timeout(1000)
111111
# check bw5 application status
112112
if product_name == "BW5":
113-
app_row = self.page.locator("tr.pl-table__row", has=self.page.locator('td.pl-table__cell', has_text=domain_name))
114-
if Util.check_dom_visibility(self.page, app_row.locator("td.pl-table__cell img[src*='/pl-icon-success.svg']"), 5, 120, True):
115-
app_row.locator('td.pl-table__cell .text', has_text=app_name).click()
116-
print(f"'{app_name}' is deployed and checking service instance status.")
117-
ReportYaml.set_capability_app(ENV.TP_AUTO_K8S_BMDP_NAME, "BW5", f"{domain_name}.{app_name}")
113+
print("Checking if new domain card layout is available...")
114+
if self.page.locator(".domains-grid").is_visible():
115+
print("New domain card layout detected.")
116+
domain_card = self.page.locator(".domain-card", has=self.page.locator('.pl-card__header', has_text=domain_name))
117+
if domain_card.is_visible():
118+
domain_card.locator(".pl-card__footer", has_text="Go into Domain").click()
119+
print(f"'{domain_name}' is deployed and checking application instance status.")
120+
app_row = self.page.locator("tr.pl-table__row", has=self.page.locator('td.pl-table__cell', has_text=app_name))
121+
if Util.check_dom_visibility(self.page, app_row.locator("td.pl-table__cell img[src*='/pl-icon-success.svg']"), 5, 120, True):
122+
print(f"'{app_name}' is deployed and checking service instance status.")
123+
ReportYaml.set_capability_app(ENV.TP_AUTO_K8S_BMDP_NAME, "BW5", f"{domain_name}.{app_name}")
124+
ReportYaml.set_capability_app_info(ENV.TP_AUTO_K8S_BMDP_NAME, "BW5", f"{domain_name}.{app_name}", "Status", "Running")
125+
else:
126+
ColorLogger.warning(f"'{app_name}' is not deployed successfully or cannot be discovered by CT in domain '{domain_name}'.")
118127
else:
119-
ColorLogger.warning(f"'{app_name}' is not deployed successfully or cannot be discovered by CT in domain '{domain_name}'.")
120-
service_instance_row = self.page.locator("tr.pl-table__row")
121-
if Util.check_dom_visibility(self.page, service_instance_row.locator("td.pl-table__cell img[src*='/pl-icon-success.svg']"), 5, 120, True):
122-
ColorLogger.success(f"'{app_name}' in domain '{domain_name}' instance is running.")
123-
ReportYaml.set_capability_app_info(ENV.TP_AUTO_K8S_BMDP_NAME, "BW5", f"{domain_name}.{app_name}", "Status", "Running")
124-
else:
125-
ColorLogger.warning(f"'{app_name}' in domain '{domain_name}' instance is not running.")
128+
app_row = self.page.locator("tr.pl-table__row", has=self.page.locator('td.pl-table__cell', has_text=domain_name))
129+
if Util.check_dom_visibility(self.page, app_row.locator("td.pl-table__cell img[src*='/pl-icon-success.svg']"), 5, 120, True):
130+
app_row.locator('td.pl-table__cell .text', has_text=app_name).click()
131+
print(f"'{app_name}' is deployed and checking service instance status.")
132+
ReportYaml.set_capability_app(ENV.TP_AUTO_K8S_BMDP_NAME, "BW5", f"{domain_name}.{app_name}")
133+
else:
134+
ColorLogger.warning(f"'{app_name}' is not deployed successfully or cannot be discovered by CT in domain '{domain_name}'.")
135+
service_instance_row = self.page.locator("tr.pl-table__row")
136+
if Util.check_dom_visibility(self.page, service_instance_row.locator("td.pl-table__cell img[src*='/pl-icon-success.svg']"), 5, 120, True):
137+
ColorLogger.success(f"'{app_name}' in domain '{domain_name}' instance is running.")
138+
ReportYaml.set_capability_app_info(ENV.TP_AUTO_K8S_BMDP_NAME, "BW5", f"{domain_name}.{app_name}", "Status", "Running")
139+
else:
140+
ColorLogger.warning(f"'{app_name}' in domain '{domain_name}' instance is not running.")
126141
# check bw6 application status
127142
if product_name == "BW6":
128143
if Util.check_dom_visibility(self.page, self.page.locator(".pl-card--standard"), 2, 10):
@@ -179,21 +194,25 @@ def dp_config_bw6(self, agent_name):
179194
self.page.fill("#agentUrl-text-input", ENV.TP_AUTO_K8S_BMDP_BW6DM_URL)
180195
print(f"Filled BW6Agent URL: {ENV.TP_AUTO_K8S_BMDP_BW6DM_URL}")
181196
# test connection and register bw6 agent
182-
if Util.check_dom_visibility(self.page, self.page.locator(".pl-button.pl-button--mini.pl-button--secondary"), 2, 10):
183-
self.page.locator(".pl-button.pl-button--mini.pl-button--secondary").click()
197+
if Util.check_dom_visibility(self.page, self.page.locator("button", has_text="Test Connection"), 2, 4):
198+
self.page.locator("button", has_text="Test Connection").click()
184199
print("Clicked 'Test Connection' button")
185-
if Util.check_dom_visibility(self.page, self.page.locator(".test-connection-success"), 2, 10):
200+
if Util.check_dom_visibility(self.page, self.page.locator(".test-connection-success"), 2, 6):
186201
ColorLogger.success("BW6Agent connection is successful.")
187-
self.page.locator(".pcp-mr4").click()
202+
self.page.locator("agent-config-modal button", has_text="Register").click()
188203
print("Clicked 'Register' button")
204+
self.page.wait_for_timeout(3000)
205+
if self.page.locator(".pl-notification__message", has_text="successfully").is_visible():
206+
agent_banner = self.page.locator(".pl-notification__message").inner_text()
207+
ColorLogger.success(agent_banner)
208+
else:
209+
Util.warning_screenshot(f"May failed to register RV domain", self.page, "dp_config_bw6dm.png")
210+
else:
211+
Util.warning_screenshot(f"'{agent_name}' connection test failed.", self.page, "test_connection_bw6agent_error.png")
212+
self.page.locator("agent-config-modal button", has_text="Cancel").click()
189213
else:
190214
Util.exit_error(f"'{agent_name}' is not deployed successfully or cannot be discovered by CT", self.page, "test_connection_bw6agent.png")
191-
self.page.wait_for_timeout(5000)
192-
agent_banner = self.page.locator(".pl-notification__message").inner_text()
193-
if self.page.locator(".pl-notification__message", has_text="successfully").is_visible():
194-
ColorLogger.success(agent_banner)
195-
else:
196-
Util.warning_screenshot(f"May failed to register RV domain due to: {agent_banner}", self.page, "dp_config_bw6dm.png")
215+
197216
else:
198217
ColorLogger.info(f"Domain '{agent_name}' is already registered.")
199218
self.check_domain_status(agent_name, "BW6")

0 commit comments

Comments
 (0)