| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: Iabb46b3996ed09f448a5d362347728591d2e664c
|
|
|
|
|
| |
Change-Id: Ife95d74bf645687dc4595b16434c88ee874c2f95
Closes-bug: #1311742
|
|
|
|
|
|
| |
The recent pep8 upgrade is triggering new errors.
Change-Id: I73b1de3afed0a6979e0542e4c90cdb0bdb8b1122
|
|
|
|
| |
Change-Id: I1150466fbf20e39179e342106f3e0190a0293a8c
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When int and float arguments to controllers default to zero and no value
is provided in the request, the controller is being passed None instead
of 0.
Closes-bug: #1291084
Change-Id: I35c034e4a793a44d2ddd376046e7dbb841ca13b6
|
|\ \
| |/
|/| |
|
| |
| |
| |
| | |
Change-Id: If5a7c1b4b71380053ed650ddc8e9928422869807
|
| |
| |
| |
| | |
Change-Id: Iaff4fc336a2b1a1c7998717baa65912dba528b66
|
| |
| |
| |
| |
| |
| | |
The validation method of the UuidType should return a valid value.
Change-Id: I0964f3b2a046df48cdf200d7896c60f331789eac
|
|/
|
|
|
|
|
|
|
|
|
| |
When the args_from_args() function fails to convert a value to a certain
type it tries to get the name of that type by using the __name__ attribute
of that type, UserType object instances doesn't have the __name__
attribute so the function fails when it tries to access it, this patch
makes WSME to check if it's an UserType instance before getting it's name.
Change-Id: If78ce0e642997421c97559cc28604421f5c03922
Closes-Bug: #1265590
|
|
|
|
|
|
|
|
| |
'readonly' parameter added to wsattr. If True value cannot be set from
input data. This is intended for attributes which should be only
exposed to user without possibility of change.
Change-Id: I767a29c5113891f89676c5e78adf018d5e0e4f26
|
|
|
|
|
|
|
|
|
| |
Fix typos detected by toolkit misspellings.
* pip install misspellings
* git ls-files | grep -v locale | misspellings -f -
Change-Id: I59de119feb6f973602fbfd98a75a1d529bc30bde
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Some of the OpenStack projects need to be able to add
data to the input and output types used by the API,
in order to support extensions configured when the
service is deployed. This change adds a reregister()
method to the Registry that can be used to update the
registration of an existing class, and provides a
DynamicBase class with a convenience method for adding
new extension fields.
bp support-dynamic-types
Change-Id: Idf892de2129fddd7ddbb43847ebe0f14464a6e97
|
|/
|
|
|
|
|
| |
With that, building and uploading wheels to PyPI is only one "python
setup.py bdist_wheel" away.
Change-Id: Ia7583925080fbe15d8274ff4badcd089b6512004
|
|
|
|
| |
Change-Id: Ib3a81c1c1145a31431cacde1cbabdf4a08300068
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds the following classes for API parameter validation:
IntegerType
* Value range validation (minimum, maximum)
StringType
* String length validation (min_length, max_length)
* Allowed string (pattern): e.g. should contain [a-zA-Z0-9_.- ] only.
IPv4AddressType
* String format validation for IPv4
IPv6AddressType
* String format validation for IPv6
UuidType
* String format validation for UUID
Partially implements blueprint nova-api-validation-fw
Closes-Bug: 1245795
Change-Id: I5aead6c51b74464681e4ac41fa2a9c66c09adab2
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Older versions of werkzeug pass the description parameter back
in the description. As the description is never actually validated
in the test case, dropping it seems OK.
Change-Id: Icd547113d8fe918f35a97c4a5de220b3aaace5cd
Closes-Bug: 1242486
|
|\ \ |
|
| |/
| |
| |
| | |
Change-Id: I60cf7bc796b5cb4927cd92477e3eb26379f06316
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
If Enum validation detects invalid parameter, wsme returns a respose
like the following message:
{"debuginfo": null, "faultcode": "Client",
"faultstring": "Invalid input for field/attribute param_enum.
Value: 'hourse'.
Invalid value (should be one of: dog, cat)"
}
In faultstring, the first message shows a invalid request.
So it is not necessary to contain it in the third message.
Change-Id: Ie52660fcf704551ce082f7dca2fadedadb12562a
|
|/
|
|
|
|
| |
This patch makes negative tests use assertRaises() for cleaning up.
Change-Id: Ief64c0737f7aabc414744861e7c750ec2bb1e466
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I1324420192e056415d59be3f4e4ad9e9c55052a1
|
|/
|
|
|
|
|
|
| |
If the JSON sent is not really a string, it's safer to try to convert it
to a string before calling the encode method. This way we can accept
integer as potentially valid strings.
Change-Id: Iad0b48f597a8c062cdb05c9bbb5342df15583edf
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I122e642b43ed3498535663d3ed7a26cf5790ecfd
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This makes sure that when the body is decoded we run the validation
process on it.
Fixes-Bug: #1220678
Change-Id: I765a6ce8c8097ef0e0a734804242e9fcee4ffbcf
|
|\ \ \
| |_|/
|/| | |
|
| |/
| |
| |
| |
| |
| | |
This makes thing works at least for Pecan.
Change-Id: I7b02813258d9b8c2eea13e4215a3d711ec2e56ed
|
|\ \ |
|
| |/
| |
| |
| |
| |
| |
| | |
This remove the Sphinx environment and makes sure we run its test for
all Python version. This therefore fixes the test for Python 3.3.
Change-Id: Iba431e837d2b23761905155ff65ae909774ce0b2
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We don't need this anymore as pbr use `git ls-files' when available to
build the list of files to include.
Change-Id: I9113d7c249002bc4f6b0a15a871aee6088ddac72
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Added custom error status code for ClientSideError
exception instead of hardcoded value 400.
Fixed case when user exception with client error code
formatted as server error.
Pecan extension fixed.
Change-Id: I2663db0aa88538b722eb2783d130585b0fc2335b
|
|/
|
|
| |
Change-Id: Ic9cf28809867d73c56689fd6b94dc307c7b283d3
|
|\ |
|
| |
| |
| |
| | |
Change-Id: I3370715d12209528fe63d5bd9bb7b7e78c935351
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This change allow to use [] or {} for the definition of the body in rest
protocols.
Fixes bug #1233219
Change-Id: Ib96f0487dd7d78bd657f6d4b3facbd8b611f8702
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Whe None is set as a valid value in an Enum, the error string that is
meant to be returned is built with a join() call on valid values.
However, that doesn't work as None isn't not a string.
Calling map(str, values) fixes this problem.
Also, if the value is invalid, the error code returned is 500 as if it
was the server fault. 400 should be returned instead, so rather than
raising a ValueError we raise an InvalidInput error.
Change-Id: I92695594676da2a247cef4e1e8fe277aa0972dea
|
|/
|
|
| |
Change-Id: Id4c6a61be6a8ee9fa7d8ec1551c12ca448aa458f
|
|
|
|
|
|
|
|
|
|
|
| |
- Makes sure we always run Pecan test and that there's no regression.
There's no real need to split them out as they are not invasive.
Also that reduces the number of environment a bit.
- This also fixes Pecan tests on python2.6
- This also fixes Pecan tests on python3.3
- This also enables Pecan tests on python3.2
Change-Id: I57070b0bd785fb3d445f432973f15825abccbdd5
|
|\ |
|
| |
| |
| |
| |
| | |
Change-Id: Icb3a9456a52c74af004c749ba247df1ddaf73d19
Fixes-Bug: #1227039
|
|\ \
| |/
|/| |
|
| |
| |
| |
| | |
Change-Id: I338656e8f131b36aae342af94f1c2cedad14ae2b
|