1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-17 13:30:05 +00:00

fix: adding checks for consul token access, and two tests to ensure the macro is working. closes #10

This commit is contained in:
Allan Bowe
2021-05-15 14:41:10 +03:00
parent 9de512cfc7
commit 1934dc8332
4 changed files with 169 additions and 40 deletions

View File

@@ -0,0 +1,36 @@
/**
@file
@brief Testing mv_registerclient.sas macro
@details Tests for successful registration. For this to work, the test
account must be an admin.
<h4> SAS Macros </h4>
@li mf_getuniquename.sas
@li mp_assertcolvals.sas
@li mv_registerclient.sas
**/
/**
* Test Case 1
*/
%let id=%mf_getuniquename();
%let sec=%mf_getuniquename();
%mv_registerclient(client_id=&id,client_secret=&sec, outds=testds)
data work.checkds;
id="&id";
sec="&sec";
run;
%mp_assertcolvals(work.testds.client_id,
checkvals=work.checkds.id,
desc=Checking client id was created
test=ALLVALS
)
%mp_assertcolvals(work.testds.client_secret,
checkvals=work.checkds.sec,
desc=Checking client secret was created
test=ALLVALS
)