-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
358d7f3
commit e671441
Showing
8 changed files
with
120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
meta { | ||
name: Authorize | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
get { | ||
url: {{host}}/oauth/authorize | ||
} | ||
|
||
assert { | ||
res.status: eq 307 | ||
res.body: isEmpty | ||
res.headers.location: isDefined | ||
res.headers.location: eq {{authServerUrl}}/oauth/authorize | ||
} | ||
|
||
script:pre-request { | ||
req.setMaxRedirects(0); | ||
} |
14 changes: 14 additions & 0 deletions
14
tests/conformance/Authorize/Callback/Authorize Callback Without Query Params.bru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
meta { | ||
name: Authorize Callback Without Query Params | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
get { | ||
url: {{host}}/oauth/callback | ||
} | ||
|
||
assert { | ||
res.status: eq 400 | ||
res.headers.location: undefined | ||
} |
20 changes: 20 additions & 0 deletions
20
tests/conformance/Authorize/Callback/Authorize Callback.bru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
meta { | ||
name: Authorize Callback | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
get { | ||
url: {{host}}/oauth/callback | ||
} | ||
|
||
assert { | ||
res.status: eq 301 | ||
res.body: isEmpty | ||
res.headers.location: isDefined | ||
res.headers.location: eq / | ||
} | ||
|
||
script:pre-request { | ||
req.setMaxRedirects(0); | ||
} |
21 changes: 21 additions & 0 deletions
21
tests/conformance/Sessions/Get Sessions/Get Sessions When Set Cookie.bru
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
meta { | ||
name: Get Sessions When Set Cookie | ||
type: http | ||
seq: 2 | ||
} | ||
|
||
get { | ||
url: {{host}}/sessions | ||
body: none | ||
auth: none | ||
} | ||
|
||
headers { | ||
Cookie: jwt=test | ||
} | ||
|
||
assert { | ||
res.status: eq 200 | ||
res.body: isJson | ||
res.body.sessions: length 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
meta { | ||
name: Get Sessions | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
get { | ||
url: {{host}}/sessions | ||
body: none | ||
auth: none | ||
} | ||
|
||
assert { | ||
res.status: eq 200 | ||
res.body: isJson | ||
res.body.sessions: length 0 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
meta { | ||
name: Has Session | ||
type: http | ||
seq: 1 | ||
} | ||
|
||
head { | ||
url: {{host}}/sessions | ||
body: none | ||
auth: none | ||
} | ||
|
||
assert { | ||
res.status: eq 204 | ||
res.body: isEmpty | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"version": "1", | ||
"name": "baffao", | ||
"type": "collection", | ||
"ignore": [ | ||
"node_modules" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
vars { | ||
host: http://localhost:3000 | ||
authServerUrl: http://localhost:8080 | ||
} |