|
1 | 1 | #!/bin/bash |
2 | 2 |
|
3 | 3 | # |
4 | | -# Copyright (c) 2022, 2023, Oracle and/or its affiliates. |
| 4 | +# Copyright (c) 2022, 2025, Oracle and/or its affiliates. |
5 | 5 | # Licensed under the Universal Permissive License v 1.0 as shown at |
6 | 6 | # https://oss.oracle.com/licenses/upl. |
7 | 7 | # |
@@ -30,21 +30,45 @@ if [ -z "${PROFILE_STR}" ] ; then |
30 | 30 | exit 1 |
31 | 31 | fi |
32 | 32 |
|
33 | | -echo "Coherence CE 22.06.11" |
34 | | -COHERENCE_CLIENT_REQUEST_TIMEOUT=180.0 \ |
35 | | - COHERENCE_VERSION=$COH_VER \ |
36 | | - COHERENCE_BASE_IMAGE=$BASE_IMAGE \ |
37 | | - PROFILES=$PROFILE_STR \ |
38 | | - make clean test-cluster-shutdown remove-app-images build-test-images test-cluster-startup just-wait test |
39 | | - |
40 | | -echo "Coherence CE 22.06.11 with SSL" |
41 | | -RUN_SECURE=true COHERENCE_IGNORE_INVALID_CERTS=true \ |
42 | | - COHERENCE_TLS_CERTS_PATH=$(pwd)/tests/utils/certs/guardians-ca.crt \ |
43 | | - COHERENCE_TLS_CLIENT_CERT=$(pwd)/tests/utils/certs/star-lord.crt \ |
44 | | - COHERENCE_TLS_CLIENT_KEY=$(pwd)/tests/utils/certs/star-lord.pem \ |
| 33 | +if [[ "${COH_VER}" =~ "22.06" ]] ; then |
| 34 | + echo "Coherence CE ${COH_VER}" |
45 | 35 | COHERENCE_CLIENT_REQUEST_TIMEOUT=180.0 \ |
46 | | - COHERENCE_VERSION=$COH_VER \ |
47 | | - COHERENCE_BASE_IMAGE=$BASE_IMAGE \ |
48 | | - PROFILES=$PROFILE_STR,secure \ |
49 | | - make clean certs test-cluster-shutdown remove-app-images \ |
50 | | - build-test-images test-cluster-startup just-wait test |
| 36 | + COHERENCE_VERSION=$COH_VER \ |
| 37 | + COHERENCE_BASE_IMAGE=$BASE_IMAGE \ |
| 38 | + PROFILES=$PROFILE_STR \ |
| 39 | + make clean test-cluster-shutdown remove-app-images build-test-images test-cluster-startup just-wait test |
| 40 | +else |
| 41 | + echo "Coherence CE ${COH_VER}" |
| 42 | + COHERENCE_CLIENT_REQUEST_TIMEOUT=180.0 \ |
| 43 | + COHERENCE_VERSION=$COH_VER \ |
| 44 | + COHERENCE_BASE_IMAGE=$BASE_IMAGE \ |
| 45 | + PROFILES=$PROFILE_STR \ |
| 46 | + make clean test-cluster-shutdown remove-app-images build-test-images test-cluster-startup just-wait test-with-ai |
| 47 | +fi |
| 48 | + |
| 49 | +# Run tests with SSL |
| 50 | +if [[ "${COH_VER}" =~ "22.06" ]] ; then |
| 51 | + echo "Coherence CE ${COH_VER} with SSL" |
| 52 | + RUN_SECURE=true COHERENCE_IGNORE_INVALID_CERTS=true \ |
| 53 | + COHERENCE_TLS_CERTS_PATH=$(pwd)/tests/utils/certs/guardians-ca.crt \ |
| 54 | + COHERENCE_TLS_CLIENT_CERT=$(pwd)/tests/utils/certs/star-lord.crt \ |
| 55 | + COHERENCE_TLS_CLIENT_KEY=$(pwd)/tests/utils/certs/star-lord.pem \ |
| 56 | + COHERENCE_CLIENT_REQUEST_TIMEOUT=180.0 \ |
| 57 | + COHERENCE_VERSION=$COH_VER \ |
| 58 | + COHERENCE_BASE_IMAGE=$BASE_IMAGE \ |
| 59 | + PROFILES=$PROFILE_STR,secure \ |
| 60 | + make clean certs test-cluster-shutdown remove-app-images \ |
| 61 | + build-test-images test-cluster-startup just-wait test |
| 62 | +else |
| 63 | + echo "Coherence CE ${COH_VER} with SSL" |
| 64 | + RUN_SECURE=true COHERENCE_IGNORE_INVALID_CERTS=true \ |
| 65 | + COHERENCE_TLS_CERTS_PATH=$(pwd)/tests/utils/certs/guardians-ca.crt \ |
| 66 | + COHERENCE_TLS_CLIENT_CERT=$(pwd)/tests/utils/certs/star-lord.crt \ |
| 67 | + COHERENCE_TLS_CLIENT_KEY=$(pwd)/tests/utils/certs/star-lord.pem \ |
| 68 | + COHERENCE_CLIENT_REQUEST_TIMEOUT=180.0 \ |
| 69 | + COHERENCE_VERSION=$COH_VER \ |
| 70 | + COHERENCE_BASE_IMAGE=$BASE_IMAGE \ |
| 71 | + PROFILES=$PROFILE_STR,secure \ |
| 72 | + make clean certs test-cluster-shutdown remove-app-images \ |
| 73 | + build-test-images test-cluster-startup just-wait test-with-ai |
| 74 | +fi |
0 commit comments