Connect with experts and peers to elevate technical expertise, solve problems and share insights
The script validate-odm.sh is now available for you to perform a minimal acceptance validation of ODM automatically.This can be used to validate custom images of ODM or an ODM instance deployed on a kubernetes cluster using the odm helm chart.
The script configuration requires environment variables defining the ODM endpoints and authentication parameters to use.It accepts basic and OpenID authentication methods.This bash script executes curl commands on the Rest API of the components to validate the following scenario:
curl
You need the following ODM components to be running: Decision Center (DC), Decision Server Console (RES) and Decision Server Runtime (DSR).Take a note of the endpoints of your components.
$ wget https://github.com/DecisionsDev/odm-ondocker/releases/latest/download/validate-odm-script.zip $ unzip validate-odm-script.zip $ cd validate-odm
.env.template
$ mv .env.template .env $ vi .env
./validate-odm.sh 📥 Upload Decision Service to DC: COMPLETED 🧪 Running Main Scoring test suite in DC ... ▪ Wait for Main Scoring test suite to be completed in DC: DONE ▪ Test report status in DC: SUCCEEDED 🚀 Deploy RuleApp test_deployment/1.0 to DC: COMPLETED 🔎 Verifying test_deployment RuleApp deployment ... ▪ Get RuleApp test_deployment/1.0 in RES: DONE ▪ Verify last RuleSet deployed test_deployment/1.0/loan_validation_production/1.0 in RES: SUCCEEDED ▪ Verify last RuleSet deployed test_deployment/1.0/loan_validation_with_score_and_grade/1.0 in RES: SUCCEEDED 🚀 Deploy RuleApp production_deployment/1.0 to DC: COMPLETED 🔎 Verifying test_deployment RuleApp deployment ... ▪ Get RuleApp production_deployment/1.0 in RES: DONE ▪ Verify last RuleSet deployed production_deployment/1.0/loan_validation_production/1.0 in RES: SUCCEEDED 🧪 Running RuleSet test ... ▪ Test RuleSet production_deployment/1.0/loan_validation_production/1.0 in DSR: COMPLETED ▪ Check RuleSet test result in DSR: SUCCEEDED 🎉 ODM has been successfully validated!
Note: To be able to see the emojis, a font like fonts-noto-color-emoji should be installed in your terminal.
fonts-noto-color-emoji
The script requires the following environment variables to be defined either manually or in a .env file:
.env
DC_URL
RES_URL
DSR_URL
Note: Endpoint corresponds to the service URL or the route URL without the context route of the application.
ODM_CREDS
<user>:<password>
<clientId>:<clientSecret>
OPENID_URL
You can use the option -c to delete the created RuleApps in Decision Server Console at the end of the validation process.
-c
Copy