GitHub PullRequestReviewCommentEvent at 2014-05-07 19:23:43
Repository: azure-sdk-tools-xplat
Actor: markcowl
Payload: {"comment":{"url":"https://api.github.com/repos/Azure/azure-sdk-tools-xplat/pulls/comments/12396712","id":12396712,"diff_hunk":"@@ -218,5 +218,75 @@ describe('arm', function () {\n         });\n       });\n     });\n+\n+    describe('log show', function () {\n+      var groupName;\n+      var deploymentName;\n+      var deploymentName1;\n+\n+      before(function (done) {\n+        setupForLogShow(done);\n+      });\n+\n+      after(function (done) {\n+       cleanupForLogShow(done);\n+      });\n+\n+      //create a group named xDeploymentTestGroup with two deployments 'Deploy1' and 'Deploy2'\n+      function setupForLogShow (done) {\n+        var parameterFile = path.join(__dirname, '../../../data/arm-deployment-parameters.json');\n+        groupName = suite.generateId('xDeploymentTestGroup', createdGroups, suite.isMocked);\n+        deploymentName = suite.generateId('Deploy1', createdDeployments, suite.isMocked);\n+        deploymentName1 = suite.generateId('Deploy2', createdDeployments, suite.isMocked);\n+        var templateUri = 'https://testtemplates.blob.core.windows.net/templates/good-website.js';\n+        var commandToCreateDeployment = util.format('group deployment create -f %s -g %s -n %s -e %s --json -vv',\n+            templateUri, groupName, deploymentName, parameterFile);\n+\n+        suite.execute('group create %s --location %s --json --quiet', groupName, testLocation, function (result) {\n+          result.exitStatus.should.equal(0);\n+          suite.execute(commandToCreateDeployment, function (result) {\n+            result.exitStatus.should.equal(0);\n+            suite.execute('group deployment create -f %s -g %s -n %s -e %s --json -vv', templateUri, groupName, deploymentName1, parameterFile, function (result2) {\n+              result2.exitStatus.should.equal(0);\n+              done();\n+            });\n+          });\n+        });\n+      }\n+\n+      function cleanupForLogShow (done) {\n+        suite.execute('group delete %s --json --quiet', groupName, function () {\n+          done();\n+        });\n+      }\n+\n+      it('should return logs of all the operations', function (done) {\n+        suite.execute('group log show -n %s --all --json', groupName, function (result) {\n+          result.exitStatus.should.equal(0);\n+          done();\n+        });\n+      });\n+\n+      it('should return logs of the last deployment with the --last-deployment switch', function (done) {\n+        suite.execute('group log show -n %s --last-deployment --json', groupName, function (result) {\n+          result.exitStatus.should.equal(0);\n+          done();\n+        });\n+      });\n+\n+      it('should return logs of the last deployment by default', function (done) {\n+        suite.execute('group log show -n %s --json', groupName, function (result) {\n+          result.exitStatus.should.equal(0);\n+          done();\n+        });\n+      });\n+\n+      it('should return logs of the specified deployment', function (done) {\n+        suite.execute('group log show -n %s -d %s --json', groupName, deploymentName, function (result) {\n+          result.exitStatus.should.equal(0);","path":"test/commands/arm/group/arm.group-tests.js","position":78,"original_position":78,"commit_id":"72432c80fb2c2fcab389af5c0f09e36799e56903","original_commit_id":"72432c80fb2c2fcab389af5c0f09e36799e56903","user":{"login":"markcowl","id":1054056,"avatar_url":"https://avatars.githubusercontent.com/u/1054056?","gravatar_id":"c9966ed5c4c1f0b094ae566b0433f088","url":"https://api.github.com/users/markcowl","html_url":"https://github.com/markcowl","followers_url":"https://api.github.com/users/markcowl/followers","following_url":"https://api.github.com/users/markcowl/following{/other_user}","gists_url":"https://api.github.com/users/markcowl/gists{/gist_id}","starred_url":"https://api.github.com/users/markcowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markcowl/subscriptions","organizations_url":"https://api.github.com/users/markcowl/orgs","repos_url":"https://api.github.com/users/markcowl/repos","events_url":"https://api.github.com/users/markcowl/events{/privacy}","received_events_url":"https://api.github.com/users/markcowl/received_events","type":"User","site_admin":false},"body":"same","created_at":"2014-05-07T19:23:43Z","updated_at":"2014-05-07T19:23:43Z","html_url":"https://github.com/Azure/azure-sdk-tools-xplat/pull/1199#discussion_r12396712","pull_request_url":"https://api.github.com/repos/Azure/azure-sdk-tools-xplat/pulls/1199","_links":{"self":{"href":"https://api.github.com/repos/Azure/azure-sdk-tools-xplat/pulls/comments/12396712"},"html":{"href":"https://github.com/Azure/azure-sdk-tools-xplat/pull/1199#discussion_r12396712"},"pull_request":{"href":"https://api.github.com/repos/Azure/azure-sdk-tools-xplat/pulls/1199"}}}}