Skip to content

Commit

Permalink
Release 2.3.3
Browse files Browse the repository at this point in the history
Release 2.3.3 ->  Merge pull request #65 from liprec/develop
  • Loading branch information
liprec authored Jan 5, 2021
2 parents 49a7915 + 9704e91 commit 26a83b3
Show file tree
Hide file tree
Showing 12 changed files with 27 additions and 9 deletions.
6 changes: 6 additions & 0 deletions delete-adf-items/v2/lib/helpers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,12 @@ describe("helpers.ts", function () {
});
});

describe("old 'all' functionality", () => {
it("validate 'trigger' with rule '*' => true", () => {
assert.strictEqual(wildcardFilter("trigger", "*"), true);
});
});

describe("new RegExp functionality", () => {
it("validate 'triggetr' with rule 'trigge.r' => true", () => {
assert.strictEqual(wildcardFilter("triggetr", "trigge.r"), true);
Expand Down
2 changes: 1 addition & 1 deletion delete-adf-items/v2/lib/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,6 @@ export function findDependency(json: any, type: string): string[] {
}

export function wildcardFilter(value: string, rule: string) {
if (RegExp(/\w\*.*/g).test(rule)) return new RegExp("^" + rule.split("*").join(".*") + "$").test(value);
if (RegExp(/\*$|\w\*.*/g).test(rule)) return new RegExp("^" + rule.split("*").join(".*") + "$").test(value);
else return new RegExp(rule).test(value);
}
2 changes: 1 addition & 1 deletion delete-adf-items/v2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"version": {
"Major": "2",
"Minor": "3",
"Patch": "2"
"Patch": "3"
},
"minimumAgentVersion": "1.100.0",
"groups": [
Expand Down
2 changes: 1 addition & 1 deletion deploy-adf-json/v2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"version": {
"Major": "2",
"Minor": "3",
"Patch": "2"
"Patch": "3"
},
"minimumAgentVersion": "1.100.0",
"groups": [
Expand Down
2 changes: 1 addition & 1 deletion query-adf-run/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"version": {
"Major": "2",
"Minor": "3",
"Patch": "2"
"Patch": "3"
},
"instanceNameFormat": "Query Azure Data Factory runs",
"groups": [
Expand Down
6 changes: 6 additions & 0 deletions toggle-adf-trigger/v2/lib/helpers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ describe("helpers.ts", function () {
});
});

describe("old 'all' functionality", () => {
it("validate 'trigger' with rule '*' => true", () => {
assert.strictEqual(wildcardFilter("trigger", "*"), true);
});
});

describe("new RegExp functionality", () => {
it("validate 'triggetr' with rule 'trigge.r' => true", () => {
assert.strictEqual(wildcardFilter("triggetr", "trigge.r"), true);
Expand Down
2 changes: 1 addition & 1 deletion toggle-adf-trigger/v2/lib/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"use strict";

export function wildcardFilter(value: string, rule: string) {
if (RegExp(/\w\*.*/g).test(rule)) return new RegExp("^" + rule.split("*").join(".*") + "$").test(value);
if (RegExp(/\*$|\w\*.*/g).test(rule)) return new RegExp("^" + rule.split("*").join(".*") + "$").test(value);
else return new RegExp(rule).test(value);
}
2 changes: 1 addition & 1 deletion toggle-adf-trigger/v2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"version": {
"Major": "2",
"Minor": "3",
"Patch": "2"
"Patch": "3"
},
"minimumAgentVersion": "1.100.0",
"groups": [
Expand Down
6 changes: 6 additions & 0 deletions trigger-adf-pipeline/v2/lib/helpers.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ describe("helpers.ts", function () {
});
});

describe("old 'all' functionality", () => {
it("validate 'trigger' with rule '*' => true", () => {
assert.strictEqual(wildcardFilter("trigger", "*"), true);
});
});

describe("new RegExp functionality", () => {
it("validate 'triggetr' with rule 'trigge.r' => true", () => {
assert.strictEqual(wildcardFilter("triggetr", "trigge.r"), true);
Expand Down
2 changes: 1 addition & 1 deletion trigger-adf-pipeline/v2/lib/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@
"use strict";

export function wildcardFilter(value: string, rule: string) {
if (RegExp(/\w\*.*/g).test(rule)) return new RegExp("^" + rule.split("*").join(".*") + "$").test(value);
if (RegExp(/\*$|\w\*.*/g).test(rule)) return new RegExp("^" + rule.split("*").join(".*") + "$").test(value);
else return new RegExp(rule).test(value);
}
2 changes: 1 addition & 1 deletion trigger-adf-pipeline/v2/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"version": {
"Major": "2",
"Minor": "3",
"Patch": "2"
"Patch": "3"
},
"minimumAgentVersion": "1.100.0",
"groups": [
Expand Down
2 changes: 1 addition & 1 deletion vss-extension.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifestVersion": 1,
"id": "vsts-publish-adf",
"version": "2.3.2",
"version": "2.3.3",
"name": "Azure Data Factory",
"publisher": "liprec",
"public": true,
Expand Down

0 comments on commit 26a83b3

Please sign in to comment.