{"action":"created","comment":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/comments/63577107","id":63577107,"diff_hunk":"@@ -0,0 +1,402 @@\n+'use strict';\n+\n+/**\n+ * Copyright (c) Microsoft.  All rights reserved.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *   http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+/// <reference path=\"../../../../typings/main.d.ts\" />\n+\n+var should = require('should');\n+\n+var path = require('path');\n+var util = require('util');\n+var fs = require('fs');\n+\n+var CLITest = require('../../../framework/arm-cli-test');\n+var testUtil = require('../../../util/util');\n+var utils = require('../../../../lib/util/utils');\n+\n+var testprefix = 'arm-cli-server-management-tests';\n+\n+var requiredEnvironment = [{\n+  requiresToken: true\n+}, {\n+  name: 'AZURE_ARM_SMT_TEST_LOCATION',\n+  defaultValue: 'centralus'\n+}, {\n+  name: 'AZURE_ARM_SMT_TEST_RESOURCE_GROUP',\n+  defaultValue: 'sdktest'\n+}, {\n+  name: 'AZURE_ARM_SMT_GATEWAY_PREFIX',\n+  defaultValue: 'sdk_test'\n+}, {\n+  name: 'AZURE_ARM_SMT_NODE_PREFIX',\n+  defaultValue: 'sdk_test_node'\n+}, {\n+  name: 'AZURE_ARM_SMT_NODE_USERNAME',\n+  defaultValue: 'gsAdmin'\n+}, {\n+  name: 'AZURE_ARM_SMT_NODE_PASSWORD',\n+  defaultValue: 'S0meP@sswerd!'\n+}];\n+\n+var resourceGroupName;\n+var location;\n+var gateways = [];\n+var nodes = [];\n+var sessions = [];\n+\n+function log(text) {\n+  // rem uncomment this for interactive testing.\n+  // console.log(text);\n+}\n+\n+function dump(obj) {\n+  log('');\n+  log(util.inspect(obj, false, 2));\n+}\n+\n+describe('arm', function() {\n+\n+  describe('servermanagement', function() {\n+    var suite;\n+    var testVault;\n+\n+    before(function(done) {\n+      suite = new CLITest(this, testprefix, requiredEnvironment);\n+\n+      // for interactive debugging\n+      suite._execute = suite.execute;","path":"test/commands/arm/servermanagement/arm.servermanagement-crud-tests.js","position":80,"original_position":80,"commit_id":"0cb67e90a9650f122a069f5822862319eaa15ffd","original_commit_id":"0cb67e90a9650f122a069f5822862319eaa15ffd","user":{"login":"amarzavery","id":4521223,"avatar_url":"https://avatars.githubusercontent.com/u/4521223?v=3","gravatar_id":"","url":"https://api.github.com/users/amarzavery","html_url":"https://github.com/amarzavery","followers_url":"https://api.github.com/users/amarzavery/followers","following_url":"https://api.github.com/users/amarzavery/following{/other_user}","gists_url":"https://api.github.com/users/amarzavery/gists{/gist_id}","starred_url":"https://api.github.com/users/amarzavery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amarzavery/subscriptions","organizations_url":"https://api.github.com/users/amarzavery/orgs","repos_url":"https://api.github.com/users/amarzavery/repos","events_url":"https://api.github.com/users/amarzavery/events{/privacy}","received_events_url":"https://api.github.com/users/amarzavery/received_events","type":"User","site_admin":false},"body":"you dont need this. The time stamped Test logs for every run are present in the tests/outputput folder which gives you all the info","created_at":"2016-05-17T18:25:17Z","updated_at":"2016-05-17T18:25:17Z","html_url":"https://github.com/Azure/azure-xplat-cli/pull/2872#discussion_r63577107","pull_request_url":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/2872","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/comments/63577107"},"html":{"href":"https://github.com/Azure/azure-xplat-cli/pull/2872#discussion_r63577107"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/2872"}}},"pull_request":{"url":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/2872","id":69745381,"html_url":"https://github.com/Azure/azure-xplat-cli/pull/2872","diff_url":"https://github.com/Azure/azure-xplat-cli/pull/2872.diff","patch_url":"https://github.com/Azure/azure-xplat-cli/pull/2872.patch","issue_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2872","number":2872,"state":"open","locked":false,"title":"[Initial review] xplat commands for Server Management Tools","user":{"login":"fearthecowboy","id":133736,"avatar_url":"https://avatars.githubusercontent.com/u/133736?v=3","gravatar_id":"","url":"https://api.github.com/users/fearthecowboy","html_url":"https://github.com/fearthecowboy","followers_url":"https://api.github.com/users/fearthecowboy/followers","following_url":"https://api.github.com/users/fearthecowboy/following{/other_user}","gists_url":"https://api.github.com/users/fearthecowboy/gists{/gist_id}","starred_url":"https://api.github.com/users/fearthecowboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fearthecowboy/subscriptions","organizations_url":"https://api.github.com/users/fearthecowboy/orgs","repos_url":"https://api.github.com/users/fearthecowboy/repos","events_url":"https://api.github.com/users/fearthecowboy/events{/privacy}","received_events_url":"https://api.github.com/users/fearthecowboy/received_events","type":"User","site_admin":false},"body":"The content to be added to Changelog is as follows:\r\n* \r\n* \r\n* ","created_at":"2016-05-11T21:27:17Z","updated_at":"2016-05-17T18:25:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3487aebb929200d488912606b0b1703dc1add0d3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/2872/commits","review_comments_url":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/2872/comments","review_comment_url":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2872/comments","statuses_url":"https://api.github.com/repos/Azure/azure-xplat-cli/statuses/0cb67e90a9650f122a069f5822862319eaa15ffd","head":{"label":"fearthecowboy:dev","ref":"dev","sha":"0cb67e90a9650f122a069f5822862319eaa15ffd","user":{"login":"fearthecowboy","id":133736,"avatar_url":"https://avatars.githubusercontent.com/u/133736?v=3","gravatar_id":"","url":"https://api.github.com/users/fearthecowboy","html_url":"https://github.com/fearthecowboy","followers_url":"https://api.github.com/users/fearthecowboy/followers","following_url":"https://api.github.com/users/fearthecowboy/following{/other_user}","gists_url":"https://api.github.com/users/fearthecowboy/gists{/gist_id}","starred_url":"https://api.github.com/users/fearthecowboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fearthecowboy/subscriptions","organizations_url":"https://api.github.com/users/fearthecowboy/orgs","repos_url":"https://api.github.com/users/fearthecowboy/repos","events_url":"https://api.github.com/users/fearthecowboy/events{/privacy}","received_events_url":"https://api.github.com/users/fearthecowboy/received_events","type":"User","site_admin":false},"repo":{"id":54906674,"name":"azure-xplat-cli","full_name":"fearthecowboy/azure-xplat-cli","owner":{"login":"fearthecowboy","id":133736,"avatar_url":"https://avatars.githubusercontent.com/u/133736?v=3","gravatar_id":"","url":"https://api.github.com/users/fearthecowboy","html_url":"https://github.com/fearthecowboy","followers_url":"https://api.github.com/users/fearthecowboy/followers","following_url":"https://api.github.com/users/fearthecowboy/following{/other_user}","gists_url":"https://api.github.com/users/fearthecowboy/gists{/gist_id}","starred_url":"https://api.github.com/users/fearthecowboy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fearthecowboy/subscriptions","organizations_url":"https://api.github.com/users/fearthecowboy/orgs","repos_url":"https://api.github.com/users/fearthecowboy/repos","events_url":"https://api.github.com/users/fearthecowboy/events{/privacy}","received_events_url":"https://api.github.com/users/fearthecowboy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fearthecowboy/azure-xplat-cli","description":"Microsoft Azure Cross Platform Command Line","fork":true,"url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli","forks_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/forks","keys_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/teams","hooks_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/hooks","issue_events_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/issues/events{/number}","events_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/events","assignees_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/assignees{/user}","branches_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/branches{/branch}","tags_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/tags","blobs_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/languages","stargazers_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/stargazers","contributors_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/contributors","subscribers_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/subscribers","subscription_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/subscription","commits_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/contents/{+path}","compare_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/merges","archive_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/downloads","issues_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/issues{/number}","pulls_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/labels{/name}","releases_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/releases{/id}","deployments_url":"https://api.github.com/repos/fearthecowboy/azure-xplat-cli/deployments","created_at":"2016-03-28T16:38:15Z","updated_at":"2016-03-28T16:38:22Z","pushed_at":"2016-05-17T16:45:46Z","git_url":"git://github.com/fearthecowboy/azure-xplat-cli.git","ssh_url":"git@github.com:fearthecowboy/azure-xplat-cli.git","clone_url":"https://github.com/fearthecowboy/azure-xplat-cli.git","svn_url":"https://github.com/fearthecowboy/azure-xplat-cli","homepage":"","size":77063,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"dev"}},"base":{"label":"Azure:dev","ref":"dev","sha":"a292e474e584eba79d31b7fbe9f83965f69e933c","user":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"repo":{"id":6506651,"name":"azure-xplat-cli","full_name":"Azure/azure-xplat-cli","owner":{"login":"Azure","id":6844498,"avatar_url":"https://avatars.githubusercontent.com/u/6844498?v=3","gravatar_id":"","url":"https://api.github.com/users/Azure","html_url":"https://github.com/Azure","followers_url":"https://api.github.com/users/Azure/followers","following_url":"https://api.github.com/users/Azure/following{/other_user}","gists_url":"https://api.github.com/users/Azure/gists{/gist_id}","starred_url":"https://api.github.com/users/Azure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Azure/subscriptions","organizations_url":"https://api.github.com/users/Azure/orgs","repos_url":"https://api.github.com/users/Azure/repos","events_url":"https://api.github.com/users/Azure/events{/privacy}","received_events_url":"https://api.github.com/users/Azure/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Azure/azure-xplat-cli","description":"Microsoft Azure Cross Platform Command Line","fork":false,"url":"https://api.github.com/repos/Azure/azure-xplat-cli","forks_url":"https://api.github.com/repos/Azure/azure-xplat-cli/forks","keys_url":"https://api.github.com/repos/Azure/azure-xplat-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Azure/azure-xplat-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Azure/azure-xplat-cli/teams","hooks_url":"https://api.github.com/repos/Azure/azure-xplat-cli/hooks","issue_events_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/events{/number}","events_url":"https://api.github.com/repos/Azure/azure-xplat-cli/events","assignees_url":"https://api.github.com/repos/Azure/azure-xplat-cli/assignees{/user}","branches_url":"https://api.github.com/repos/Azure/azure-xplat-cli/branches{/branch}","tags_url":"https://api.github.com/repos/Azure/azure-xplat-cli/tags","blobs_url":"https://api.github.com/repos/Azure/azure-xplat-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Azure/azure-xplat-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Azure/azure-xplat-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/Azure/azure-xplat-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Azure/azure-xplat-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/Azure/azure-xplat-cli/languages","stargazers_url":"https://api.github.com/repos/Azure/azure-xplat-cli/stargazers","contributors_url":"https://api.github.com/repos/Azure/azure-xplat-cli/contributors","subscribers_url":"https://api.github.com/repos/Azure/azure-xplat-cli/subscribers","subscription_url":"https://api.github.com/repos/Azure/azure-xplat-cli/subscription","commits_url":"https://api.github.com/repos/Azure/azure-xplat-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/Azure/azure-xplat-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/Azure/azure-xplat-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/Azure/azure-xplat-cli/contents/{+path}","compare_url":"https://api.github.com/repos/Azure/azure-xplat-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Azure/azure-xplat-cli/merges","archive_url":"https://api.github.com/repos/Azure/azure-xplat-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Azure/azure-xplat-cli/downloads","issues_url":"https://api.github.com/repos/Azure/azure-xplat-cli/issues{/number}","pulls_url":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/Azure/azure-xplat-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/Azure/azure-xplat-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Azure/azure-xplat-cli/labels{/name}","releases_url":"https://api.github.com/repos/Azure/azure-xplat-cli/releases{/id}","deployments_url":"https://api.github.com/repos/Azure/azure-xplat-cli/deployments","created_at":"2012-11-02T13:43:50Z","updated_at":"2016-05-16T14:03:00Z","pushed_at":"2016-05-17T17:16:49Z","git_url":"git://github.com/Azure/azure-xplat-cli.git","ssh_url":"git@github.com:Azure/azure-xplat-cli.git","clone_url":"https://github.com/Azure/azure-xplat-cli.git","svn_url":"https://github.com/Azure/azure-xplat-cli","homepage":"","size":89171,"stargazers_count":429,"watchers_count":429,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":309,"mirror_url":null,"open_issues_count":272,"forks":309,"open_issues":272,"watchers":429,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/2872"},"html":{"href":"https://github.com/Azure/azure-xplat-cli/pull/2872"},"issue":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2872"},"comments":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/issues/2872/comments"},"review_comments":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/2872/comments"},"review_comment":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/pulls/2872/commits"},"statuses":{"href":"https://api.github.com/repos/Azure/azure-xplat-cli/statuses/0cb67e90a9650f122a069f5822862319eaa15ffd"}}}}