1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-15 04:20:05 +00:00

fix: tests

This commit is contained in:
munja
2022-03-03 13:18:11 +00:00
parent ccf8f1acc0
commit e09a39e748
3 changed files with 341 additions and 13 deletions

View File

@@ -81,6 +81,7 @@
@li mf_loc.sas
@li mf_getquotedstr.sas
@li mf_getuser.sas
@li mp_abort.sas
**/
@@ -98,7 +99,7 @@
,refresh_token_validity=DEFAULT
,outjson=_null_
);
%local fname1 fname2 fname3 libref access_token url tokloc;
%local fname1 fname2 fname3 libref access_token url tokloc msg;
%if client_name=DEFAULT %then %let client_name=
Generated by %mf_getuser() (&sysuserid) on %sysfunc(datetime(),datetime19.
@@ -112,10 +113,11 @@ options noquotelenmax;
%let tokloc=%mf_loc(VIYACONFIG)&tokloc/client.token;
%if %sysfunc(fileexist(&tokloc))=0 %then %do;
%put &sysmacroname: unable to access the consul token at &tokloc;
%let msg=Unable to access the consul token at &tokloc;
%put &sysmacroname: &msg;
%put Try passing the value in the consul= macro parameter;
%put See docs: https://core.sasjs.io/mv__registerclient_8sas.html;
%abort;
%mp_abort(mac=mv_registerclient,msg=%str(&msg))
%end;
data _null_;