Skip to content

Commit

Permalink
feat: Add new command line option --no-qs-connection
Browse files Browse the repository at this point in the history
Implements #555
  • Loading branch information
Göran Sander committed Sep 29, 2022
1 parent 923182b commit eda18a0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
pwd
ls -la
cd src
node butler.js -c ./config/config-gen-api-docs.yaml &
node butler.js -c ./config/config-gen-api-docs.yaml --no-qs-connection &
sleep 10
curl localhost:8081/documentation/json > ../docs/api_doc/butler-api.json
curl localhost:8081/documentation/yaml > ../docs/api_doc/butler-api.yaml
Expand Down
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"args": [
// "--configfile",
// "./config/production.yaml",
// "--no-qs-connection"
],
"outFiles": ["${workspaceFolder}/**/*.js"]
}
Expand Down
7 changes: 5 additions & 2 deletions src/globals.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ program
.option(
'--test-email-from-address <address>',
'send test email from this address. Only relevant when SMTP server allows from address to be set.'
);
)
.option('--no-qs-connection', "don't connect to Qlik Sense server at all. Run in isolated mode");

// Parse command line params
program.parse(process.argv);
Expand Down Expand Up @@ -218,7 +219,9 @@ if (config.has('Butler.restServerApiDocGenerate') === false || config.get('Butle
}

// Verify select parts/values in config file
configFileNewRelicAssert(config, configQRS, logger);
if (options.qsConnection) {
configFileNewRelicAssert(config, configQRS, logger);
}

// MS Teams notification objects
let teamsTaskFailureObj;
Expand Down

0 comments on commit eda18a0

Please sign in to comment.