grunt-webapppool
Version:
Grunt integration for Powershell WebAppPool commands
28 lines (22 loc) • 836 B
JavaScript
;
var command = require("../lib/commands").New;
var Test = require("./_common");
describe("New", function () {
it("New_WebAppPool -Name name", function (done) {
var options = {
name: "name"
};
new Test(command, options)
.expect(["Invoke-Command", "-ComputerName", process.env.COMPUTERNAME, "-ScriptBlock", "{ Import-Module WebAdministration; New-WebAppPool -Name name }"])
.run(done);
});
it("New_WebAppPool -Credential user\\domain -Name name", function (done) {
var options = {
credential: "user\\domain",
name: "name"
};
new Test(command, options)
.expect(["Invoke-Command", "-ComputerName", process.env.COMPUTERNAME, "-Credential", "user\\domain", "-ScriptBlock", "{ Import-Module WebAdministration; New-WebAppPool -Name name }"])
.run(done);
});
});