Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds inherited auth test cases #422

Merged
merged 3 commits into from
Oct 17, 2017
Merged

Conversation

harryi3t
Copy link
Contributor

No description provided.

kamalaknn
kamalaknn previously approved these changes Oct 17, 2017
Copy link
Member

@kamalaknn kamalaknn left a comment

Choose a reason for hiding this comment

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

LGTM


expect(err).to.be(null);
expect(request.url.toString()).to.eql('https://postman-echo.com/basic-auth');
expect(response.code).to.eql(200);
Copy link
Contributor

Choose a reason for hiding this comment

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

to.be


describe('in collection and request level', function () {
before(function (done) {
var clonedRunOptions = _.merge({}, runOptions,
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the first argument to _.merge, and shift runOptions to after the collection.

Copy link
Member

Choose a reason for hiding this comment

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

@kunagpal we want the options to override runOptions always, but not mutate it. _.defaults does not do a deep merge.

kunagpal
kunagpal previously approved these changes Oct 17, 2017
harryi3t added a commit that referenced this pull request Oct 17, 2017
harryi3t added a commit that referenced this pull request Oct 17, 2017
@kamalaknn kamalaknn merged commit c6ec1ad into develop Oct 17, 2017
@kamalaknn kamalaknn deleted the feature/inherited-auth-tests branch October 17, 2017 12:51
kunagpal added a commit that referenced this pull request Nov 2, 2017
* release/6.4.2: (22 commits)
  Released v6.4.2
  Disable localhost IPv6 test on Travis
  Fix syntax errors
  Syntax changes
  Code styling fixes
  Allow IP address/host restrictions using `restrictedAddresses` option
  Make sure `request` command does not crash for unhandled errors in `http-request` command
  chore(package): update eslint to version 4.10.0
  chore(package): update sinon to version 4.0.2
  chore(package): update ajv to version 5.3.0
  chore(package): update ajv to version 5.2.5
  chore(package): update editorconfig to version 0.15.0
  chore(package): update eslint-plugin-lodash to version 2.5.0
  Add tests for test scripts in inherited events
  Point to postman-collection develop for order preserving in events
  Make sure order is preceived in events
  Added tests for inherited events
  Remove the `suppressEventPropagation` for inherited events
  Fixes as per review comments #422
  Adds test case for request level auth overriding collection level auth
  ...
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.

3 participants