More restconf error tests for coverage
This commit is contained in:
parent
448b56ca0c
commit
4c1249fd9b
5 changed files with 153 additions and 91 deletions
|
|
@ -461,6 +461,10 @@ api_root_restconf(clicon_handle h,
|
|||
clicon_debug(1, "%s DATA=%s", __FUNCTION__, indata);
|
||||
|
||||
/* If present, check credentials. See "plugin_credentials" in plugin
|
||||
* retvals:
|
||||
* -1 Error
|
||||
* 0 Not authenticated
|
||||
* 1 Authenticated
|
||||
* See RFC 8040 section 2.5
|
||||
*/
|
||||
if ((ret = restconf_authentication_cb(h, req, pretty, media_out)) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue