JS state mgmt tests (#630)

Signed-off-by: tanvigour <tanvi.gour@gmail.com>
This commit is contained in:
tanvigour 2022-03-29 14:55:14 -04:00 committed by GitHub
parent 2303dab82e
commit 226bdc26ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 54 additions and 19 deletions

View File

@ -166,6 +166,16 @@ jobs:
pushd state_management/python/sdk
make validate
popd
- name: Validate Javascript http state Management
run: |
pushd state_management/javascript/http
make validate
popd
- name: Validate Javascript sdk state Management
run: |
pushd state_management/javascript/sdk
make validate
popd
- name: Linkcheck README.md
run: |
make validate

View File

@ -12,25 +12,33 @@ This quickstart includes one service:
### Run Node service with Dapr
1. Open a new terminal window and navigate to `order-processor` directory:
```bash
cd order-processor
```
2. Install dependencies:
1. Navigate to folder and install dependencies:
<!-- STEP
name: Install Node dependencies
working_dir: ./order-processor
-->
```bash
cd ./order-processor
npm install
```
<!-- END_STEP -->
3. Run the Node service app with Dapr:
2. Run the Node service app with Dapr:
<!-- STEP
name: Run Node publisher
expected_stdout_lines:
- '== APP == Saving Order: [{"key":"1","value":{"orderId":1}}]'
- '== APP == Getting Order: { orderId: 1 }'
- "Exited App successfully"
expected_stderr_lines:
working_dir: ./order-processor
output_match_mode: substring
background: true
sleep: 10
-->
```bash
dapr run --app-id order-processor --components-path ../../../components/ -- npm start
```

View File

@ -0,0 +1,5 @@
DOCKER_IMAGE_PREFIX ?=javascript-http-
APPS ?=order-processor
include ../../../docker.mk
include ../../../validate.mk

View File

@ -16,25 +16,32 @@ This quickstart includes one service:
### Run Node service with Dapr
1. Open a new terminal window and navigate to `order-processor` directory:
```bash
cd order-processor
```
2. Install dependencies:
1. Navigate to folder and install dependencies:
<!-- STEP
name: Install Node dependencies
working_dir: ./order-processor
-->
```bash
cd ./order-processor
npm install
```
<!-- END_STEP -->
2. Run the Node service app with Dapr:
<!-- STEP
name: Run Node publisher
expected_stdout_lines:
- '== APP == Saving Order: { orderId: 10 }'
- "Exited App successfully"
expected_stderr_lines:
working_dir: ./order-processor
output_match_mode: substring
background: true
sleep: 10
-->
3. Run the Node service app with Dapr:
```bash
dapr run --app-id order-processor --components-path ../../../components/ -- npm start
```

View File

@ -0,0 +1,5 @@
DOCKER_IMAGE_PREFIX ?=javascript-sdk-
APPS ?=order-processor
include ../../../docker.mk
include ../../../validate.mk