Skip to content

Commit a199ca3

Browse files
fix ci
1 parent def8830 commit a199ca3

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.ci/tests/integration-oauth2/cases/global-and-namespaced-config-without-auto-update/verify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ if [ $? -ne 0 ]; then
8181
fi
8282

8383
# update the namespaced config, it should not trigger the reconcile since the autoUpdate is false
84-
kubectl patch BackendConfig backend-config --type='json' -p='[{"op": "replace", "path": "/spec/env/shared1", "value": "newvalue"}]'
84+
kubectl patch BackendConfig backend-config --type='json' -p='[{"op": "replace", "path": "/spec/env/shared1", "value": "newvalue"}]' > /dev/null 2>&1
8585
sleep 30
8686

8787
verify_env_result=$(ci::verify_env "test-datagen-source-source-0" shared1 shared1=fromnamespace 2>&1)

.ci/tests/integration-oauth2/e2e_with_downloader.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ setup:
101101
resource: pod
102102
label-selector: app.kubernetes.io/name=function-mesh-operator
103103
for: condition=Ready
104+
104105
- name: apply global env config map
105106
command: |
106107
kubectl create -n ${FUNCTION_MESH_NAMESPACE} -f .ci/clusters/global_backend_config.yaml

.ci/tests/integration/cases/global-and-namespaced-config/verify.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ if [ $? -ne 0 ]; then
9292
fi
9393

9494
# update the namespaced config, it should trigger the reconcile since the autoUpdate is true
95-
kubectl patch BackendConfig backend-config --type='json' -p='[{"op": "replace", "path": "/spec/env/shared1", "value": "newvalue"}]'
95+
kubectl patch BackendConfig backend-config --type='json' -p='[{"op": "replace", "path": "/spec/env/shared1", "value": "newvalue"}]' > /dev/null 2>&1
9696
sleep 30
9797

9898
verify_env_result=$(ci::verify_env "function-sample-env-function-0" shared1 shared1=newvalue 2>&1)
@@ -104,7 +104,7 @@ if [ $? -ne 0 ]; then
104104
fi
105105

106106
# the liveness probe should also be updated
107-
kubectl patch BackendConfig backend-config --type='json' -p='[{"op": "replace", "path": "/spec/pod/liveness/initialDelaySeconds", "value": 20}]'
107+
kubectl patch BackendConfig backend-config --type='json' -p='[{"op": "replace", "path": "/spec/pod/liveness/initialDelaySeconds", "value": 20}]' > /dev/null 2>&1
108108
sleep 30
109109

110110
verify_liveness_result=$(ci::verify_liveness_probe function-sample-env-function-0 '{"failureThreshold":3,"httpGet":{"path":"/","port":9094,"scheme":"HTTP"},"initialDelaySeconds":20,"periodSeconds":10,"successThreshold":1,"timeoutSeconds":10}' 2>&1)

0 commit comments

Comments
 (0)