#rest unit test config json { } rest { tls { ca_info_file = "$ENV{top_srcdir}raddb/restcerts/ca.pem" private_key_password = "whatever" random_file = /dev/urandom check_cert_cn = no } connect_uri = "http://$ENV{REST_TEST_SERVER}:$ENV{REST_TEST_SERVER_PORT}/" xlat { body_uri_encode = no timeout = 0.5 tls = ${..tls} } authorize { uri = "${..connect_uri}/user/%{User-Name}/mac/%{Called-Station-ID}?section=authorize" method = "GET" tls = ${..tls} } authenticate { uri = "https://$ENV{REST_TEST_SERVER}:$ENV{REST_TEST_SERVER_SSL_PORT}/auth?section=authenticate" method = "POST" tls = ${..tls} body = 'post' data = 'user=%{User-Name}' auth = 'basic' } accounting { uri = "https://$ENV{REST_TEST_SERVER}:$ENV{REST_TEST_SERVER_SSL_PORT}/user/%{User-Name}/mac/%{Called-Station-ID}?action=post-auth§ion=accounting" method = 'POST' body = 'json' data = '{"NAS": "%{NAS-IP-Address}", "Password": "%{User-Password}", "Verify": true}' tls = ${..tls} } }