mirror of https://github.com/dapr/quickstarts.git
JS state mgmt tests (#630)
Signed-off-by: tanvigour <tanvi.gour@gmail.com>
This commit is contained in:
parent
2303dab82e
commit
226bdc26ff
|
@ -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
|
||||
|
|
|
@ -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
|
||||
```
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
DOCKER_IMAGE_PREFIX ?=javascript-http-
|
||||
APPS ?=order-processor
|
||||
|
||||
include ../../../docker.mk
|
||||
include ../../../validate.mk
|
|
@ -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
|
||||
```
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
DOCKER_IMAGE_PREFIX ?=javascript-sdk-
|
||||
APPS ?=order-processor
|
||||
|
||||
include ../../../docker.mk
|
||||
include ../../../validate.mk
|
Loading…
Reference in New Issue