Skip to content

Commit

Permalink
Merge pull request #264 from sasjs/mocker
Browse files Browse the repository at this point in the history
Mocker
  • Loading branch information
allanbowe authored Sep 5, 2022
2 parents 72a5393 + b9a5966 commit cb82fea
Show file tree
Hide file tree
Showing 13 changed files with 2,196 additions and 1,968 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ node_modules/
.env*
sas/
sasjs_root/
api/mocks/custom/*
!api/mocks/custom/.keep
tmp/
build/
sasjsbuild/
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ PROTOCOL=
# default: 5000
PORT=
# options: [sas9|sasviya]
# If not present, mocking function is disabled
MOCK_SERVERTYPE=
#
## Additional SAS Options
Expand Down
Empty file added api/mocks/custom/.keep
Empty file.
1 change: 1 addition & 0 deletions api/mocks/generic/sas9/logged-in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
You have signed in.
1 change: 1 addition & 0 deletions api/mocks/generic/sas9/logged-out
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
You have signed out.
30 changes: 30 additions & 0 deletions api/mocks/generic/sas9/login
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" dir="ltr" class="bg">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="initial-scale=1" />
</head>


<div class="content">
<form id="credentials" class="minimal" action="/SASLogon/login?service=http%3A%2F%2Flocalhost:5004%2FSASStoredProcess%2Fj_spring_cas_security_check" method="post">
<!--form container-->
<input type="hidden" name="lt" value="LT-8-WGkt9EXwICBihaVbxGc92opjufTK1D" aria-hidden="true" />
<input type="hidden" name="execution" value="e2s1" aria-hidden="true" />
<input type="hidden" name="_eventId" value="submit" aria-hidden="true" />

<span class="userid">

<input id="username" name="username" tabindex="3" aria-labelledby="username1 message1 message2 message3" name="username" placeholder="User ID" type="text" autofocus="true" value="" maxlength="500" autocomplete="off" />
</span>
<span class="password">

<input id="password" name="password" tabindex="4" name="password" placeholder="Password" type="password" value="" maxlength="500" autocomplete="off" />
</span>

<button type="submit" class="btn-submit" title="Sign In" tabindex="5" onClick="this.disabled=true;setSubmitUrl(this.form);this.form.submit();return false;">Sign In</button>


</form>
</div>
</html>
1 change: 1 addition & 0 deletions api/mocks/generic/sas9/sas-stored-process
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"title": "Log Off SAS Demo User"
Loading

0 comments on commit cb82fea

Please sign in to comment.