scottslowe-learning-tools/aws/postman-aws-api/describe-subnets-test.js
Scott Lowe 37640b64e7
Add sample JavaScript tests
Add some sample JavaScript tests for use with Postman API requests

Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
2020-04-10 15:23:15 -06:00

2 lines
139 B
JavaScript

var jsonObject = xml2Json(pm.response.text());
pm.environment.set("SubnetId", jsonObject.DescribeSubnetsResponse.subnetSet.item.subnetId);