diff --git a/aws/postman-aws-api/describe-azs-test.js b/aws/postman-aws-api/describe-azs-test.js new file mode 100644 index 0000000..271a673 --- /dev/null +++ b/aws/postman-aws-api/describe-azs-test.js @@ -0,0 +1,2 @@ +var jsonObject = xml2Json(pm.response.text()); +pm.environment.set("firstAz", jsonObject.DescribeAvailabilityZonesResponse.availabilityZoneInfo.item[0].zoneName); diff --git a/aws/postman-aws-api/describe-images-test.js b/aws/postman-aws-api/describe-images-test.js new file mode 100644 index 0000000..c1e2cbd --- /dev/null +++ b/aws/postman-aws-api/describe-images-test.js @@ -0,0 +1,2 @@ +var jsonObject = xml2Json(pm.response.text()); +pm.environment.set("imageId", jsonObject.DescribeImagesResponse.imagesSet.item.imageId); diff --git a/aws/postman-aws-api/describe-key-pairs-test.js b/aws/postman-aws-api/describe-key-pairs-test.js new file mode 100644 index 0000000..4e7a5f7 --- /dev/null +++ b/aws/postman-aws-api/describe-key-pairs-test.js @@ -0,0 +1,2 @@ +var jsonObject = xml2Json(pm.response.text()); +pm.environment.set("sshKeyName", jsonObject.DescribeKeyPairsResponse.keySet.item[0].keyName); diff --git a/aws/postman-aws-api/describe-subnets-test.js b/aws/postman-aws-api/describe-subnets-test.js new file mode 100644 index 0000000..533004b --- /dev/null +++ b/aws/postman-aws-api/describe-subnets-test.js @@ -0,0 +1,2 @@ +var jsonObject = xml2Json(pm.response.text()); +pm.environment.set("SubnetId", jsonObject.DescribeSubnetsResponse.subnetSet.item.subnetId); diff --git a/aws/postman-aws-api/describe-vpcs-test.js b/aws/postman-aws-api/describe-vpcs-test.js new file mode 100644 index 0000000..72e6a00 --- /dev/null +++ b/aws/postman-aws-api/describe-vpcs-test.js @@ -0,0 +1,2 @@ +var jsonObject = xml2Json(pm.response.text()); +pm.environment.set("defaultVpcId", jsonObject.DescribeVpcsResponse.vpcSet.item.vpcId);