Skip to content

Commit 0affc3d

Browse files
committed
Merge branch 'xc-117283' into 'main'
fix wko-nightly ItWlsMiiSample and ItWlsMIiLegacySample test failure See merge request weblogic-cloud/weblogic-kubernetes-operator!4657
2 parents 4a74e58 + 37c3cd2 commit 0affc3d

File tree

2 files changed

+10
-36
lines changed

2 files changed

+10
-36
lines changed

operator/integration-tests/model-in-image/run-test.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -422,9 +422,6 @@ if [ "$DO_INITIAL_MAIN" = "true" ]; then
422422
diefast # (cheat to speedup a subsequent roll/shutdown)
423423
if [ "$OKD" = "true" ]; then
424424
testapp OKD cluster-1 "Hello World!"
425-
elif [ "$KIND_CLUSTER" = "true" ]; then
426-
testapp internal cluster-1 v1 "Hello World!"
427-
testapp traefik cluster-1 v1 "Hello World!"
428425
else
429426
testapp internal cluster-1 "Hello World!"
430427
testapp traefik cluster-1 "Hello World!"

operator/integration-tests/model-in-image/util-misc.sh

Lines changed: 10 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -80,17 +80,10 @@ get_curl_command() {
8080
# with an URL that has the cluster service name
8181
# "traefik" invokes curl locally using the traefik node port
8282
# $2 cluster-1 or cluster-2
83-
# if k8s cluster is KIND cluster:
84-
# $3 appversion
85-
# $4 search string expected in curl output
86-
# $5 quiet mode: 'true' or 'false' (anything not 'false' is treated as true)
87-
# $6 max retries (default 15)
88-
# For example, 'testapp internal cluster-1 v1 "Hello World!"'.
89-
# else
90-
# $3 search string expected in curl output
91-
# $4 quiet mode: 'true' or 'false' (anything not 'false' is treated as true)
92-
# $5 max retries (default 15)
93-
# For example, 'testapp internal cluster-1 "Hello World!"'.
83+
# $3 search string expected in curl output
84+
# $4 max retries (default 15)
85+
# $5 quiet mode: 'true' or 'false' (anything not 'false' is treated as true)
86+
# For example, 'testapp internal cluster-1 "Hello World!"'.
9487

9588
testapp() {
9689

@@ -99,13 +92,9 @@ testapp() {
9992

10093
local num_tries=0
10194
local traefik_nodeport=''
102-
if [ "$KIND_CLUSTER" = "true" ]; then
103-
local max_tries="${5:-15}"
104-
local quiet="${6:-false}"
105-
else
106-
local max_tries="${4:-15}"
107-
local quiet="${5:-false}"
108-
fi
95+
local max_tries="${4:-15}"
96+
local quiet="${5:-false}"
97+
10998
local target_file_prefix="$WORKDIR/test-out/$PPID.$(printf "%3.3u" ${COMMAND_OUTFILE_COUNT:-0})"
11099
local target_file=${target_file_prefix}.$(timestamp).testapp.curl.$1.$((num_tries + 1)).out
111100
local start_secs=$SECONDS
@@ -119,11 +108,7 @@ testapp() {
119108
local cluster_service_name=$(get_service_name $domain_uid-cluster-$2)
120109
local admin_service_name=$(get_service_name $domain_uid-admin-server)
121110
local ns=${DOMAIN_NAMESPACE:-sample-domain1-ns}
122-
if [ "$KIND_CLUSTER" = "true" ]; then
123-
local command="${KUBERNETES_CLI:-kubectl} exec -n $ns $admin_service_name -- bash -c \"curl -s -S $(curl_timeout_parms) http://$cluster_service_name:8001/myapp-$3/myapp_war/index.jsp\""
124-
else
125-
local command="${KUBERNETES_CLI:-kubectl} exec -n $ns $admin_service_name -- bash -c \"curl -s -S $(curl_timeout_parms) http://$cluster_service_name:8001/myapp_war/index.jsp\""
126-
fi
111+
local command="${KUBERNETES_CLI:-kubectl} exec -n $ns $admin_service_name -- bash -c \"curl -s -S $(curl_timeout_parms) http://$cluster_service_name:8001/myapp_war/index.jsp\""
127112
elif [ "$1" = "traefik" ]; then
128113
if [ "$KIND_CLUSTER" = "true" ] && [ "$WLSIMG_BUILDER" != "$WLSIMG_BUILDER_DEFAULT" ]; then
129114
traefik_nodeport=${TRAEFIK_INGRESS_HTTP_HOSTPORT:-2080}
@@ -138,11 +123,7 @@ EOF
138123
return 1
139124
fi
140125
fi
141-
if [ "$KIND_CLUSTER" = "true" ]; then
142-
local command="$(get_curl_command ${DOMAIN_UID:-sample-domain1}-cluster-$2) http://$(get_kube_address):${traefik_nodeport}/myapp-$3/myapp_war/index.jsp"
143-
else
144-
local command="$(get_curl_command ${DOMAIN_UID:-sample-domain1}-cluster-$2) http://$(get_kube_address):${traefik_nodeport}/myapp_war/index.jsp"
145-
fi
126+
local command="$(get_curl_command ${DOMAIN_UID:-sample-domain1}-cluster-$2) http://$(get_kube_address):${traefik_nodeport}/myapp_war/index.jsp"
146127
elif [ "$1" = "OKD" ]; then
147128
echo "In testapp OKD case"
148129
local command="$(get_curl_command ${DOMAIN_UID:-sample-domain1}-cluster-$2) http://${ROUTE_HOST}/myapp_war/index.jsp"
@@ -154,11 +135,7 @@ EOF
154135

155136
fi
156137

157-
if [ "$KIND_CLUSTER" = "true" ]; then
158-
local outstr="@@ Info: Searching for '$4' in '$1' mode curl app invoke of cluster '$2' using '$command', "
159-
else
160-
local outstr="@@ Info: Searching for '$3' in '$1' mode curl app invoke of cluster '$2' using '$command', "
161-
fi
138+
local outstr="@@ Info: Searching for '$3' in '$1' mode curl app invoke of cluster '$2' using '$command', "
162139
if [ $quiet = 'false' ]; then
163140
echo -n "${outstr} output file '$target_file'."
164141
else

0 commit comments

Comments
 (0)