forked from Luracast/Restler
-
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.
Tests and Documentation for many undocumented features
- Loading branch information
Showing
33 changed files
with
617 additions
and
121 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Forms | ||
|
||
Forms class generates html forms from http method and target url. | ||
|
||
Following attributes can be used for customizing the generated forms. | ||
|
||
> to be expanded soon! | ||
## @label | ||
## @field | ||
## @message | ||
## @form | ||
## @input | ||
## @textarea | ||
## @radio | ||
## @select | ||
## @submit | ||
## @fieldset | ||
|
||
|
||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@param @type | ||
Feature: Validation | ||
|
||
Scenario Outline: Valid Password | ||
Given that I send {"password":<password>} | ||
And the request is sent as JSON | ||
When I request "/tests/param/validation/pattern" | ||
Then the response status code should be 200 | ||
And the response is JSON | ||
And the type is "string" | ||
And the response equals <password> | ||
|
||
Examples: | ||
| password | | ||
| "1a" | | ||
| "b2" | | ||
| "some1" | | ||
|
||
Scenario Outline: Invalid Password | ||
Given that I send {"password":<password>} | ||
And the request is sent as JSON | ||
When I request "/tests/param/validation/pattern" | ||
Then the response status code should be 400 | ||
And the response is JSON | ||
And the type is "string" | ||
And the response contains "Bad Request: Strong password with at least one alpha and one numeric character is required" | ||
|
||
Examples: | ||
| password | | ||
| "arul" | | ||
| "12345678" | | ||
| "ONEtwo" | |
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
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
Oops, something went wrong.