Skip to content

Commit

Permalink
remove broken test from ARMTD task (#16992)
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisRumyantsev authored Sep 30, 2022
1 parent 71f7b3a commit 2883bc2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
36 changes: 18 additions & 18 deletions Tasks/AzureResourceManagerTemplateDeploymentV3/Tests/L0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,22 +213,22 @@ describe('Azure Resource Manager Template Deployment', function () {
}
});

it('createOrUpdate deployment should fail when bicep file contains error', (done) => {
let tp = path.join(__dirname, 'createOrUpdate.js');
process.env["csmFile"] = "CSMwithBicepWithError.bicep";
process.env["csmParametersFile"] = "";
let tr = new ttm.MockTestRunner(tp);
tr.run();
try {
assert(!tr.succeeded, "Should have failed");
assert(tr.stdout.indexOf("This declaration type is not recognized. Specify a parameter, variable, resource, or output declaration.") > 0, "should have printed the error message")
assert(tr.stdout.indexOf("deployments.createOrUpdate is called") < 0, "deployments.createOrUpdate function should not have been called from azure-sdk");
done();
}
catch (error) {
console.log("STDERR", tr.stderr);
console.log("STDOUT", tr.stdout);
done(error);
}
});
// it('createOrUpdate deployment should fail when bicep file contains error', (done) => {
// let tp = path.join(__dirname, 'createOrUpdate.js');
// process.env["csmFile"] = "CSMwithBicepWithError.bicep";
// process.env["csmParametersFile"] = "";
// let tr = new ttm.MockTestRunner(tp);
// tr.run();
// try {
// assert(!tr.succeeded, "Should have failed");
// assert(tr.stdout.indexOf("This declaration type is not recognized. Specify a parameter, variable, resource, or output declaration.") > 0, "should have printed the error message")
// assert(tr.stdout.indexOf("deployments.createOrUpdate is called") < 0, "deployments.createOrUpdate function should not have been called from azure-sdk");
// done();
// }
// catch (error) {
// console.log("STDERR", tr.stderr);
// console.log("STDOUT", tr.stdout);
// done(error);
// }
// });
});
2 changes: 1 addition & 1 deletion Tasks/AzureResourceManagerTemplateDeploymentV3/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"version": {
"Major": 3,
"Minor": 210,
"Patch": 0
"Patch": 1
},
"demands": [],
"minimumAgentVersion": "2.119.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"version": {
"Major": 3,
"Minor": 210,
"Patch": 0
"Patch": 1
},
"demands": [],
"minimumAgentVersion": "2.119.1",
Expand Down

0 comments on commit 2883bc2

Please sign in to comment.