diff options
author | bhoopender.singh@t-systems.com <bhoopender.singh@t-systems.com> | 2025-01-19 21:56:17 +0100 |
---|---|---|
committer | Bhoopender singh <bhoopender.singh@t-systems.com> | 2025-01-20 11:00:47 +0000 |
commit | 7529a63846644ae84d33b8c0588f24fb258f27d5 (patch) | |
tree | 93384362a0c2b8f057254a66bc0b5a06352ed3d4 /integration-tests/catalog-be-resources/ready-probe.sh | |
parent | 1ae1d02db27d1971162d162468614fec8017ce69 (diff) |
Chef removal for catalog-be module.
- Removal of Chef recipes in the module.
- Introduction of shell scripts in the module to replace some recipes.
- Generation of module configuration using Charts.
- Introduction of config files in integration tests to simulate files generated by Charts in the module.
Issue-ID: SDC-4697
Change-Id: Ib7e1e3432437d1857403dfb5d16dd95187934129
Signed-off-by: bhoopender.singh@t-systems.com <bhoopender.singh@t-systems.com>
Diffstat (limited to 'integration-tests/catalog-be-resources/ready-probe.sh')
-rw-r--r-- | integration-tests/catalog-be-resources/ready-probe.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/integration-tests/catalog-be-resources/ready-probe.sh b/integration-tests/catalog-be-resources/ready-probe.sh new file mode 100644 index 0000000000..bb730ab272 --- /dev/null +++ b/integration-tests/catalog-be-resources/ready-probe.sh @@ -0,0 +1,9 @@ +#!/bin/sh +health_check_http_code=$(curl -k --max-time 5 -o /dev/null -w '%{http_code}' http://127.0.0.1:8080/sdc2/rest/healthCheck) + +if [ "$health_check_http_code" -eq 200 ]; then + exit 0 +else + echo "Health check http status: $health_check_http_code" + exit 1 +fi |