MobileTestFramework
MobileTestFramework copied to clipboard
Bump json-path from 5.0.1 to 5.2.0
Bumps json-path from 5.0.1 to 5.2.0.
Changelog
Sourced from json-path's changelog.
Changelog 5.2.0 (2022-09-09)
Improved FilterContext used in Filters by adding the method FilterContext#hasValue(name, object). This makes it easier to check if a value exists and is equal to the expect object.
Introducing a much improved CSRF (cross-site request forgery) support. For example: given(). csrf("/users"). formParm("firstName", "John"). formParm("lastName", "Doe"). when(). post("/users"). then(). statusCode(200);
This will first make a GET request to /users (due to csrf("/users")) to get an HTML page that contains the CSRF token. Rest Assured will then automatically try to find the input field that contains the CSRF token and include in the POST to /users.
Here's an example of what Rest Assured expects as a response for the GET request to /users:
Fixed so that form authentication takes CSRF into account. The previous form authentication CSRF implementation didn't really work (sorry!). Now you can combine csrf with form authentication and it actually works as expected! Note that for requests other than GET or HEAD, you need to specify both form authentication and csrf, e.g.
given(). csrf("/users"). formParm("firstName", "John"). formParm("lastName", "Doe").
... (truncated)
Commits
c8e4ca5[maven-release-plugin] prepare release rest-assured-5.2.0d72c03e[ci skip] Updated changelog with release date0db04cbFixed imports0cda329Fixed failing test34c857aMoving sundr-maven-plugin to release profile since it doesn't seem to work on...42d4552Cleanup4c207e8Upgrading sundr-maven-plugin to 0.93.0246ba87Added csrf to RequestSpecBuilder.javaa6216b7Fixed some bugs and made some improvements to CSRF50ad97aUpgraded kotlin module to using Kotlin 1.7.10 (previously 1.6.21 was used)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)