azure-cli: replace Utils::JSON with corelib JSON.

Closes #7101.

Signed-off-by: William Woodruff <william@tuffbizz.com>
This commit is contained in:
William Woodruff 2016-11-20 14:00:44 -05:00
parent 13695dc90a
commit ac0ae7a850
No known key found for this signature in database
GPG key ID: 85AE00C504833B3C

View file

@ -28,7 +28,7 @@ class AzureCli < Formula
test do
shell_output("#{bin}/azure telemetry --disable")
json_text = shell_output("#{bin}/azure account env show AzureCloud --json")
azure_cloud = Utils::JSON.load(json_text)
azure_cloud = JSON.parse(json_text)
assert_equal azure_cloud["name"], "AzureCloud"
assert_equal azure_cloud["managementEndpointUrl"], "https://management.core.windows.net"
assert_equal azure_cloud["resourceManagerEndpointUrl"], "https://management.azure.com/"