[Kimchi-devel] [PATCH] [Wok 0/3] Allow protecting an resource action (POST) when resource (GET) is not protected

Aline Manera posted 3 patches 4 years, 2 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/kimchi-wok tags/patchew/20170216172048.9442-1-alinefm@linux.vnet.ibm.com
Test Unit Tests passed
src/wok/control/base.py     | 13 +++++++----
src/wok/control/config.py   |  6 ++---
tests/run_tests.sh.in       | 16 ++-----------
tests/test_authorization.py | 57 +++++++++++++++++++++++++++++++++++++++++++++
tests/utils.py              | 18 ++++++--------
5 files changed, 78 insertions(+), 32 deletions(-)
create mode 100644 tests/test_authorization.py

[Kimchi-devel] [PATCH] [Wok 0/3] Allow protecting an resource action (POST) when resource (GET) is not protected

Posted by Aline Manera 4 years, 2 months ago
This patch also includes test cases and fix some issues found during the test cases creation.

Aline Manera (3):
  Do not sort tests on Wok
  Specify user when doing a request instead of trying to override
    FakeUser class attribute
  Allow protecting an resource action (POST) when resource (GET) is not
    protected

 src/wok/control/base.py     | 13 +++++++----
 src/wok/control/config.py   |  6 ++---
 tests/run_tests.sh.in       | 16 ++-----------
 tests/test_authorization.py | 57 +++++++++++++++++++++++++++++++++++++++++++++
 tests/utils.py              | 18 ++++++--------
 5 files changed, 78 insertions(+), 32 deletions(-)
 create mode 100644 tests/test_authorization.py

-- 
2.9.3

_______________________________________________
Kimchi-devel mailing list
Kimchi-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/kimchi-devel

Re: [Kimchi-devel] [PATCH] [Wok 0/3] Allow protecting an resource action (POST) when resource (GET) is not protected

Posted by Lucio Correia 4 years, 2 months ago
Reviewed-By: Lucio Correia <luciojhc@linux.vnet.ibm.com>

On 16/02/2017 15:20, Aline Manera wrote:
> This patch also includes test cases and fix some issues found during the test cases creation.
>
> Aline Manera (3):
>   Do not sort tests on Wok
>   Specify user when doing a request instead of trying to override
>     FakeUser class attribute
>   Allow protecting an resource action (POST) when resource (GET) is not
>     protected
>
>  src/wok/control/base.py     | 13 +++++++----
>  src/wok/control/config.py   |  6 ++---
>  tests/run_tests.sh.in       | 16 ++-----------
>  tests/test_authorization.py | 57 +++++++++++++++++++++++++++++++++++++++++++++
>  tests/utils.py              | 18 ++++++--------
>  5 files changed, 78 insertions(+), 32 deletions(-)
>  create mode 100644 tests/test_authorization.py
>


-- 
Lucio Correia

_______________________________________________
Kimchi-devel mailing list
Kimchi-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/kimchi-devel

Re: [Kimchi-devel] [PATCH] [Wok 0/3] Allow protecting an resource action (POST) when resource (GET) is not protected

Posted by Aline Manera 4 years, 2 months ago
Applied. Thanks.

Regards,

Aline Manera

_______________________________________________
Kimchi-devel mailing list
Kimchi-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/kimchi-devel