moulinette/test/actionsmap/moulitest.yml

124 lines
3.4 KiB
YAML
Raw Normal View History

#############################
# Global parameters #
#############################
_global:
configuration:
authenticate:
- all
authenticator:
default:
vendor: dummy
help: Dummy Password
yoloswag:
vendor: dummy
help: Dummy Yoloswag Password
2020-01-07 18:38:59 +01:00
ldap:
vendor: ldap
help: admin_password
parameters:
uri: ldap://localhost:8080
base_dn: dc=yunohost,dc=org
user_rdn: cn=admin,dc=yunohost,dc=org
2019-12-28 16:31:23 +01:00
arguments:
-v:
full: --version
help: Display Yoloswag versions
action: callback
callback:
2020-01-08 17:05:34 +01:00
method: test.src.testauth.yoloswag_version
return: true
-w:
full: --wersion
help: Not existing function
action: callback
callback:
method: test.src.testauth.not_existing_function
2019-12-28 16:31:23 +01:00
return: true
#############################
# Test Actions #
#############################
testauth:
actions:
none:
api: GET /test-auth/none
configuration:
authenticate: false
default:
api: GET /test-auth/default
2020-01-02 05:32:57 +01:00
only-api:
api: GET /test-auth/only-api
configuration:
authenticate:
- api
only-cli:
api: GET /test-auth/only-cli
configuration:
authenticate:
- cli
other-profile:
api: GET /test-auth/other-profile
configuration:
2020-01-02 05:32:57 +01:00
authenticate:
- all
authenticator: yoloswag
2019-12-28 16:31:23 +01:00
2020-01-07 18:38:59 +01:00
ldap:
api: GET /test-auth/ldap
configuration:
authenticate:
- all
authenticator: ldap
2020-01-08 17:08:59 +01:00
with_arg:
api: GET /test-auth/with_arg/<super_arg>
arguments:
super_arg:
help: Super Arg
with_extra_str_only:
api: GET /test-auth/with_extra_str_only/<only_a_str>
arguments:
only_a_str:
help: Only a String
extra:
pattern:
- !!str ^[a-zA-Z]
- "pattern_only_a_str"
with_type_int:
api: GET /test-auth/with_type_int/<only_an_int>
arguments:
only_an_int:
help: Only an Int
type: int
2019-12-28 16:31:23 +01:00
subcategories:
subcat:
actions:
none:
api: GET /test-auth/subcat/none
configuration:
authenticate: false
default:
api: GET /test-auth/subcat/default
post:
api: POST /test-auth/subcat/post
configuration:
2020-01-02 05:32:57 +01:00
authenticate:
- all
2019-12-28 16:31:23 +01:00
authenticator: default
other-profile:
api: GET /test-auth/subcat/other-profile
configuration:
authenticator: yoloswag