Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mv_registerclient.test.1.sas
Go to the documentation of this file.
1/**
2
3 @file
4 @brief Testing mv_registerclient.sas macro
5 @details Tests for successful registration. For this to work, the test
6 account must be an admin.
7
8 <h4> SAS Macros </h4>
9 @li mf_getuniquename.sas
10 @li mp_assertcolvals.sas
11 @li mv_registerclient.sas
12
13**/
14
15/**
16 * Test Case 1
17 */
18
19%let id=%mf_getuniquename();
20%let sec=%mf_getuniquename();
21%mv_registerclient(client_id=&id,client_secret=&sec, outds=testds)
22
23data work.checkds;
24 id="&id";
25 sec="&sec";
26run;
27%mp_assertcolvals(work.testds.client_id,
28 checkvals=work.checkds.id,
29 desc=Checking client id was created
30 test=ALLVALS
31)
32%mp_assertcolvals(work.testds.client_secret,
33 checkvals=work.checkds.sec,
34 desc=Checking client secret was created
35 test=ALLVALS
36)