Section VI - testing the service
If you are not seeing the correct results when calling the services, double check that you are running all the services from the same relative path, (e.g.: cargo run
vs ./target/debug/...
)
The WORKSPACE_LOCAL_STORAGE variable is relative (./workshop_storage
) and therefore depends on where you are running the executable.
Step 1 - Checking the services
Let's first make sure all our services are running and restart our order clothing service.
In a new terminal, run the following command:
In another terminal, let's run the sourcing script.
You should see all the services printing to the console about the data they have touched.
Sourcing RESTful service
Genesis service
Order Clothing service
Step 2 - Checking the data storage
There should now be a new directory int he environment
directory named workshop_storage
. Inside the workshop_storage
directory should be a clothing-leather_jacket.json
file. This is where the aggregated records is stored.
If we look at the clothing-leater_jacket.json
the JSON document should look something like this:
Last updated
Was this helpful?