You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: kubernetes/samples/scripts/create-weblogic-domain/wdt-artifacts/archives/archive-v1/wlsdeploy/applications/myapp-v1/myapp_war/index.jsp
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
-
<%-- Copyright (c) 2019, 2023, Oracle and/or its affiliates. --%>
1
+
<%-- Copyright (c) 2019, 2024, Oracle and/or its affiliates. --%>
2
2
<%-- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. --%>
Copy file name to clipboardExpand all lines: kubernetes/samples/scripts/create-weblogic-domain/wdt-artifacts/archives/archive-v2/wlsdeploy/applications/myapp-v1/myapp_war/index.jsp
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
-
<%-- Copyright (c) 2019, 2023, Oracle and/or its affiliates. --%>
1
+
<%-- Copyright (c) 2019, 2024, Oracle and/or its affiliates. --%>
2
2
<%-- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. --%>
Copy file name to clipboardExpand all lines: kubernetes/samples/scripts/create-weblogic-domain/wdt-artifacts/archives/archive-v2/wlsdeploy/applications/myapp-v2/myapp_war/index.jsp
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
-
<%-- Copyright (c) 2019, 2023, Oracle and/or its affiliates. --%>
1
+
<%-- Copyright (c) 2019, 2024, Oracle and/or its affiliates. --%>
2
2
<%-- Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl. --%>
echo"@@ Info: Obtaining traefik nodeport by calling:"
@@ -116,8 +136,11 @@ EOF
116
136
return 1
117
137
fi
118
138
fi
119
-
local command="$(get_curl_command ${DOMAIN_UID:-sample-domain1}-cluster-$2) http://$(get_kube_address):${traefik_nodeport}/myapp_war/index.jsp"
120
-
139
+
if [ "$KIND_CLUSTER"="true" ];then
140
+
local command="$(get_curl_command ${DOMAIN_UID:-sample-domain1}-cluster-$2) http://$(get_kube_address):${traefik_nodeport}/myapp-$3/myapp_war/index.jsp"
141
+
else
142
+
local command="$(get_curl_command ${DOMAIN_UID:-sample-domain1}-cluster-$2) http://$(get_kube_address):${traefik_nodeport}/myapp_war/index.jsp"
143
+
fi
121
144
elif [ "$1"="OKD" ];then
122
145
echo"In testapp OKD case"
123
146
local command="$(get_curl_command ${DOMAIN_UID:-sample-domain1}-cluster-$2) http://${ROUTE_HOST}/myapp_war/index.jsp"
@@ -129,8 +152,11 @@ EOF
129
152
130
153
fi
131
154
132
-
133
-
local outstr="@@ Info: Searching for '$3' in '$1' mode curl app invoke of cluster '$2' using '$command', "
155
+
if [ "$KIND_CLUSTER"="true" ];then
156
+
local outstr="@@ Info: Searching for '$4' in '$1' mode curl app invoke of cluster '$2' using '$command', "
157
+
else
158
+
local outstr="@@ Info: Searching for '$3' in '$1' mode curl app invoke of cluster '$2' using '$command', "
159
+
fi
134
160
if [ $quiet='false' ];then
135
161
echo -n "${outstr} output file '$target_file'."
136
162
else
@@ -146,14 +172,21 @@ EOF
146
172
# use "cat & sed" instead of "grep" as grep exits with an error when it doesn't find anything
147
173
148
174
local before=$(cat $target_file)
149
-
local after=$(cat $target_file| sed "s/$3/ADIFFERENTVALUE/g")
150
-
175
+
if [ "$KIND_CLUSTER"="true" ];then
176
+
local after=$(cat $target_file| sed "s/$4/ADIFFERENTVALUE/g")
177
+
else
178
+
local after=$(cat $target_file| sed "s/$3/ADIFFERENTVALUE/g")
179
+
fi
151
180
if [ "$before"="$after" ];then
152
181
153
182
num_tries=$((num_tries +1))
154
183
if [ $num_tries-gt$max_tries ];then
155
184
echo
156
-
echo"@@ Error: '$3' not found in app response for command '$command' after try number '$num_tries'. Total seconds=$((SECONDS-start_secs)). Contents of response file '$target_file':"
185
+
if [ "$KIND_CLUSTER"="true" ];then
186
+
echo"@@ Error: '$4' not found in app response for command '$command' after try number '$num_tries'. Total seconds=$((SECONDS-start_secs)). Contents of response file '$target_file':"
187
+
else
188
+
echo"@@ Error: '$3' not found in app response for command '$command' after try number '$num_tries'. Total seconds=$((SECONDS-start_secs)). Contents of response file '$target_file':"
0 commit comments