Skip to content

Added support for proxy, updated packages and more.#21

Open
vnysheoran wants to merge 39 commits intomasterfrom
vinay/proxy
Open

Added support for proxy, updated packages and more.#21
vnysheoran wants to merge 39 commits intomasterfrom
vinay/proxy

Conversation

@vnysheoran
Copy link
Copy Markdown
Collaborator

Added these two new flags in command-line arguments

  -i, --inline-report-assets <n> Inline assets in generated HTML report.
  -p, --proxy [proxy]      The Proxy URL, e.g: http://127.0.0.1:8080

Content-length set to Zero when the body is empty.

Comment thread .github/workflows/codeql-analysis.yml
Comment thread README.md Outdated
Comment thread README.md
Comment thread bin/openapitest.js Outdated
Comment thread bin/openapitest.js Outdated
Comment thread package.json
Comment thread src/superClient.js
Comment thread src/superClient.js
Comment thread src/superClient.js
Comment thread src/superClient.js
mateusfreira
mateusfreira previously approved these changes Sep 9, 2021
Copy link
Copy Markdown
Collaborator

@mateusfreira mateusfreira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT, thanks for the PR

Copy link
Copy Markdown
Collaborator

@dreich-nucleus dreich-nucleus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small cleanup and I would like to know what inline does

Comment thread bin/openapitest.js Outdated
Comment thread bin/openapitest.js Outdated
@vnysheoran
Copy link
Copy Markdown
Collaborator Author

Addressed Changes requested by @dreich-nucleus

Copy link
Copy Markdown
Collaborator

@dreich-nucleus dreich-nucleus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tags handling does not seem correct and you did not mention it in the PR description. I can't tell what I'm supposed to review here. But there are clearly bugs and changes needed.

Comment thread src/mocha.js
const config = loadYamlFile(filePath);
describe(filePath, () => {
let tagsInTest = [];
if (tagsInTest) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is always true. Empty arrays are not "falsey". So, this block always executes. Just remove the if.

Unless you meant to check something that might be false - like the config.apiCalls.tag or tagsArray.length (remember tagArray will be truthy even when empty).

Comment thread src/mocha.js
}
if (tagsArray.length > 0) {
let tagMatched = false;
for (const tagInArgs of tagsArray) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use lodash and one of its many set operators here - intersection is probably the one you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants