Skip to content

Commit

Permalink
removed classic
Browse files Browse the repository at this point in the history
  • Loading branch information
alphadev4 committed Nov 23, 2023
1 parent cadd244 commit 95dd19e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions plugins/azure/frontdoor/frontDoorHttpsOnly.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = {
}

if (!classicFrontDoors.data.length) {
helpers.addResult(results, 0, 'No existing Classic Front Door profiles found', location);
helpers.addResult(results, 0, 'No existing Front Door profiles found', location);
return rcb();
}

Expand All @@ -52,9 +52,9 @@ module.exports = {
}

if (ruleFound) {
helpers.addResult(results, 0, 'Classic Front Door profile is configured to use HTTPS only', location, frontDoor.id);
helpers.addResult(results, 0, 'Front Door profile is configured to use HTTPS only', location, frontDoor.id);
} else {
helpers.addResult(results, 2, 'Classic Front Door profile is not configured to use HTTPS only', location, frontDoor.id);
helpers.addResult(results, 2, 'Front Door profile is not configured to use HTTPS only', location, frontDoor.id);
}

});
Expand Down
6 changes: 3 additions & 3 deletions plugins/azure/frontdoor/frontDoorHttpsOnly.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('frontDoorHttpsOnly', function () {
frontDoorHttpsOnly.run(cache, {}, (err, results) => {
expect(results.length).to.equal(1);
expect(results[0].status).to.equal(0);
expect(results[0].message).to.include('No existing Classic Front Door profiles found');
expect(results[0].message).to.include('No existing Front Door profiles found');
expect(results[0].region).to.equal('global');
done();
});
Expand All @@ -107,7 +107,7 @@ describe('frontDoorHttpsOnly', function () {
frontDoorHttpsOnly.run(cache, {}, (err, results) => {
expect(results.length).to.equal(1);
expect(results[0].status).to.equal(0);
expect(results[0].message).to.include('Classic Front Door profile is configured to use HTTPS only');
expect(results[0].message).to.include('Front Door profile is configured to use HTTPS only');
expect(results[0].region).to.equal('global');
done();
});
Expand All @@ -118,7 +118,7 @@ describe('frontDoorHttpsOnly', function () {
frontDoorHttpsOnly.run(cache, {}, (err, results) => {
expect(results.length).to.equal(1);
expect(results[0].status).to.equal(2);
expect(results[0].message).to.include('Classic Front Door profile is not configured to use HTTPS only');
expect(results[0].message).to.include('Front Door profile is not configured to use HTTPS only');
expect(results[0].region).to.equal('global');
done();
});
Expand Down

0 comments on commit 95dd19e

Please sign in to comment.