-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix various issues with passing of parameters to the CLI (#14)
This fixes a couple of issues where parameters that were set on the Augurk CLI task were not being passed onto the Augurk CLI itself, causing them to not have any effect. Co-authored-by: Jonathan Mezach <[email protected]> +semver: patch
- Loading branch information
1 parent
7815524
commit e258331
Showing
18 changed files
with
188 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
"version": { | ||
"Major": 0, | ||
"Minor": 3, | ||
"Patch": 6 | ||
"Patch": 8 | ||
}, | ||
"demands": [ | ||
"augurk-cli" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/build-task/AugurkCLI/tests/publish-additional-arguments.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import tmrm = require('azure-pipelines-task-lib/mock-run'); | ||
import path = require('path'); | ||
|
||
let taskPath = path.join(__dirname, '..', 'cli.js'); | ||
let tmr: tmrm.TaskMockRunner = new tmrm.TaskMockRunner(taskPath); | ||
|
||
tmr.setInput('command', 'publish'); | ||
tmr.setInput('features', '**/*.feature'); | ||
tmr.setInput('augurkInstance', 'SomeAugurkInstance'); | ||
tmr.setInput('productName', 'Augurk'); | ||
tmr.setInput('includeProductDescription', 'false'); | ||
tmr.setInput('useFolderStructure', 'true'); | ||
|
||
tmr.setInput('additionalArguments', '--useIntegratedSecurity --compat-level 3 --productDesc product-description.md') | ||
|
||
process.env["ENDPOINT_URL_SomeAugurkInstance"] = "https://some.augurk.instance"; | ||
|
||
tmr.setAnswers({ | ||
findMatch: { | ||
"**/*.feature": [ | ||
"Configuration/RetentionPolicy.feature" | ||
] | ||
}, | ||
which: { | ||
"augurk": "/some/path/to/augurk" | ||
}, | ||
checkPath: { | ||
"/some/path/to/augurk": true | ||
}, | ||
exec: { | ||
"/some/path/to/augurk publish --url https://some.augurk.instance --productName Augurk --useIntegratedSecurity --compat-level 3 --productDesc product-description.md --featureFiles Configuration/RetentionPolicy.feature --groupName Configuration": { | ||
code: 0, | ||
} | ||
} | ||
}); | ||
|
||
tmr.run(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
import tmrm = require('azure-pipelines-task-lib/mock-run'); | ||
import path = require('path'); | ||
|
||
let taskPath = path.join(__dirname, '..', 'cli.js'); | ||
let tmr: tmrm.TaskMockRunner = new tmrm.TaskMockRunner(taskPath); | ||
|
||
tmr.setInput('command', 'publish'); | ||
tmr.setInput('features', '**/*.feature'); | ||
tmr.setInput('augurkInstance', 'SomeAugurkInstance'); | ||
tmr.setInput('productName', 'Augurk'); | ||
tmr.setInput('useFolderStructure', 'true'); | ||
tmr.setInput('version', '1.0.0'); | ||
tmr.setInput('includeProductDescription', 'true'); | ||
tmr.setInput('productDescription', 'product-description.md'); | ||
|
||
process.env["ENDPOINT_URL_SomeAugurkInstance"] = "https://some.augurk.instance"; | ||
|
||
tmr.setAnswers({ | ||
findMatch: { | ||
"**/*.feature": [ | ||
"Configuration/RetentionPolicy.feature", | ||
"Gherkin/ChildOfTag.feature", | ||
], | ||
"product-description.md": [ | ||
"product-description.md" | ||
] | ||
}, | ||
which: { | ||
"augurk": "/some/path/to/augurk" | ||
}, | ||
checkPath: { | ||
"/some/path/to/augurk": true | ||
}, | ||
exec: { | ||
"/some/path/to/augurk publish --url https://some.augurk.instance --productName Augurk --featureFiles Configuration/RetentionPolicy.feature --groupName Configuration --version 1.0.0 --productDesc product-description.md": { | ||
code: 0, | ||
}, | ||
"/some/path/to/augurk publish --url https://some.augurk.instance --productName Augurk --featureFiles Gherkin/ChildOfTag.feature --groupName Gherkin --version 1.0.0 --productDesc product-description.md": { | ||
code: 0, | ||
}, | ||
} | ||
}); | ||
|
||
tmr.run(); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
"version": { | ||
"Major": 0, | ||
"Minor": 1, | ||
"Patch": 6 | ||
"Patch": 7 | ||
}, | ||
"capabilities": [ | ||
"augurk-cli" | ||
|
Oops, something went wrong.