Azure-Samples / aks-store-demo

Sample microservices app for AKS demos, tutorials, and experiments
MIT License
143 stars 225 forks source link

Wasm rules engine and Playwright tests #100

Closed smurawski closed 7 months ago

smurawski commented 7 months ago

Purpose

Basic end to end playwright tests for the store-admin were added. A wasm rules engine was added to the product service. By default it is disabled. The product service was refactored for extensibility and maintainability. The product service has additional unit tests and integration tests. Error conditions in the product service (get by id and the AI proxy) are handled and return appropriate HTTP errors rather than crashing the service.

Additional documentation on using/extending the wasm rules engine will be in a future PR.

Does this introduce a breaking change?

[ ] Yes
[X] No

Pull Request Type

What kind of change does this Pull Request introduce?

[X] Bugfix
[X] Feature
[ ] Code style update (formatting, local variables)
[X] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install

What to Check

Verify that the following are valid

Other Information